-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpage.tsx
More file actions
52 lines (47 loc) · 1.66 KB
/
page.tsx
File metadata and controls
52 lines (47 loc) · 1.66 KB
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
import Navbar from "@/components/Navbar";
import StatesOfMatterGameCard from "@/components/StatesOfMatterGameCard";
import { Box, Flex, Heading, Text, SimpleGrid } from "@chakra-ui/react";
export default function StatesOfMatterPage() {
const games = [
{
title: "Wire Spark",
description: "Master the circuits and light up the city!",
href: "/wireGame",
bgGradient: "linear(to-br, blue.400, blue.600)",
iconSrc: "/icons/wire-icon.svg",
},
{
title: "Heating Station",
description: "Cook up some science in the heat lab!",
href: "/cookingGame",
bgGradient: "linear(to-br, orange.400, red.500)",
iconSrc: "/icons/heat-icon.svg",
},
{
title: "Pipe Flow",
description: "Connect the flow and fix the leaks!",
href: "/pipesGame",
bgGradient: "linear(to-br, teal.400, teal.500)",
iconSrc: "/icons/pipe-icon.svg",
},
];
return (
<Box minH="100vh" bg="#F4F8FB">
<Navbar />
<Flex direction="column" align="center" pt={16} px={4}>
{/* Main Title: Bumped to 5xl for maximum impact */}
<Heading as="h1" size={{ base: "3xl", md: "5xl" }} color="gray.900" mb={4} fontWeight="900" textAlign="center">
Choose Your Experiment
</Heading>
<Text color="gray.500" fontSize="xl" fontWeight="medium" mb={16} textAlign="center">
Ready to become a scientist today?
</Text>
<SimpleGrid columns={{ base: 1, md: 3 }} gap={10} maxW="6xl" w="full" px={4}>
{games.map((game, index) => (
<StatesOfMatterGameCard key={index} {...game} />
))}
</SimpleGrid>
</Flex>
</Box>
);
}