mirror of
https://github.com/System-End/site.git
synced 2026-04-19 16:28:21 +00:00
* Stage component(for the icons in the gradient cards) * Make Scroll-hint component shared between hackathons and bank * Add hackathons to nav * layout for landing and rundown on hacakthons page
128 lines
3.2 KiB
JavaScript
128 lines
3.2 KiB
JavaScript
import { Box, Button, Heading, Link, Text, Container, Badge } from 'theme-ui'
|
|
import Fade from 'react-reveal/Fade'
|
|
import ScrollHint from '../scroll-hint'
|
|
import Image from 'next/image'
|
|
import hero from '../../public/bank/bg.webp'
|
|
|
|
export default function Landing() {
|
|
return (
|
|
<>
|
|
<Vignette />
|
|
<Slide>
|
|
<Box as="main" key="main">
|
|
<Box
|
|
sx={{
|
|
zIndex: '5',
|
|
position: 'relative',
|
|
marginTop: '-400px'
|
|
}}
|
|
>
|
|
<Container
|
|
sx={{
|
|
display: 'flex',
|
|
flexDirection: 'column',
|
|
textAlign: 'center',
|
|
color: 'white',
|
|
maxWidth: [null, null, 'copyPlus', 'copyUltra'],
|
|
p: { fontSize: [2, 3, 4], maxWidth: 'copy', mx: 'auto' }
|
|
}}
|
|
variant="ultratitle"
|
|
>
|
|
<Text variant="eyebrow" sx={{ color: 'white', opacity: 0.875 }}>
|
|
This semester, we're helping to kickstart
|
|
</Text>
|
|
<Heading as="h1" variant="ultratitle" sx={{ mb: [3, 4] }}>
|
|
A renaissance of IRL{' '}
|
|
<Highlight>high school hackathons.</Highlight>
|
|
</Heading>
|
|
<Text as="p" variant="subtitle">
|
|
lakjsdf;lajsdf;lkjasd;lfja;sldkjfalskdjf;l
|
|
</Text>
|
|
</Container>
|
|
<br />
|
|
<ScrollHint />
|
|
</Box>
|
|
|
|
<Box
|
|
sx={{
|
|
position: 'absolute',
|
|
top: 0,
|
|
left: 0,
|
|
bottom: 0,
|
|
right: 0,
|
|
zIndex: -1
|
|
}}
|
|
>
|
|
<Image src={hero} alt="" layout="fill" objectFit="cover" />
|
|
</Box>
|
|
</Box>
|
|
</Slide>
|
|
</>
|
|
)
|
|
}
|
|
|
|
function Slide({ children }) {
|
|
return (
|
|
<Box
|
|
style={{
|
|
display: 'flex',
|
|
flexDirection: 'column',
|
|
justifyContent: 'end',
|
|
width: '100vw',
|
|
backgroundSize: 'cover',
|
|
backgroundColor: '#000000',
|
|
boxShadow: 'inset 0 0 4rem 1rem rgba(0, 0, 0, 0.5)',
|
|
backgroundPosition: 'center',
|
|
backgroundSize: 'cover',
|
|
width: '100%',
|
|
minHeight: '80vh',
|
|
position: 'relative'
|
|
}}
|
|
>
|
|
<Image
|
|
src="https://cloud-dtijd5g0u-hack-club-bot.vercel.app/020191026_151117__1_.jpg"
|
|
layout="fill"
|
|
objectFit="cover"
|
|
alt="woof"
|
|
// placeholder="blur"
|
|
priority
|
|
/>
|
|
{children}
|
|
</Box>
|
|
)
|
|
}
|
|
|
|
function Vignette() {
|
|
return (
|
|
<Box
|
|
style={{
|
|
backgroundImage:
|
|
'linear-gradient(to bottom,rgba(0, 0, 0, .6),rgba(0, 0, 0, 0.6) 25%,rgba(0, 0, 0, 0.7) 50%, rgba(0, 0, 0, 0.8) 100%)',
|
|
height: '80vh',
|
|
left: '0',
|
|
right: '0',
|
|
position: 'absolute',
|
|
zIndex: '1'
|
|
}}
|
|
></Box>
|
|
)
|
|
}
|
|
|
|
function Highlight(props) {
|
|
return (
|
|
<Badge
|
|
as="mark"
|
|
sx={{
|
|
bg: '#FF62DC',
|
|
color: 'inherit',
|
|
fontSize: 'inherit',
|
|
display: 'inline-block',
|
|
borderRadius: 'default',
|
|
px: [2, 3],
|
|
py: 1,
|
|
...props.sx
|
|
}}
|
|
{...props}
|
|
/>
|
|
)
|
|
}
|