From 4c4f8214637ac8d19e16f71d20542982a5eedad7 Mon Sep 17 00:00:00 2001
From: real-zephex <zephex-1@outlook.com>
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 (
-		<div className={styles.TrendingContainer}>
-			<div className={styles.TrendingText}>
-				<h1>Trending</h1>
-			</div>
-
-			<div className={styles.trending}>
-				{data &&
-					data.results.map((item, index) => (
-						<Link
-							key={index}
-							href={`/anime/${item.id}`}
-							style={{ textDecoration: "none", color: "white" }}
-						>
-							<div
-								className={styles.trendingEntries}
-								title={item.title}
-							>
-								<Image
-									src={`https://sup-proxy.zephex0-f6c.workers.dev/api-content?url=${item.image}`}
-									className={styles.trendingImage}
-									width={167}
-									height={267}
-									alt="Drama"
-									priority
-								/>
-								<p>{item.title}</p>
-							</div>
-						</Link>
-					))}
-			</div>
-		</div>
-	);
-}
-
-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

