diff options
| author | real-zephex <[email protected]> | 2024-04-04 23:00:53 +0530 |
|---|---|---|
| committer | real-zephex <[email protected]> | 2024-04-04 23:00:53 +0530 |
| commit | b7e29a3d67e3e214ba1c958478092ee4075e8171 (patch) | |
| tree | 01c6ee062f728aa771e9d6ce28edbdc68ca5fdd1 /src/app/anime | |
| parent | UI Upgrades for anime section. (diff) | |
| download | dramalama-b7e29a3d67e3e214ba1c958478092ee4075e8171.tar.xz dramalama-b7e29a3d67e3e214ba1c958478092ee4075e8171.zip | |
inmidst of rewriting the kdrama section. will complete it soon
Diffstat (limited to 'src/app/anime')
| -rw-r--r-- | src/app/anime/[id]/[...animeId]/page.jsx | 12 | ||||
| -rw-r--r-- | src/app/anime/[id]/[...animeId]/video.module.css | 7 | ||||
| -rw-r--r-- | src/app/anime/recent/recent.module.css | 5 | ||||
| -rw-r--r-- | src/app/anime/top-airing/trending.module.css | 5 |
4 files changed, 18 insertions, 11 deletions
diff --git a/src/app/anime/[id]/[...animeId]/page.jsx b/src/app/anime/[id]/[...animeId]/page.jsx index 966f212..60c05ee 100644 --- a/src/app/anime/[id]/[...animeId]/page.jsx +++ b/src/app/anime/[id]/[...animeId]/page.jsx @@ -10,6 +10,7 @@ import { redirect } from "next/navigation"; import Link from "next/link"; export default async function Video({ params }) { + let link; const id = params.animeId[0]; const series = params.animeId[1]; @@ -25,7 +26,16 @@ export default async function Video({ params }) { redirect("/404"); } - const link = data.sources[4].url; + try { + link = data.sources[4].url; + } catch (error) { + try { + link = data.sources[3].url; + } catch (error) { + redirect("/404"); + console.log("Episode not found."); + } + } return ( <div className={styles.VideoMain}> diff --git a/src/app/anime/[id]/[...animeId]/video.module.css b/src/app/anime/[id]/[...animeId]/video.module.css index d947fc3..0214e60 100644 --- a/src/app/anime/[id]/[...animeId]/video.module.css +++ b/src/app/anime/[id]/[...animeId]/video.module.css @@ -1,8 +1,3 @@ -.VideoMain { - max-width: 98%; - margin: 0px auto; -} - .Video { display: flex; justify-content: center; @@ -11,7 +6,7 @@ .VideoPlayer { border-radius: 10px; - width: 75%; + width: 70%; height: auto; } diff --git a/src/app/anime/recent/recent.module.css b/src/app/anime/recent/recent.module.css index 20c5e1b..ab9d98d 100644 --- a/src/app/anime/recent/recent.module.css +++ b/src/app/anime/recent/recent.module.css @@ -1,5 +1,4 @@ .RecentText { - color: #FFB996; display: flex; align-items: center; } @@ -7,7 +6,8 @@ .RecentText p { font-size: 26px; margin: 5px; - font-family: "Quicksand"; + color: var(--soft-purple); + font-family: "Poppins"; } .RecentText span { @@ -42,6 +42,7 @@ text-align: center; margin: 5px auto; width: 140px; + font-family: "Atkinson Hyperlegible"; } .RecentEntries p::-webkit-scrollbar { diff --git a/src/app/anime/top-airing/trending.module.css b/src/app/anime/top-airing/trending.module.css index 1dcfb9d..3aa1ee7 100644 --- a/src/app/anime/top-airing/trending.module.css +++ b/src/app/anime/top-airing/trending.module.css @@ -1,5 +1,4 @@ .TrendingText { - color: #FFB996; display: flex; align-items: center; } @@ -7,7 +6,8 @@ .TrendingText p { font-size: 26px; margin: 5px; - font-family: "Quicksand"; + color: var(--soft-purple); + font-family: "Poppins"; } .TrendingText span { @@ -42,6 +42,7 @@ text-align: center; margin: 5px auto; width: 140px; + font-family: "Atkinson Hyperlegible"; } .trendingEntries p::-webkit-scrollbar { |