From 4c4f8214637ac8d19e16f71d20542982a5eedad7 Mon Sep 17 00:00:00 2001 From: real-zephex Date: Sat, 11 May 2024 01:33:00 +0530 Subject: UI changes, Logic change and complete re-write for anime page --- src/app/anime/top-airing/page.jsx | 52 --------------------------------------- 1 file changed, 52 deletions(-) delete mode 100644 src/app/anime/top-airing/page.jsx (limited to 'src/app/anime/top-airing/page.jsx') diff --git a/src/app/anime/top-airing/page.jsx b/src/app/anime/top-airing/page.jsx deleted file mode 100644 index 0102371..0000000 --- a/src/app/anime/top-airing/page.jsx +++ /dev/null @@ -1,52 +0,0 @@ -import styles from "./trending.module.css"; -import Image from "next/image"; -import Link from "next/link"; -import { preFetchAnimeInfo } from "../videoLinkfetcher"; - -export default async function Trending() { - const data = await test(); - preFetchAnimeInfo(data); - - return ( -
-
-

Trending

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

{item.title}

-
- - ))} -
-
- ); -} - -async function test() { - const res = await fetch( - "https://consumet-jade.vercel.app/anime/gogoanime/top-airing", - { next: { revalidate: 21600 } } - ); - const data = res.json(); - return data; -} -- cgit v1.2.3