aboutsummaryrefslogtreecommitdiff
path: root/src/app/anime
diff options
context:
space:
mode:
authorzephex-alt <[email protected]>2024-04-29 03:55:49 +0000
committerzephex-alt <[email protected]>2024-04-29 03:55:49 +0000
commit0334cb2a8d79f511b95bd71ed5ee20a38077525c (patch)
treefc48ccefdc340aea02d84376d97d5db65de0a2c4 /src/app/anime
parentremoved edge runtime (diff)
downloaddramalama-0334cb2a8d79f511b95bd71ed5ee20a38077525c.tar.xz
dramalama-0334cb2a8d79f511b95bd71ed5ee20a38077525c.zip
code maintainence
Diffstat (limited to 'src/app/anime')
-rw-r--r--src/app/anime/[id]/info.module.css18
-rw-r--r--src/app/anime/[id]/page.jsx6
-rw-r--r--src/app/anime/search/components/fetchInfo.js2
3 files changed, 16 insertions, 10 deletions
diff --git a/src/app/anime/[id]/info.module.css b/src/app/anime/[id]/info.module.css
index 4d8e774..ca6018a 100644
--- a/src/app/anime/[id]/info.module.css
+++ b/src/app/anime/[id]/info.module.css
@@ -19,20 +19,20 @@
.titleContainer p {
color: var(--neon-green);
width: 60%;
- font-family: "Poppins", serif;
+ font-family: "Lexend Deca", serif;
font-weight: 500;
font-size: 34px;
}
.titleContainer img {
- width: auto;
- height: auto;
+ aspect-ratio: 16 / 9;
border-radius: 10px;
}
.animeDescription h2 {
color: #ffffff81;
margin: 20px 0px -10px 0px;
+ font-family: "Lexend Deca", serif;
}
.animeDescription p {
@@ -49,7 +49,8 @@
.buttonHeader {
margin: 0px 10px 10px 0px;
- color: #ffffff81
+ color: #ffffff81;
+ font-family: "Lexend Deca", serif;
}
.buttonContainer button {
@@ -64,9 +65,13 @@
transform: scale(0.9);
}
-.buttonContainer::-webkit-scrollbar-thumb {
+.buttonContainer::-webkit-scrollbar{
+ width: 5px;
+}
+
+.buttonContainer::-webkit-scrollbar-thumb{
background-color: var(--soft-purple);
- border-radius: 5px;
+ border-radius: 1rem;
}
.dramaButton {
@@ -96,6 +101,7 @@
.animeDetails {
color: white;
+ font-family: "Lexend Deca", serif;
}
.genreEntries {
diff --git a/src/app/anime/[id]/page.jsx b/src/app/anime/[id]/page.jsx
index bb7640f..14a5974 100644
--- a/src/app/anime/[id]/page.jsx
+++ b/src/app/anime/[id]/page.jsx
@@ -19,8 +19,8 @@ export default async function AnimeInfo({ params }) {
<p>{info.title}</p>
<Image
src={info.image}
- width={175}
- height={256}
+ width={180}
+ height={260}
alt="Drama"
priority
/>
@@ -46,7 +46,7 @@ export default async function AnimeInfo({ params }) {
<p className={styles.animeRelease}>
Release year:
<span>
- {info && info.releaseDate}, {info && info.status}
+ {" "}{info && info.releaseDate}, {info && info.status}
</span>
</p>
</div>
diff --git a/src/app/anime/search/components/fetchInfo.js b/src/app/anime/search/components/fetchInfo.js
index f14ea5e..2f81345 100644
--- a/src/app/anime/search/components/fetchInfo.js
+++ b/src/app/anime/search/components/fetchInfo.js
@@ -7,7 +7,7 @@ export default async function Results(id) {
async function testFunction(title) {
const res = await fetch(
"https://consumet-jade.vercel.app/anime/gogoanime/" + title,
- { cache: "force-cache" }
+ { next: { revalidate: 21600 } }
);
const data = await res.json();
return data;