From 9e0d502e6f9c0dd1dc88f42f7be4aae71c858164 Mon Sep 17 00:00:00 2001 From: real-zephex Date: Fri, 7 Jun 2024 14:03:40 +0530 Subject: =?UTF-8?q?=E2=9C=A8=20style:=20changed=20background=20color=20for?= =?UTF-8?q?=20show=20pages?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/anime/[id]/page.jsx | 74 +++++++++------------ src/app/anime/components/infoTabs.jsx | 4 +- src/app/anime/components/search_results.jsx | 3 +- src/app/anime/page.jsx | 11 +++- src/app/components/header/header.jsx | 28 +++++++- src/app/kdrama/[id]/page.jsx | 74 +++++++++------------ src/app/kdrama/components/searchFormatter.jsx | 7 +- src/app/kdrama/page.jsx | 7 +- src/app/manga/[id]/page.jsx | 61 ++++++++--------- src/app/movies/[id]/page.jsx | 76 +++++++++------------- src/app/movies/components/descriptionTabs.jsx | 6 +- src/app/movies/components/searchFormatter.jsx | 7 +- src/app/movies/components/videoPlayer.jsx | 4 +- src/app/movies/page.jsx | 7 +- src/app/web-series/[id]/page.jsx | 76 +++++++++------------- src/app/web-series/components/descriptionTabs.jsx | 8 +-- .../components/seriesSearchFormatter.jsx | 7 +- src/app/web-series/components/videoPlayer.jsx | 4 +- src/app/web-series/page.jsx | 7 +- 19 files changed, 242 insertions(+), 229 deletions(-) (limited to 'src') diff --git a/src/app/anime/[id]/page.jsx b/src/app/anime/[id]/page.jsx index 6740aac..53c125e 100644 --- a/src/app/anime/[id]/page.jsx +++ b/src/app/anime/[id]/page.jsx @@ -15,49 +15,39 @@ const AnimeInfoHomepage = async ({ params }) => { } return ( -
-
-
-
- Anime Title Poster -
-

- {data.title} -

-
- {data.genres && - data.genres.map((item, index) => ( - -

{item}

-
- ))} -
-
+
+
+ Anime Title Poster +
+

+ {data.title} +

+
+ {data.genres && + data.genres.map((item, index) => ( + +

{item}

+
+ ))}
- - -
-
-
-
-
+ + + + +
+
+
); }; diff --git a/src/app/anime/components/infoTabs.jsx b/src/app/anime/components/infoTabs.jsx index 68a1da1..aa0e9db 100644 --- a/src/app/anime/components/infoTabs.jsx +++ b/src/app/anime/components/infoTabs.jsx @@ -9,14 +9,14 @@ export default function DescriptionTabs({ data: data }) {
- + {data.description || "No description found"} - +

Episodes:{" "} diff --git a/src/app/anime/components/search_results.jsx b/src/app/anime/components/search_results.jsx index ba5c7cf..bf9ec28 100644 --- a/src/app/anime/components/search_results.jsx +++ b/src/app/anime/components/search_results.jsx @@ -27,7 +27,8 @@ const SearchResults = async (title) => { { aria-label="anime redirection links" className="mx-1 flex flex-col items-center" > - + Anime Poster diff --git a/src/app/components/header/header.jsx b/src/app/components/header/header.jsx index 950b807..1ea4f13 100644 --- a/src/app/components/header/header.jsx +++ b/src/app/components/header/header.jsx @@ -16,7 +16,33 @@ export default async function Header() { Dramalama

- + + + + Anime + + + + + K-Dramas + + + + + Manga + + + + + TV shows + + + + + Movies + + + diff --git a/src/app/kdrama/[id]/page.jsx b/src/app/kdrama/[id]/page.jsx index b18c0ee..b931760 100644 --- a/src/app/kdrama/[id]/page.jsx +++ b/src/app/kdrama/[id]/page.jsx @@ -11,49 +11,39 @@ export default async function DramaInfo({ params }) { PreFetchVideoLinks(data.episodes, data.id); return ( -
-
-
-
- Anime Title Poster -
-

- {data.title} -

-
- {data.genres && - data.genres.map((item, index) => ( - -

{item}

-
- ))} -
-
+
+
+ Anime Title Poster +
+

+ {data.title} +

+
+ {data.genres && + data.genres.map((item, index) => ( + +

{item}

+
+ ))}
- - -
-
-
-
-
+

+ + + +
+
+
); } diff --git a/src/app/kdrama/components/searchFormatter.jsx b/src/app/kdrama/components/searchFormatter.jsx index 21a52a5..fad1585 100644 --- a/src/app/kdrama/components/searchFormatter.jsx +++ b/src/app/kdrama/components/searchFormatter.jsx @@ -19,7 +19,12 @@ const SearchedDataFormatter = async (data) => { className="mx-1 flex flex-col items-center" title={item.title} > - + Searched Kdrama Poster { aria-label="anime redirection links" className="mx-1 flex flex-col items-center" > - + Kdrama Poster { const data = await MangaInfoResults(id); return ( -
-
-
- {/* header section */} -
- Manga Poster -
-

- {data.title.english || data.title.romaji} -

- {data.genres && - data.genres.map((item, index) => ( - - {item} - - ))} -
-
- -
-
+
+
+ Manga Poster +
+

+ {data.title.english || data.title.romaji} +

+ {data.genres && + data.genres.map((item, index) => ( + + {item} + + ))} +
+
+
); }; diff --git a/src/app/movies/[id]/page.jsx b/src/app/movies/[id]/page.jsx index 04fba97..e60d6d9 100644 --- a/src/app/movies/[id]/page.jsx +++ b/src/app/movies/[id]/page.jsx @@ -11,51 +11,39 @@ const MovieInfoPage = async ({ params }) => { const data = await MovieInfoData(id); return ( -
-
-
- -
- Anime Title Poster -
-

- {data.title} -

-
- {data.genres && - data.genres.map((item, index) => ( - -

- {item.name} -

-
- ))} -
-
+
+ +
+ Anime Title Poster +
+

+ {data.title} +

+
+ {data.genres && + data.genres.map((item, index) => ( + +

{item.name}

+
+ ))}
- - -
-
+ + + +
); }; diff --git a/src/app/movies/components/descriptionTabs.jsx b/src/app/movies/components/descriptionTabs.jsx index 7eec2fb..dc11939 100644 --- a/src/app/movies/components/descriptionTabs.jsx +++ b/src/app/movies/components/descriptionTabs.jsx @@ -11,14 +11,14 @@ export default function DescriptionTabs({ data: data }) {
- + {data.overview || "No description found"} - +

Tagline:{" "} @@ -62,7 +62,7 @@ export default function DescriptionTabs({ data: data }) { - +

{ aria-label="anime redirection links" className="mx-1 flex flex-col items-center" > - + Searched Movie Poster { const videoFrameGenerator = (id) => { return ( ); }; diff --git a/src/app/movies/page.jsx b/src/app/movies/page.jsx index a0b8963..84ce9d6 100644 --- a/src/app/movies/page.jsx +++ b/src/app/movies/page.jsx @@ -33,7 +33,12 @@ export default async function MovieHomepage() { aria-label="anime redirection links" className="mx-1 flex flex-col items-center" > - + Movie Poster { const data = await SERIES_INFO(id); return ( -
-
-
- -
- Anime Title Poster -
-

- {data.name} -

-
- {data.genres && - data.genres.map((item, index) => ( - -

- {item.name} -

-
- ))} -
-
+
+ +
+ Anime Title Poster +
+

+ {data.name} +

+
+ {data.genres && + data.genres.map((item, index) => ( + +

{item.name}

+
+ ))}
- - -
-
+

+ + +
); }; diff --git a/src/app/web-series/components/descriptionTabs.jsx b/src/app/web-series/components/descriptionTabs.jsx index ec6a78b..d0a4945 100644 --- a/src/app/web-series/components/descriptionTabs.jsx +++ b/src/app/web-series/components/descriptionTabs.jsx @@ -19,14 +19,14 @@ export default function SeriesDescriptionTabs({ data: data }) {
- + {data.overview || "No description found"} - +

Tagline:{" "} @@ -86,7 +86,7 @@ export default function SeriesDescriptionTabs({ data: data }) { - + {data.seasons && data.seasons.map((item, index) => ( @@ -94,7 +94,7 @@ export default function SeriesDescriptionTabs({ data: data }) { key={index} className="flex flex-row items-center mb-1" isPressable - shadow="lg" + shadow="sm" > { aria-label="anime redirection links" className="mx-1 flex flex-col items-center" > - + Searched Movie Poster { const VideoFrameGenerator = (sea, epi) => { return (