Adds hero component
This commit is contained in:
@@ -0,0 +1,70 @@
|
||||
import { Box, Button, Container, Heading, Text } from '@chakra-ui/react';
|
||||
import { Link } from '@tanstack/react-router';
|
||||
|
||||
// Images
|
||||
import heroImage from '../../assets/hero-1.jpg';
|
||||
|
||||
// TODO: slider met meerdere slides, thumbnails, progress-balk en socials
|
||||
// zoals in design/andreaslop-static/index.html
|
||||
export default function Hero() {
|
||||
return (
|
||||
<Box
|
||||
as="section"
|
||||
aria-label="Uitgelicht werk"
|
||||
position="relative"
|
||||
h="100svh"
|
||||
minH="560px"
|
||||
overflow="hidden"
|
||||
bg="gray.900"
|
||||
backgroundImage={`url(${heroImage})`}
|
||||
backgroundPosition="center"
|
||||
backgroundSize="cover"
|
||||
backgroundRepeat="no-repeat"
|
||||
>
|
||||
{/* Scrim */}
|
||||
<Box
|
||||
aria-hidden
|
||||
position="absolute"
|
||||
inset={0}
|
||||
bgGradient="to-b"
|
||||
gradientFrom="rgba(35, 33, 32, 0.45)"
|
||||
gradientVia="rgba(35, 33, 32, 0.18)"
|
||||
gradientTo="rgba(35, 33, 32, 0.45)"
|
||||
/>
|
||||
|
||||
<Container
|
||||
position="relative"
|
||||
zIndex={1}
|
||||
h="100%"
|
||||
display="flex"
|
||||
flexDirection="column"
|
||||
alignItems="center"
|
||||
justifyContent="center"
|
||||
textAlign="center"
|
||||
color="white"
|
||||
>
|
||||
<Text
|
||||
mb={4}
|
||||
fontSize="sm"
|
||||
letterSpacing="0.2em"
|
||||
textTransform="uppercase"
|
||||
opacity={0.8}
|
||||
>
|
||||
Fotografie
|
||||
</Text>
|
||||
<Heading
|
||||
as="h1"
|
||||
mb={9}
|
||||
fontSize={{ base: '5xl', md: '7xl' }}
|
||||
lineHeight={1}
|
||||
color="white"
|
||||
>
|
||||
Andrea Slop
|
||||
</Heading>
|
||||
<Button asChild variant="outline" color="white" borderColor="white">
|
||||
<Link to="/over-mij">Lees meer</Link>
|
||||
</Button>
|
||||
</Container>
|
||||
</Box>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user