2021-01-17 08:31:50 +00:00
|
|
|
import React from 'react';
|
|
|
|
import useSmoothScroll from '@libs/useSmoothScroll';
|
|
|
|
import { SECTION_ID } from './Contact';
|
2020-07-13 12:02:40 +00:00
|
|
|
|
2021-01-17 08:31:50 +00:00
|
|
|
import { makeStyles } from '@material-ui/core/styles';
|
|
|
|
import { Container, Typography, Button, Link } from '@material-ui/core';
|
|
|
|
import bg from './header-bg.jpg';
|
2020-07-13 12:02:40 +00:00
|
|
|
|
2021-01-17 08:31:50 +00:00
|
|
|
export const HEADER_ID = 'start';
|
2020-07-14 12:38:07 +00:00
|
|
|
|
2020-07-13 12:02:40 +00:00
|
|
|
function Header() {
|
2021-01-17 08:31:50 +00:00
|
|
|
const classes = useStyles();
|
|
|
|
const handleLinkClick = useSmoothScroll();
|
2020-07-13 12:02:40 +00:00
|
|
|
return (
|
2020-07-14 12:38:07 +00:00
|
|
|
<header id={HEADER_ID} className={classes.header}>
|
2020-07-13 12:02:40 +00:00
|
|
|
<Container className={classes.container}>
|
|
|
|
<div>
|
|
|
|
<div className={classes.textContainer}>
|
|
|
|
<Typography gutterBottom variant="h1">
|
|
|
|
Full Stack Web Developer
|
|
|
|
</Typography>
|
|
|
|
<Typography variant="h3">
|
2021-01-16 20:58:43 +00:00
|
|
|
I create websites and web apps.
|
2020-07-13 12:02:40 +00:00
|
|
|
</Typography>
|
|
|
|
<Typography gutterBottom variant="h3">
|
2022-05-18 04:17:48 +00:00
|
|
|
Do you have an idea, project or problem you would like to discuss?
|
2020-07-13 12:02:40 +00:00
|
|
|
</Typography>
|
|
|
|
</div>
|
2020-07-14 12:38:07 +00:00
|
|
|
<Link
|
|
|
|
underline="none"
|
2021-01-17 08:31:50 +00:00
|
|
|
to={'#' + SECTION_ID}
|
2020-07-14 12:38:07 +00:00
|
|
|
onClick={handleLinkClick(SECTION_ID)}
|
|
|
|
>
|
|
|
|
<Button variant="outlined" size="large">
|
2021-01-16 20:58:43 +00:00
|
|
|
<Typography variant="h4">Get in touch</Typography>
|
2020-07-14 12:38:07 +00:00
|
|
|
</Button>
|
|
|
|
</Link>
|
2020-07-13 12:02:40 +00:00
|
|
|
</div>
|
|
|
|
</Container>
|
|
|
|
</header>
|
2021-01-17 08:31:50 +00:00
|
|
|
);
|
2020-07-13 12:02:40 +00:00
|
|
|
}
|
|
|
|
|
2021-01-16 20:58:43 +00:00
|
|
|
const useStyles = makeStyles(theme => ({
|
|
|
|
header: {
|
2021-01-17 08:31:50 +00:00
|
|
|
minHeight: '100vh',
|
2021-01-16 20:58:43 +00:00
|
|
|
backgroundImage: `url(${bg})`,
|
2021-01-17 08:31:50 +00:00
|
|
|
backgroundSize: 'cover',
|
|
|
|
backgroundPosition: 'center',
|
|
|
|
clipPath: 'polygon(0 0,100% 0,100% 80vh,0 100%)',
|
2021-01-16 20:58:43 +00:00
|
|
|
|
2021-01-17 08:31:50 +00:00
|
|
|
height: '100%',
|
|
|
|
display: 'flex',
|
|
|
|
justifyContent: 'center',
|
|
|
|
flexDirection: 'column',
|
|
|
|
[theme.breakpoints.down('sm')]: {
|
2021-01-16 20:58:43 +00:00
|
|
|
margin: 0,
|
2021-01-17 08:31:50 +00:00
|
|
|
clipPath: 'none',
|
2021-01-16 20:58:43 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
container: {
|
2021-01-17 08:31:50 +00:00
|
|
|
textAlign: 'center',
|
|
|
|
height: '100%',
|
2021-01-16 20:58:43 +00:00
|
|
|
paddingBottom: theme.spacing(8),
|
2021-01-17 08:31:50 +00:00
|
|
|
[theme.breakpoints.down('sm')]: {
|
2021-01-16 20:58:43 +00:00
|
|
|
paddingBottom: theme.spacing(1),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
textContainer: {
|
|
|
|
paddingTop: theme.spacing(12),
|
|
|
|
paddingBottom: theme.spacing(5),
|
|
|
|
},
|
2021-01-17 08:31:50 +00:00
|
|
|
}));
|
2021-01-16 20:58:43 +00:00
|
|
|
|
2021-01-17 08:31:50 +00:00
|
|
|
export default Header;
|