diff options
| author | real-zephex <[email protected]> | 2024-05-29 01:00:42 +0530 |
|---|---|---|
| committer | real-zephex <[email protected]> | 2024-05-29 01:00:42 +0530 |
| commit | 9497598754c5a810974c6040e78c295ff0a4ed6f (patch) | |
| tree | 5d40f1b802af30859b06e4c7f577fd50f3cc74cb /src/app/page.jsx | |
| parent | Merge pull request #39 from real-zephex/homepage-redesign (diff) | |
| download | dramalama-9497598754c5a810974c6040e78c295ff0a4ed6f.tar.xz dramalama-9497598754c5a810974c6040e78c295ff0a4ed6f.zip | |
✨ feat(series): rewrite series page and drop manga support
Diffstat (limited to 'src/app/page.jsx')
| -rw-r--r-- | src/app/page.jsx | 41 |
1 files changed, 11 insertions, 30 deletions
diff --git a/src/app/page.jsx b/src/app/page.jsx index b6fdd75..9565872 100644 --- a/src/app/page.jsx +++ b/src/app/page.jsx @@ -2,7 +2,7 @@ import { Card, CardHeader, CardBody, Divider, Link } from "@nextui-org/react"; import Image from "next/image"; export default async function Home() { - const homePageCards = (title, message, url) => { + const homePageCards = (title) => { return ( // <Link href={`/${title}`} className="my-1"> // <Card className="max-w-[400px] border-1 border-gray-500"> @@ -27,41 +27,22 @@ export default async function Home() { // </CardBody> // </Card> // </Link> - <Link - href={`/${title}`} - className="flex mb-2 lg:mx-2 text-center transition ease-in delay-50 hover:scale-105 text-inherit bg-gray-200 dark:bg-[#1f1f1f] p-1 rounded-lg" - > - <section> - <Image - src={url} - height={100} - width={100} - alt="section image" - className="rounded-full overflow-visible" - ></Image> - <p className="uppercase font-xl">{title}</p> - </section> + <Link href={`/${title}`} className="mb-2 lg:mx-1"> + <Card isPressable shadow="lg"> + <CardBody> + <p className="text-xl lg:text-2xl">{title}</p> + </CardBody> + </Card> </Link> ); }; return ( <section className="h-screen w-screen flex flex-col items-center justify-center lg:flex-row "> - {homePageCards( - "anime", - "Gravity of anime constant state of falling into the depths of happiness and joy", - "https://cdn3.iconfinder.com/data/icons/letters-and-numbers-1/32/letter_A_red-256.png" - )} - {homePageCards( - "kdrama", - "Infinity loop I'll watch just one k-drama, ok one more, ok wait...", - "https://cdn3.iconfinder.com/data/icons/letters-and-numbers-1/32/letter_K_red-512.png" - )} - {homePageCards( - "movies", - "Dive into a world of thrilling adventure and heart-pounding suspense", - "https://cdn3.iconfinder.com/data/icons/letters-and-numbers-1/32/letter_M_red-512.png" - )} + {homePageCards("anime")} + {homePageCards("movies")} + {homePageCards("kdrama")} + {homePageCards("web-series")} </section> ); } |