From 7d5ea502db6e016291ad4c57c852d13747674fdc Mon Sep 17 00:00:00 2001 From: real-zephex Date: Mon, 27 May 2024 01:06:32 +0530 Subject: =?UTF-8?q?=F0=9F=8E=A8=20refactor(ui):=20Update=20background=20im?= =?UTF-8?q?age=20for=20info=20page=20and=20home=20page,=20and=20fix=20vide?= =?UTF-8?q?o=20loading=20issue?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- next.config.mjs | 2 ++ public/bg-test.jpg | Bin 0 -> 319066 bytes src/app/anime/[id]/page.jsx | 75 +++++++++++++++++++++++------------------ src/app/globals.css | 1 + src/app/kdrama/[id]/page.jsx | 75 +++++++++++++++++++++++------------------ src/app/movies/[id]/page.jsx | 77 ++++++++++++++++++++++++------------------- src/app/page.jsx | 67 ++++++++++++++++++++++--------------- utils/kdrama_urls.js | 4 ++- 8 files changed, 177 insertions(+), 124 deletions(-) create mode 100644 public/bg-test.jpg diff --git a/next.config.mjs b/next.config.mjs index 6b50381..216839b 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -42,6 +42,8 @@ const nextConfig = { hostname: "ih1.redbubble.net", }, { hostname: "images.hdqwalls.com" }, + { hostname: "cdn3.iconfinder.com" }, + { hostname: "www.iconfinder.com" }, ], }, logging: { diff --git a/public/bg-test.jpg b/public/bg-test.jpg new file mode 100644 index 0000000..c21c950 Binary files /dev/null and b/public/bg-test.jpg differ diff --git a/src/app/anime/[id]/page.jsx b/src/app/anime/[id]/page.jsx index 0e62310..c060899 100644 --- a/src/app/anime/[id]/page.jsx +++ b/src/app/anime/[id]/page.jsx @@ -12,39 +12,50 @@ const AnimeInfoHomepage = async ({ params }) => { preFetchVideoLinks(data.episodes); 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/globals.css b/src/app/globals.css index c414701..a9aeb5b 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -25,6 +25,7 @@ --nord-bg-darklight: #4C566A; --light-sky: #CAF4FF; + --test: #1f1f1fd2; } body::-webkit-scrollbar { diff --git a/src/app/kdrama/[id]/page.jsx b/src/app/kdrama/[id]/page.jsx index 90acded..ce8b6ba 100644 --- a/src/app/kdrama/[id]/page.jsx +++ b/src/app/kdrama/[id]/page.jsx @@ -11,39 +11,50 @@ 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/movies/[id]/page.jsx b/src/app/movies/[id]/page.jsx index 11389e7..e4e745a 100644 --- a/src/app/movies/[id]/page.jsx +++ b/src/app/movies/[id]/page.jsx @@ -11,42 +11,53 @@ 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/page.jsx b/src/app/page.jsx index 6a8e0aa..b6fdd75 100644 --- a/src/app/page.jsx +++ b/src/app/page.jsx @@ -4,48 +4,63 @@ import Image from "next/image"; export default async function Home() { const homePageCards = (title, message, url) => { return ( - - - - nextui logo -
-

{title}

-

- dramalama/{title} -

-
-
- - -

{message}

-
-
+ // + // + // + // nextui logo + //
+ //

{title}

+ //

+ // dramalama/{title} + //

+ //
+ //
+ // + // + //

{message}

+ //
+ //
+ // + +
+ section image +

{title}

+
); }; return ( -
+
{homePageCards( "anime", "Gravity of anime constant state of falling into the depths of happiness and joy", - "https://i.ibb.co/bLJzm3T/Whats-App-Image-2024-05-23-at-22-05-59-09933e5f.jpg" + "https://cdn3.iconfinder.com/data/icons/letters-and-numbers-1/32/letter_A_red-256.png" )} {homePageCards( "kdrama", "Infinity loop I'll watch just one k-drama, ok one more, ok wait...", - "https://ih1.redbubble.net/image.2656505524.2951/poster,504x498,f8f8f8-pad,600x600,f8f8f8.jpg" + "https://cdn3.iconfinder.com/data/icons/letters-and-numbers-1/32/letter_K_red-512.png" )} {homePageCards( "movies", "Dive into a world of thrilling adventure and heart-pounding suspense", - "https://images.hdqwalls.com/download/poster-avengers-endgame-ni-1920x1080.jpg" + "https://cdn3.iconfinder.com/data/icons/letters-and-numbers-1/32/letter_M_red-512.png" )}
); diff --git a/utils/kdrama_urls.js b/utils/kdrama_urls.js index acea986..ccf57c4 100644 --- a/utils/kdrama_urls.js +++ b/utils/kdrama_urls.js @@ -1,5 +1,7 @@ const base_url_one = "https://dramacool-scraper.vercel.app"; const base_url_two = "https://consumet-jade.vercel.app/movies/dramacool"; +const base_url_three = + "https://api-consumet-org-ukw6.onrender.com/movies/dramacool"; const proxy_url = "https://sup-proxy.zephex0-f6c.workers.dev/api-json?url="; export const popular_dramas_url = `${proxy_url}${base_url_one}/popular`; @@ -13,5 +15,5 @@ export const drama_info_url = (id) => `${proxy_url}${base_url_two}/info?id=${id}`; export const videoURL = (episodeId, mediaId) => { - return `${proxy_url}${base_url_two}/watch?episodeId=${episodeId}&mediaId=${mediaId}`; + return `${proxy_url}${base_url_three}/watch?episodeId=${episodeId}&mediaId=${mediaId}`; }; -- cgit v1.2.3