From 06b2adcd10811b92b079294dbdab65727ff2015b Mon Sep 17 00:00:00 2001 From: real-zephex Date: Wed, 29 May 2024 10:01:52 +0530 Subject: =?UTF-8?q?=E2=9A=A1=EF=B8=8F=20perf(deps):=20upgrade=20to=20react?= =?UTF-8?q?=2019=20and=20next=20js=2015,=20add=20loading=20screen,=20drop?= =?UTF-8?q?=20mangas=20support?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../manga/history/continueWatching/cw.module.css | 75 ---------------------- src/app/manga/history/continueWatching/page.jsx | 70 -------------------- 2 files changed, 145 deletions(-) delete mode 100644 src/app/manga/history/continueWatching/cw.module.css delete mode 100644 src/app/manga/history/continueWatching/page.jsx (limited to 'src/app/manga/history/continueWatching') diff --git a/src/app/manga/history/continueWatching/cw.module.css b/src/app/manga/history/continueWatching/cw.module.css deleted file mode 100644 index e83be6b..0000000 --- a/src/app/manga/history/continueWatching/cw.module.css +++ /dev/null @@ -1,75 +0,0 @@ -.main { - width: 99%; - margin: 80px auto; -} - -.mainText { - color: var(--light-green); - font-size: 24px; -} - -.animeContainer { - font-size: 18px; - margin: 0px; -} - -.animeEntry { - display: flex; - align-items: center; - justify-content: space-between; - padding: 5px; - margin-bottom: 0.5rem; - border-radius: 1rem; - background-color: #1f1f1f; -} - -.animeEntry img { - width: 10%; - height: auto; - border-radius: 0.8rem; -} - -.titleContainer { - color: white; - margin-left: 0.2rem; -} - -.titleContainer h3 { - margin: 0px; -} - -.EpisodeCount { - color: var(--soft-purple); - margin: 0px; -} - -.date { - color: var(--neon-yellow); - margin: 0px; -} - -.redirects { - margin: 5px 0 0 0; -} - -.redirects button { - outline: none; - border: none; - margin-right: 0.4rem; - border-radius: 0.2rem; - padding: 0.2rem; - font-family: "Lexend Deca", serif; - background-color: #303030; - color: white; - cursor: pointer; -} - -@media screen and (max-width: 768px) { - .animeContainer { - font-size: 14px; - } - - .animeEntry img { - width: 35%; - } -} diff --git a/src/app/manga/history/continueWatching/page.jsx b/src/app/manga/history/continueWatching/page.jsx deleted file mode 100644 index 8c5f651..0000000 --- a/src/app/manga/history/continueWatching/page.jsx +++ /dev/null @@ -1,70 +0,0 @@ -"use client"; - -import React, { useState, useEffect } from "react"; -import Image from "next/image"; -import styles from "./cw.module.css"; -import Link from "next/link"; - -const ContinueWatching = () => { - const [localItems, setLocalItems] = useState(null); - - useEffect(() => { - const newData = get_local(); - setLocalItems(newData); - }, []); // Empty dependency array means this effect runs only once after the initial render - - function get_local() { - try { - const data = localStorage.getItem("mangaData"); - return JSON.parse(data); - } catch (error) { - console.log("error", error); - return false; - } - } - - return ( -
-

Continue Reading

- {localItems && ( -
- {localItems.watchHis && - localItems.watchHis.map((item, index) => ( -
-
-

{item.title}

-

- Currently reading: Volume {item.volume}{" "} - Chapter {item.chapter} -

-
- - - - - - -
-
- Continue anime poster -
- ))} -
- )} -
- ); -}; - -export default ContinueWatching; -- cgit v1.2.3