import { Box, Container, Title, Text, SimpleGrid, Center } from "@mantine/core";
import AlbumCard from "../Components/AlbumCard";
import { albums } from "../lib/list";

export default function HomePage() {
	return (
		<>
			<Box className="min-h-screen bg-gray-900">
				<Container size="xl" className="py-16">
					<Box className="mb-12 text-center text-pretty">
						<Title order={1} className="mb-4 text-6xl font-bold text-white">
							Linkin Park Albums
						</Title>
						<Text size="xl" className="text-gray-400">
							On this website you can find all the albums of Linkin Park. Their new Live Versions with Emily made by fans and
							the official Live Versions from the Linkin Park Youtube Channel.
						</Text>
					</Box>

					<SimpleGrid cols={{ base: 1, sm: 2, md: 3 }} className="gap-8">
						{albums.map((album) => (
							<AlbumCard key={album.id} album={album} />
						))}
					</SimpleGrid>
				</Container>
			</Box>
			<Box className="bg-gray-900 pb-12">
				<Center>
					<Text size="sm" className="px-4 text-gray-400 sm:px-0">
						Disclaimer: This website is not affiliated with Linkin Park or any of its members. <br />
						All rights reserved to the respective owners. This website is a fan-made project and is not intended to be used
						for commercial purposes.
						<br />
						The Album Covers are the property of the respective owners.
					</Text>
				</Center>
			</Box>
		</>
	);
}
