Files
js/components/hackathon/ScheduleSection.tsx
T
easyrun42andJuan Leal ef8818630a new judges (#2135)
* new judges

* changes

* Quick copy fix

Signed-off-by: Juan Leal <[email protected]>

* update dates

---------

Signed-off-by: Juan Leal <[email protected]>
Co-authored-by: Juan Leal <[email protected]>
2024-01-22 17:23:12 +00:00

92 lines
2.6 KiB
TypeScript

import { Box, Flex, LinkBox } from "@chakra-ui/react";
import { Heading, Text } from "tw-components";
export const ScheduleSection: React.FC = () => {
const items = [
{
day: 16,
title:
"Hackathon Kickoff: Intro to thirdweb, Team Formation | 5:00pm - 7:00pm",
},
{
day: 17,
title: "Hack Day | 9:00am - 9:00pm",
},
{
day: 18,
title: "Final Submission | 9:00am",
secondTitle: "Lunch & Winners Announcement | 12:00pm",
},
];
return (
<Flex flexDir="column" alignItems="center">
<Heading size="title.2xl" mb={{ base: 8, md: 12 }}>
Schedule
</Heading>
<Flex
w="full"
justify={{ base: "center", md: "space-between" }}
flexDir="column"
align="center"
borderRadius="lg"
overflow="hidden"
boxShadow="0 0 0 1px rgba(255, 255, 255, 0.1)"
maxW={907}
>
<Box
pointerEvents={"none"}
width="100vw"
height={{ base: "1400px", md: "2200px" }}
position="absolute"
zIndex={-1}
top="55%"
left="50%"
transform="translate(-50%, -50%)"
backgroundImage={`radial-gradient(ellipse at center, hsl(300deg 90% 50% / 15%), transparent 60%)`}
/>
{items.map(({ day, title, secondTitle }) => (
<Flex
role="group"
as={LinkBox}
key={title}
align="center"
justify="flex-start"
w="full"
px={{ base: 4, md: 8 }}
bg="transparent"
boxShadow="0 0 0 1px rgba(255, 255, 255, 0.1)"
_hover={{ bg: "whiteAlpha.50" }}
py={3}
gap={{ base: 4, md: 12 }}
>
<Flex
flexDir="column"
alignItems="center"
w={"60px"}
flexShrink={0}
>
<Text size="body.md" color="gray.300" textTransform="uppercase">
FEBRUARY
</Text>
<Heading size="title.lg" color="white">
{day}
</Heading>
</Flex>
<Flex justifyContent="center" gap={2} ml={4} flexDir={"column"}>
<Heading size="subtitle.sm" fontWeight={500} color="white">
{title}
</Heading>
{secondTitle && (
<Heading size="subtitle.sm" fontWeight={500} color="white">
{secondTitle}
</Heading>
)}
</Flex>
</Flex>
))}
</Flex>
</Flex>
);
};