From 641e62fd333cd7c3a82c12181eb0d35611c03df7 Mon Sep 17 00:00:00 2001 From: real-zephex Date: Fri, 29 Mar 2024 19:16:58 +0530 Subject: fixes and improvements: dramalaam is no longer hosted on koyeb cuz of high latency issues. --- src/app/anime/[id]/loading.css | 346 --------------------------- src/app/anime/[id]/loading.jsx | 8 +- src/app/anime/[id]/loading.module.css | 12 + src/app/anime/recent/page.jsx | 9 +- src/app/anime/recent/recent.module.css | 15 ++ src/app/anime/top-airing/page.jsx | 10 +- src/app/anime/top-airing/trending.css | 0 src/app/anime/top-airing/trending.module.css | 15 ++ src/app/components/footer/page.jsx | 15 +- src/app/components/header/header.jsx | 8 +- src/app/components/header/header.module.css | 26 ++ src/app/error.jsx | 4 +- src/app/globals.css | 50 ---- src/app/globals.module.css | 20 ++ src/app/layout.jsx | 1 + src/app/page.jsx | 4 +- 16 files changed, 125 insertions(+), 418 deletions(-) delete mode 100644 src/app/anime/[id]/loading.css create mode 100644 src/app/anime/[id]/loading.module.css create mode 100644 src/app/anime/recent/recent.module.css delete mode 100644 src/app/anime/top-airing/trending.css create mode 100644 src/app/anime/top-airing/trending.module.css create mode 100644 src/app/components/header/header.module.css create mode 100644 src/app/globals.module.css (limited to 'src') diff --git a/src/app/anime/[id]/loading.css b/src/app/anime/[id]/loading.css deleted file mode 100644 index aa3a519..0000000 --- a/src/app/anime/[id]/loading.css +++ /dev/null @@ -1,346 +0,0 @@ -.loadingContainer { - color: white; - display: flex; - justify-content: center; - align-items: center; - height: 80dvh; -} - - -.text-flicker-in-glow { - -webkit-animation: text-flicker-in-glow 4s linear both; - animation: text-flicker-in-glow 4s linear both; - font-size: 36px; - font-family: "Kanit"; -} - -/* ---------------------------------------------- - * Generated by Animista on 2024-3-21 9:58:16 - * Licensed under FreeBSD License. - * See http://animista.net/license for more info. - * w: http://animista.net, t: @cssanimista - * ---------------------------------------------- */ - -/** - * ---------------------------------------- - * animation text-flicker-in-glow - * ---------------------------------------- - */ - -@-webkit-keyframes text-flicker-in-glow { - 0% { - opacity: 0; - } - - 10% { - opacity: 0; - text-shadow: none; - } - - 10.1% { - opacity: 1; - text-shadow: none; - } - - 10.2% { - opacity: 0; - text-shadow: none; - } - - 20% { - opacity: 0; - text-shadow: none; - } - - 20.1% { - opacity: 1; - text-shadow: 0 0 30px rgba(255, 255, 255, 0.25); - } - - 20.6% { - opacity: 0; - text-shadow: none; - } - - 30% { - opacity: 0; - text-shadow: none; - } - - 30.1% { - opacity: 1; - text-shadow: 0 0 30px rgba(255, 255, 255, 0.45), 0 0 60px rgba(255, 255, 255, 0.25); - } - - 30.5% { - opacity: 1; - text-shadow: 0 0 30px rgba(255, 255, 255, 0.45), 0 0 60px rgba(255, 255, 255, 0.25); - } - - 30.6% { - opacity: 0; - text-shadow: none; - } - - 45% { - opacity: 0; - text-shadow: none; - } - - 45.1% { - opacity: 1; - text-shadow: 0 0 30px rgba(255, 255, 255, 0.45), 0 0 60px rgba(255, 255, 255, 0.25); - } - - 50% { - opacity: 1; - text-shadow: 0 0 30px rgba(255, 255, 255, 0.45), 0 0 60px rgba(255, 255, 255, 0.25); - } - - 55% { - opacity: 1; - text-shadow: 0 0 30px rgba(255, 255, 255, 0.45), 0 0 60px rgba(255, 255, 255, 0.25); - } - - 55.1% { - opacity: 0; - text-shadow: none; - } - - 57% { - opacity: 0; - text-shadow: none; - } - - 57.1% { - opacity: 1; - text-shadow: 0 0 30px rgba(255, 255, 255, 0.55), 0 0 60px rgba(255, 255, 255, 0.35); - } - - 60% { - opacity: 1; - text-shadow: 0 0 30px rgba(255, 255, 255, 0.55), 0 0 60px rgba(255, 255, 255, 0.35); - } - - 60.1% { - opacity: 0; - text-shadow: none; - } - - 65% { - opacity: 0; - text-shadow: none; - } - - 65.1% { - opacity: 1; - text-shadow: 0 0 30px rgba(255, 255, 255, 0.55), 0 0 60px rgba(255, 255, 255, 0.35), 0 0 100px rgba(255, 255, 255, 0.1); - } - - 75% { - opacity: 1; - text-shadow: 0 0 30px rgba(255, 255, 255, 0.55), 0 0 60px rgba(255, 255, 255, 0.35), 0 0 100px rgba(255, 255, 255, 0.1); - } - - 75.1% { - opacity: 0; - text-shadow: none; - } - - 77% { - opacity: 0; - text-shadow: none; - } - - 77.1% { - opacity: 1; - text-shadow: 0 0 30px rgba(255, 255, 255, 0.55), 0 0 60px rgba(255, 255, 255, 0.4), 0 0 110px rgba(255, 255, 255, 0.2), 0 0 100px rgba(255, 255, 255, 0.1); - } - - 85% { - opacity: 1; - text-shadow: 0 0 30px rgba(255, 255, 255, 0.55), 0 0 60px rgba(255, 255, 255, 0.4), 0 0 110px rgba(255, 255, 255, 0.2), 0 0 100px rgba(255, 255, 255, 0.1); - } - - 85.1% { - opacity: 0; - text-shadow: none; - } - - 86% { - opacity: 0; - text-shadow: none; - } - - 86.1% { - opacity: 1; - text-shadow: 0 0 30px rgba(255, 255, 255, 0.6), 0 0 60px rgba(255, 255, 255, 0.45), 0 0 110px rgba(255, 255, 255, 0.25), 0 0 100px rgba(255, 255, 255, 0.1); - } - - 100% { - opacity: 1; - text-shadow: 0 0 30px rgba(255, 255, 255, 0.6), 0 0 60px rgba(255, 255, 255, 0.45), 0 0 110px rgba(255, 255, 255, 0.25), 0 0 100px rgba(255, 255, 255, 0.1); - } -} - -@keyframes text-flicker-in-glow { - 0% { - opacity: 0; - } - - 10% { - opacity: 0; - text-shadow: none; - } - - 10.1% { - opacity: 1; - text-shadow: none; - } - - 10.2% { - opacity: 0; - text-shadow: none; - } - - 20% { - opacity: 0; - text-shadow: none; - } - - 20.1% { - opacity: 1; - text-shadow: 0 0 30px rgba(255, 255, 255, 0.25); - } - - 20.6% { - opacity: 0; - text-shadow: none; - } - - 30% { - opacity: 0; - text-shadow: none; - } - - 30.1% { - opacity: 1; - text-shadow: 0 0 30px rgba(255, 255, 255, 0.45), 0 0 60px rgba(255, 255, 255, 0.25); - } - - 30.5% { - opacity: 1; - text-shadow: 0 0 30px rgba(255, 255, 255, 0.45), 0 0 60px rgba(255, 255, 255, 0.25); - } - - 30.6% { - opacity: 0; - text-shadow: none; - } - - 45% { - opacity: 0; - text-shadow: none; - } - - 45.1% { - opacity: 1; - text-shadow: 0 0 30px rgba(255, 255, 255, 0.45), 0 0 60px rgba(255, 255, 255, 0.25); - } - - 50% { - opacity: 1; - text-shadow: 0 0 30px rgba(255, 255, 255, 0.45), 0 0 60px rgba(255, 255, 255, 0.25); - } - - 55% { - opacity: 1; - text-shadow: 0 0 30px rgba(255, 255, 255, 0.45), 0 0 60px rgba(255, 255, 255, 0.25); - } - - 55.1% { - opacity: 0; - text-shadow: none; - } - - 57% { - opacity: 0; - text-shadow: none; - } - - 57.1% { - opacity: 1; - text-shadow: 0 0 30px rgba(255, 255, 255, 0.55), 0 0 60px rgba(255, 255, 255, 0.35); - } - - 60% { - opacity: 1; - text-shadow: 0 0 30px rgba(255, 255, 255, 0.55), 0 0 60px rgba(255, 255, 255, 0.35); - } - - 60.1% { - opacity: 0; - text-shadow: none; - } - - 65% { - opacity: 0; - text-shadow: none; - } - - 65.1% { - opacity: 1; - text-shadow: 0 0 30px rgba(255, 255, 255, 0.55), 0 0 60px rgba(255, 255, 255, 0.35), 0 0 100px rgba(255, 255, 255, 0.1); - } - - 75% { - opacity: 1; - text-shadow: 0 0 30px rgba(255, 255, 255, 0.55), 0 0 60px rgba(255, 255, 255, 0.35), 0 0 100px rgba(255, 255, 255, 0.1); - } - - 75.1% { - opacity: 0; - text-shadow: none; - } - - 77% { - opacity: 0; - text-shadow: none; - } - - 77.1% { - opacity: 1; - text-shadow: 0 0 30px rgba(255, 255, 255, 0.55), 0 0 60px rgba(255, 255, 255, 0.4), 0 0 110px rgba(255, 255, 255, 0.2), 0 0 100px rgba(255, 255, 255, 0.1); - } - - 85% { - opacity: 1; - text-shadow: 0 0 30px rgba(255, 255, 255, 0.55), 0 0 60px rgba(255, 255, 255, 0.4), 0 0 110px rgba(255, 255, 255, 0.2), 0 0 100px rgba(255, 255, 255, 0.1); - } - - 85.1% { - opacity: 0; - text-shadow: none; - } - - 86% { - opacity: 0; - text-shadow: none; - } - - 86.1% { - opacity: 1; - text-shadow: 0 0 30px rgba(255, 255, 255, 0.6), 0 0 60px rgba(255, 255, 255, 0.45), 0 0 110px rgba(255, 255, 255, 0.25), 0 0 100px rgba(255, 255, 255, 0.1); - } - - 100% { - opacity: 1; - text-shadow: 0 0 30px rgba(255, 255, 255, 0.6), 0 0 60px rgba(255, 255, 255, 0.45), 0 0 110px rgba(255, 255, 255, 0.25), 0 0 100px rgba(255, 255, 255, 0.1); - } -} - -@media (prefers-color-scheme: light) { - .loadingContainer { - color: black; - } -} \ No newline at end of file diff --git a/src/app/anime/[id]/loading.jsx b/src/app/anime/[id]/loading.jsx index dfa397c..b5670da 100644 --- a/src/app/anime/[id]/loading.jsx +++ b/src/app/anime/[id]/loading.jsx @@ -1,9 +1,11 @@ -import "./loading.css"; +import styles from "./loading.module.css"; export default function Loading() { return ( -
-

Loading

+
+

+ Please wait while we load all the data for you. +

); } diff --git a/src/app/anime/[id]/loading.module.css b/src/app/anime/[id]/loading.module.css new file mode 100644 index 0000000..c95784d --- /dev/null +++ b/src/app/anime/[id]/loading.module.css @@ -0,0 +1,12 @@ +.loadingContainer { + display: flex; + align-items: center; + justify-content: center; + height: 90dvh; +} + +.loadingText { + color: white; + font-family: "Lato"; + font-size: 24px; +} \ No newline at end of file diff --git a/src/app/anime/recent/page.jsx b/src/app/anime/recent/page.jsx index 779f0d4..ddfbc3f 100644 --- a/src/app/anime/recent/page.jsx +++ b/src/app/anime/recent/page.jsx @@ -1,13 +1,20 @@ import "./recent.css"; import Image from "next/image"; import Link from "next/link"; +import styles from "./recent.module.css"; +import { MdRecentActors } from "react-icons/md"; export default async function Releases() { const data = await test(); return (
-

Recent Releases

+
+

Recent Releases

+ + + +
{data && diff --git a/src/app/anime/recent/recent.module.css b/src/app/anime/recent/recent.module.css new file mode 100644 index 0000000..5756ccb --- /dev/null +++ b/src/app/anime/recent/recent.module.css @@ -0,0 +1,15 @@ +.RecentText { + color: #FFB996; + display: flex; + align-items: center; +} + +.RecentText p { + font-size: 26px; + margin: 5px; + font-family: "Quicksand"; +} + +.RecentText span { + margin-top: 6px; +} \ No newline at end of file diff --git a/src/app/anime/top-airing/page.jsx b/src/app/anime/top-airing/page.jsx index 5536870..3d26d88 100644 --- a/src/app/anime/top-airing/page.jsx +++ b/src/app/anime/top-airing/page.jsx @@ -1,13 +1,19 @@ -import "./trending.css"; +import styles from "./trending.module.css"; import Image from "next/image"; import Link from "next/link"; +import { HiTrendingUp } from "react-icons/hi"; export default async function Trending() { const data = await test(); return (
-

Trending

+
+

Trending

+ + + +
{data && diff --git a/src/app/anime/top-airing/trending.css b/src/app/anime/top-airing/trending.css deleted file mode 100644 index e69de29..0000000 diff --git a/src/app/anime/top-airing/trending.module.css b/src/app/anime/top-airing/trending.module.css new file mode 100644 index 0000000..d03bab3 --- /dev/null +++ b/src/app/anime/top-airing/trending.module.css @@ -0,0 +1,15 @@ +.TrendingText { + color: #FFB996; + display: flex; + align-items: center; +} + +.TrendingText p { + font-size: 26px; + margin: 5px; + font-family: "Quicksand"; +} + +.TrendingText span { + margin-top: 6px; +} \ No newline at end of file diff --git a/src/app/components/footer/page.jsx b/src/app/components/footer/page.jsx index f3c9fc7..e3af4f9 100644 --- a/src/app/components/footer/page.jsx +++ b/src/app/components/footer/page.jsx @@ -16,27 +16,24 @@ export default async function Footer() { > Github - - Koyeb - Vercel Netlify + + Render +

); diff --git a/src/app/components/header/header.jsx b/src/app/components/header/header.jsx index 22798b4..f41352a 100644 --- a/src/app/components/header/header.jsx +++ b/src/app/components/header/header.jsx @@ -1,9 +1,11 @@ import Link from "next/link"; +import styles from "./header.module.css"; + export default function Header() { return ( -
-
+
+
-
+

Anime

diff --git a/src/app/components/header/header.module.css b/src/app/components/header/header.module.css new file mode 100644 index 0000000..6a67bf6 --- /dev/null +++ b/src/app/components/header/header.module.css @@ -0,0 +1,26 @@ +.headNav { + display: flex; + flex-direction: row; + justify-content: space-between; + align-items: center; + max-width: 95%; + margin: -10px auto; + font-family: "Quicksand"; +} + +.rightNav { + display: flex; + cursor: pointer; + overflow-x: auto; +} + +.rightNav a { + text-decoration: none; + color: white; + font-size: 20px; +} + +.rightNav p { + margin-right: 10px; + margin-left: 10px; +} \ No newline at end of file diff --git a/src/app/error.jsx b/src/app/error.jsx index fabcb0c..7060187 100644 --- a/src/app/error.jsx +++ b/src/app/error.jsx @@ -1,7 +1,7 @@ "use client"; // Error components must be Client Components import { useEffect } from "react"; -import "./globals.css"; +import styles from "./globals.module.css"; export default function Error({ error, reset }) { useEffect(() => { @@ -9,7 +9,7 @@ export default function Error({ error, reset }) { }, [error]); return ( -
+

Something went wrong!