From a6c3531821aa10d80cc93d1809cbc45943c2c830 Mon Sep 17 00:00:00 2001 From: zephex-alt <166333351+zephex-alt@users.noreply.github.com> Date: Sat, 4 May 2024 18:18:30 +0000 Subject: UI changes to improved desktop experience --- src/app/anime/anime.module.css | 1 - src/app/anime/recent/page.jsx | 18 +++---- src/app/anime/recent/recent.module.css | 70 ---------------------------- src/app/anime/search/search.module.css | 3 +- src/app/anime/top-airing/page.jsx | 6 ++- src/app/anime/top-airing/trending.module.css | 65 ++++++++++++++------------ src/app/kdrama/components/popular.jsx | 11 +++-- src/app/kdrama/components/recent.jsx | 9 ++-- src/app/kdrama/styles/kdrama.module.css | 1 - src/app/kdrama/styles/popular.module.css | 53 ++++++++++++--------- src/app/page.module.css | 34 +++++++++++--- 11 files changed, 121 insertions(+), 150 deletions(-) delete mode 100644 src/app/anime/recent/recent.module.css (limited to 'src') diff --git a/src/app/anime/anime.module.css b/src/app/anime/anime.module.css index 56c6138..72c6fde 100644 --- a/src/app/anime/anime.module.css +++ b/src/app/anime/anime.module.css @@ -1,4 +1,3 @@ .main { margin: 50px auto; - max-width: 98%; } diff --git a/src/app/anime/recent/page.jsx b/src/app/anime/recent/page.jsx index 55a038f..28dfacb 100644 --- a/src/app/anime/recent/page.jsx +++ b/src/app/anime/recent/page.jsx @@ -1,19 +1,19 @@ import Image from "next/image"; import Link from "next/link"; -import styles from "./recent.module.css"; +import styles from "../top-airing/trending.module.css"; import { preFetchAnimeInfo } from "../videoLinkfetcher"; -export default async function Releases() { - const data = await fetchRecentEpisodes(); +export default async function Recent() { + const data = await test(); preFetchAnimeInfo(data); return ( -
-
+
+

Recent Releases

-
+
{data && data.results.map((item, index) => (
Drama
@@ -20,7 +21,10 @@ export default async function Trending() { href={`/anime/${item.id}`} style={{ textDecoration: "none", color: "white" }} > -
+
{popular && - popular.results.map((item, index) => ( + popular.results.slice(0, 16).map((item, index) => ( -
+
Drama Poster

{item.title}

diff --git a/src/app/kdrama/components/recent.jsx b/src/app/kdrama/components/recent.jsx index b53009e..fc142b1 100644 --- a/src/app/kdrama/components/recent.jsx +++ b/src/app/kdrama/components/recent.jsx @@ -8,17 +8,20 @@ export default async function RecentDramas() { PreFetchAnimeInfo(popular); return (
-

Recently Released

+

Recent Releases

{popular && - popular.results.map((item, index) => ( + popular.results.slice(0, 16).map((item, index) => ( -
+
.right a { @@ -53,7 +74,7 @@ background-color: #121212; color: white; font-family: "Poppins", serif; - z-index: 2; + z-index: 999; } .footer p { @@ -90,7 +111,6 @@ border-radius: 0.5rem; transition: opacity 200ms ease, transform 200ms ease; padding: 0.4rem 2rem; - font-family: "Lexend Deca", serif; margin: 0.2rem 0.2rem 0 0.2rem; border-color: rgb(80, 80, 80); border-style: groove; @@ -104,7 +124,7 @@ .content:hover > .contentContainer div:hover { opacity: 1; cursor: pointer; - transform: scale(0.96) rotateX(15deg) rotateY(8deg); + transform: scale(0.96) rotateX(15deg) rotateY(-8deg); } @media screen and (max-width: 1024px) { -- cgit v1.2.3