From fdb7958ca59e4870460950722ed52b9eb5fde10c Mon Sep 17 00:00:00 2001 From: real-zephex Date: Fri, 29 Mar 2024 20:48:30 +0530 Subject: fix: minor css fix for light mode users --- src/app/anime/[id]/info.css | 4 +++ src/app/anime/[id]/page.jsx | 2 +- src/app/anime/search/components/fetchedInfo.js | 44 ----------------------- src/app/anime/search/page.jsx | 9 ++--- src/app/anime/search/search.css | 17 +++++++++ src/app/components/header/header.module.css | 2 +- src/app/manga/[title]/[id]/[read]/read.module.css | 6 ++++ src/app/manga/[title]/[id]/info.module.css | 11 ++++++ src/app/manga/[title]/[id]/page.jsx | 1 - src/app/manga/[title]/title.module.css | 10 ++++++ src/app/manga/manga.module.css | 6 +++- 11 files changed, 57 insertions(+), 55 deletions(-) delete mode 100644 src/app/anime/search/components/fetchedInfo.js (limited to 'src') diff --git a/src/app/anime/[id]/info.css b/src/app/anime/[id]/info.css index 08194d0..ee00e24 100644 --- a/src/app/anime/[id]/info.css +++ b/src/app/anime/[id]/info.css @@ -120,6 +120,10 @@ color: black; } + .animeDetails { + color: black; + } + } @media screen and (max-width: 768px) { diff --git a/src/app/anime/[id]/page.jsx b/src/app/anime/[id]/page.jsx index 751acef..dd9e4cc 100644 --- a/src/app/anime/[id]/page.jsx +++ b/src/app/anime/[id]/page.jsx @@ -26,7 +26,7 @@ export default async function AnimeInfo({ params }) { )}
- Genres: + Genres: {info.genres && info.genres.map((item, index) => ( diff --git a/src/app/anime/search/components/fetchedInfo.js b/src/app/anime/search/components/fetchedInfo.js deleted file mode 100644 index 17c9673..0000000 --- a/src/app/anime/search/components/fetchedInfo.js +++ /dev/null @@ -1,44 +0,0 @@ -import "../search.css"; -import Link from "next/link"; -import Image from "next/image"; - -export default async function fetchedInfo(data) { - return ( -
- {data ? ( - data.results && data.results.length > 0 ? ( - data.results.map((item, index) => ( - -
-

{item.title}

- Drama Poster -
- - )) - ) : ( -
-

- No results found -

-
- ) - ) : null} -
- ); -} diff --git a/src/app/anime/search/page.jsx b/src/app/anime/search/page.jsx index 75f09bd..3d63484 100644 --- a/src/app/anime/search/page.jsx +++ b/src/app/anime/search/page.jsx @@ -49,13 +49,8 @@ export default function Input() {
{loading && ( -

Please wait while we crunch all the data for you

diff --git a/src/app/anime/search/search.css b/src/app/anime/search/search.css index 8afb508..752cff1 100644 --- a/src/app/anime/search/search.css +++ b/src/app/anime/search/search.css @@ -3,6 +3,13 @@ margin: 30px auto; } +.waitWhileLoading { + font-size: 18px; + font-family: "Kanit"; + text-align: center; + color: white; +} + .searchContainer input { border: none; border-radius: 5px; @@ -77,4 +84,14 @@ .searchContainer { width: 70%; } +} + +@media (prefers-color-scheme: light) { + .waitWhileLoading { + color: black; + } + + .anime p { + color: black; + } } \ No newline at end of file diff --git a/src/app/components/header/header.module.css b/src/app/components/header/header.module.css index 6a67bf6..ad89d0e 100644 --- a/src/app/components/header/header.module.css +++ b/src/app/components/header/header.module.css @@ -16,7 +16,7 @@ .rightNav a { text-decoration: none; - color: white; + color: black; font-size: 20px; } diff --git a/src/app/manga/[title]/[id]/[read]/read.module.css b/src/app/manga/[title]/[id]/[read]/read.module.css index a95dcfe..9a27a38 100644 --- a/src/app/manga/[title]/[id]/[read]/read.module.css +++ b/src/app/manga/[title]/[id]/[read]/read.module.css @@ -65,4 +65,10 @@ .Image { width: 100%; } +} + +@media (prefers-color-scheme: light) { + .CurrentReadingContainer { + color: black; + } } \ No newline at end of file diff --git a/src/app/manga/[title]/[id]/info.module.css b/src/app/manga/[title]/[id]/info.module.css index 5bb13fe..fbb493e 100644 --- a/src/app/manga/[title]/[id]/info.module.css +++ b/src/app/manga/[title]/[id]/info.module.css @@ -157,4 +157,15 @@ font-size: 14px; } +} + +@media (prefers-color-scheme: light) { + .MangaDescription { + color: black; + } + + .Character p { + color: black; + } + } \ No newline at end of file diff --git a/src/app/manga/[title]/[id]/page.jsx b/src/app/manga/[title]/[id]/page.jsx index dc4c682..3038b3f 100644 --- a/src/app/manga/[title]/[id]/page.jsx +++ b/src/app/manga/[title]/[id]/page.jsx @@ -3,7 +3,6 @@ import Image from "next/image"; import Buttons from "./buttons"; import { redirect } from "next/navigation"; import { FaStar } from "react-icons/fa"; -import CurrentReading from "./[read]/currentReading"; export default async function MangaInfo({ params }) { const id = params.id; diff --git a/src/app/manga/[title]/title.module.css b/src/app/manga/[title]/title.module.css index 1369856..5198c9b 100644 --- a/src/app/manga/[title]/title.module.css +++ b/src/app/manga/[title]/title.module.css @@ -64,4 +64,14 @@ .Main { max-width: 100%; } +} + +@media (prefers-color-scheme: light) { + .SearchedFor { + color: black; + } + + .MangaDescription { + color: black; + } } \ No newline at end of file diff --git a/src/app/manga/manga.module.css b/src/app/manga/manga.module.css index 87c9563..0887bc8 100644 --- a/src/app/manga/manga.module.css +++ b/src/app/manga/manga.module.css @@ -154,4 +154,8 @@ } } -/* Search Bar from searchBar.jsx */ \ No newline at end of file +@media (prefers-color-scheme: light) { + .WelcomeText { + color: black; + } +} \ No newline at end of file -- cgit v1.2.3