From 9497598754c5a810974c6040e78c295ff0a4ed6f Mon Sep 17 00:00:00 2001
From: real-zephex <zephex-1@outlook.com>
Date: Wed, 29 May 2024 01:00:42 +0530
Subject: =?UTF-8?q?=E2=9C=A8=20feat(series):=20rewrite=20series=20page=20a?=
 =?UTF-8?q?nd=20drop=20manga=20support?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/app/web-series/components/HomePageModules.jsx | 56 -----------------------
 1 file changed, 56 deletions(-)
 delete mode 100644 src/app/web-series/components/HomePageModules.jsx

(limited to 'src/app/web-series/components/HomePageModules.jsx')

diff --git a/src/app/web-series/components/HomePageModules.jsx b/src/app/web-series/components/HomePageModules.jsx
deleted file mode 100644
index 91d90bf..0000000
--- a/src/app/web-series/components/HomePageModules.jsx
+++ /dev/null
@@ -1,56 +0,0 @@
-import { POPULAR_SHOWS, TRENDING_SHOWS, TOP_SHOWS } from "./data-fetch";
-import styles from "../styles/pages.module.css";
-import Image from "next/image";
-import Link from "next/link";
-import PreFecthSeriesInfo from "./cacher";
-
-const HomepageUtils = async (type) => {
-	const fetchFunctions = {
-		popular: POPULAR_SHOWS,
-		trending: TRENDING_SHOWS,
-		top: TOP_SHOWS,
-	};
-
-	const fetchData = fetchFunctions[type];
-
-	if (fetchData) {
-		return await fetchData();
-	} else {
-		return;
-	}
-};
-
-const Pages = async ({ type: type }) => {
-	const data = await HomepageUtils(type);
-	PreFecthSeriesInfo(data);
-	return (
-		<main className={styles.main}>
-			<h2>{type} series</h2>
-			<section className={styles.SeriesContainer}>
-				{data &&
-					data.results.length > 0 &&
-					data.results.map((item, index) => (
-						<Link
-							key={index}
-							href={`/web-series/${item.id}`}
-							style={{ textDecoration: "none", color: "white" }}
-							title={item.name}
-						>
-							<section className={styles.SeriesEntry}>
-								<Image
-									src={`https://sup-proxy.zephex0-f6c.workers.dev/api-content?url=https://image.tmdb.org/t/p/original${item.poster_path}`}
-									width={180}
-									height={300}
-									alt="Series Poster"
-									priority
-								/>
-								<p>{item.name || "Not sure"}</p>
-							</section>
-						</Link>
-					))}
-			</section>
-		</main>
-	);
-};
-
-export default Pages;
-- 
cgit v1.2.3

