site/components/index/cards/hackathons.js
2022-12-12 21:29:03 -05:00

86 lines
2.4 KiB
JavaScript

import CardModel from './card-model'
import {
Box,
Button,
Card,
Container,
Flex,
Grid,
Heading,
Image,
Badge,
Link,
Text
} from 'theme-ui'
import Buttons from './button'
import ScrollingHackathons from '../../hackathons/scrolling-hackathons'
/** @jsxImportSource theme-ui */
export default function Hackathons({ data, stars }) {
return (
<CardModel
color="white"
sx={{
backgroundColor: 'elevated',
background:
'linear-gradient(to bottom,rgba(0, 0, 0, 0.2),rgba(0, 0, 0, 0.4) 25%,rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.6) 100%), url("https://hackclub.com/bank/bg.webp")',
backgroundPositon: 'center center',
backgroundSize: '100% auto'
}}
stars={stars}
github_link="https://github.com/hackclub/hackathons"
// background="https://hackclub.com/bank/bg.webp"
>
<Text variant="title" sx={{fontSize: ['36px', 4, 5]}}>High School Hackathons</Text>
<Grid columns={[1, 2]}>
<Box>
<Text as="p" variant="subtitle">
We support the largest network of high school hackathons in the
world. From an online community of organizers to free stickers and
more!{' '}
</Text>
<Text sx={{ fontSize: ['18px', '20px', 3],
display: 'block', fontWeight: 'bold', mt: 2 }}>
Get involved
</Text>
<Flex sx={{ flexDirection: 'column' }}>
<Buttons
id="19"
icon="event-code"
link="https://hackathons.hackclub.com"
>
Find a high school hackathon near you
</Buttons>
<Buttons
content="learn more about available resources"
id="20"
icon="bolt"
link="/hackathons"
>
Organize a hackthon in your community
</Buttons>
</Flex>
<Button
variant="primary"
sx={{ bg: 'blue' }}
mt={3}
as="a"
href="https://editor.sprig.hackclub.com"
target="_blank"
rel="noopener"
>
Find a hackathon
</Button>
</Box>
<Box
sx={{
transform: [null,'translateY(25%)' ,'translateY(25%)']
}}
>
<ScrollingHackathons eventData={data} mode="await" />
</Box>
</Grid>
</CardModel>
)
}