aboutsummaryrefslogtreecommitdiff
path: root/src/app/page.jsx
blob: b6fdd7572565f287dafe3c992e6a46f2b8d407fb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
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) => {
		return (
			// <Link href={`/${title}`} className="my-1">
			// 	<Card className="max-w-[400px]  border-1 border-gray-500">
			// 		<CardHeader className="flex gap-3">
			// 			<Image
			// 				alt="nextui logo"
			// 				height={40}
			// 				width={40}
			// 				src={url}
			// 				className="rounded-md"
			// 			/>
			// 			<div className="flex flex-col">
			// 				<p className="text-md">{title}</p>
			// 				<p className="text-small text-default-500">
			// 					dramalama/{title}
			// 				</p>
			// 			</div>
			// 		</CardHeader>
			// 		<Divider className="bg-slate-400" />
			// 		<CardBody>
			// 			<p>{message}</p>
			// 		</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>
		);
	};

	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"
			)}
		</section>
	);
}

// Test push