From b1f4f412059760d85f531c3d6e2ee626c9002d28 Mon Sep 17 00:00:00 2001 From: real-zephex Date: Mon, 18 Mar 2024 14:03:32 +0530 Subject: fixes: change the file extension to .jsx and fixed the video player sizes for tablets --- src/app/recent/page.js | 44 -------------------------------------------- src/app/recent/page.jsx | 44 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+), 44 deletions(-) delete mode 100644 src/app/recent/page.js create mode 100644 src/app/recent/page.jsx (limited to 'src/app/recent') diff --git a/src/app/recent/page.js b/src/app/recent/page.js deleted file mode 100644 index 2962e0f..0000000 --- a/src/app/recent/page.js +++ /dev/null @@ -1,44 +0,0 @@ -import "./recent.css"; -import Image from "next/image"; -import Link from "next/link"; - -export default async function Releases() { - const data = await test(); - - return ( -
-

Recent Releases

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

{item.title}

-
- - ))} -
-
- ); -} - -async function test() { - const res = await fetch( - "https://dramalama-api.vercel.app/anime/gogoanime/recent-episodes" - ); - const data = res.json(); - return data; -} diff --git a/src/app/recent/page.jsx b/src/app/recent/page.jsx new file mode 100644 index 0000000..2962e0f --- /dev/null +++ b/src/app/recent/page.jsx @@ -0,0 +1,44 @@ +import "./recent.css"; +import Image from "next/image"; +import Link from "next/link"; + +export default async function Releases() { + const data = await test(); + + return ( +
+

Recent Releases

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

{item.title}

+
+ + ))} +
+
+ ); +} + +async function test() { + const res = await fetch( + "https://dramalama-api.vercel.app/anime/gogoanime/recent-episodes" + ); + const data = res.json(); + return data; +} -- cgit v1.2.3