aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorreal-zephex <[email protected]>2024-07-08 22:44:46 +0530
committerreal-zephex <[email protected]>2024-07-08 22:44:46 +0530
commit7ec5ba668767344400fc049e12b2620b4ab0318f (patch)
tree3173785949f2a691652d1740d5196aa894721cec
parentfeat?: addded google analytics (diff)
downloaddramalama-7ec5ba668767344400fc049e12b2620b4ab0318f.tar.xz
dramalama-7ec5ba668767344400fc049e12b2620b4ab0318f.zip
style: i mean, it's better than before?
-rwxr-xr-xbun.lockbbin210694 -> 212675 bytes
-rw-r--r--package.json1
-rw-r--r--public/manga.jpgbin0 -> 351741 bytes
-rw-r--r--public/todoroki.jpgbin0 -> 39378 bytes
-rw-r--r--src/app/page.jsx92
5 files changed, 79 insertions, 14 deletions
diff --git a/bun.lockb b/bun.lockb
index 73be665..275f1d7 100755
--- a/bun.lockb
+++ b/bun.lockb
Binary files differ
diff --git a/package.json b/package.json
index 3fd098f..a8513c0 100644
--- a/package.json
+++ b/package.json
@@ -26,6 +26,7 @@
"@types/node": "20.11.28",
"@types/react": "18.2.66",
"autoprefixer": "^10.4.19",
+ "daisyui": "^4.12.10",
"eslint": "^9",
"postcss": "^8.4.38",
"tailwindcss": "^3.4.3"
diff --git a/public/manga.jpg b/public/manga.jpg
new file mode 100644
index 0000000..beb9d1d
--- /dev/null
+++ b/public/manga.jpg
Binary files differ
diff --git a/public/todoroki.jpg b/public/todoroki.jpg
new file mode 100644
index 0000000..5f6386c
--- /dev/null
+++ b/public/todoroki.jpg
Binary files differ
diff --git a/src/app/page.jsx b/src/app/page.jsx
index 3827c56..7c8b209 100644
--- a/src/app/page.jsx
+++ b/src/app/page.jsx
@@ -1,18 +1,36 @@
-import { Card, CardBody } from "@nextui-org/react";
+import {
+ Card,
+ CardBody,
+ CardFooter,
+ Button,
+ CardHeader,
+ Divider,
+} from "@nextui-org/react";
+import Image from "next/image";
import Link from "next/link";
export default async function Home() {
- const homePageCards = (title) => {
+ const homePageCards = (title, image) => {
return (
- <Link href={`/${title}`} className="focus:scale(90) mb-2 lg:mx-1">
+ <Link href={`/${title}`} className="lg:mx-1 mt-2">
<Card
+ className="w-40 bg-stone-900"
isPressable
- shadow="sm"
isHoverable
- className="bg-[#1f1f1f] border border-zinc-500"
+ shadow="sm"
>
+ <CardHeader>
+ <Image
+ src={`/${image}`}
+ alt="anime image"
+ width={200}
+ height={200}
+ className="rounded-t-md w-full h-36"
+ />
+ </CardHeader>
+ <Divider />
<CardBody>
- <p className="text-xl lg:text-2xl">{title}</p>
+ <p className="text-center">{title}</p>
</CardBody>
</Card>
</Link>
@@ -20,14 +38,60 @@ export default async function Home() {
};
return (
- <main>
- <section className="flex h-[90dvh] w-screen flex-col items-center justify-center lg:flex-row">
- {homePageCards("anime")}
- {homePageCards("movies")}
- {homePageCards("kdrama")}
- {homePageCards("manga")}
- {homePageCards("web-series")}
- </section>
+ <main className="lg:w-7/12 m-auto">
+ <div className="text-center mt-2">
+ <p className="text-md text-gray-500">Welcome to</p>
+ <br />
+ <p className="mt-[-1.8rem] text-4xl">Dramalama</p>
+ <p className="mt-1 text-sm text-neutral-500">
+ Dramalama is a platform which lets you stream your favourite
+ content for free.
+ </p>
+ </div>
+
+ {/* <div>
+ <section className="mt-2 bg-neutral-800 w-40 rounded-md p-1">
+ <Image
+ src="/todoroki.jpg"
+ alt="anime image"
+ width={200}
+ height={200}
+ className="rounded-t-md"
+ />
+ <p className="text-center">Anime</p>
+ </section>
+ </div> */}
+ <div className="flex items-center flex-col justify-center lg:flex-row">
+ {homePageCards("anime", "todoroki.jpg")}
+ {homePageCards("manga", "manga.jpg")}
+ </div>
+
+ <div className="flex items-center justify-center mt-2">
+ <Button
+ as={Link}
+ color="default"
+ href="/kdrama"
+ className="mx-1"
+ >
+ Kdramas
+ </Button>{" "}
+ <Button
+ as={Link}
+ color="default"
+ href="/movies"
+ className="mx-1"
+ >
+ Movies
+ </Button>
+ <Button
+ as={Link}
+ color="default"
+ href="/web-series"
+ className="mx-1"
+ >
+ Web-Series
+ </Button>
+ </div>
</main>
);
}