2021-01-17 08:31:50 +00:00
|
|
|
import React from 'react';
|
2020-07-14 10:24:48 +00:00
|
|
|
|
2021-01-17 08:31:50 +00:00
|
|
|
import { makeStyles } from '@material-ui/core/styles';
|
|
|
|
import { Typography, Container, Link } from '@material-ui/core';
|
2020-07-14 10:24:48 +00:00
|
|
|
import {
|
|
|
|
Email as EmailIcon,
|
|
|
|
GitHub as GitHubIcon,
|
|
|
|
Facebook as FacebookIcon,
|
2021-01-17 08:31:50 +00:00
|
|
|
} from '@material-ui/icons';
|
|
|
|
import Section from '@components/Section';
|
2020-07-14 10:24:48 +00:00
|
|
|
|
2021-01-17 08:31:50 +00:00
|
|
|
export const SECTION_ID = 'contact';
|
2020-07-14 12:38:07 +00:00
|
|
|
|
2020-07-14 10:24:48 +00:00
|
|
|
function Contact() {
|
2021-01-17 08:31:50 +00:00
|
|
|
const classes = useStyles();
|
2020-07-14 10:24:48 +00:00
|
|
|
|
|
|
|
const linkProps = {
|
2021-01-17 08:31:50 +00:00
|
|
|
underline: 'hover',
|
|
|
|
color: 'secondary',
|
|
|
|
};
|
2020-07-14 10:24:48 +00:00
|
|
|
|
|
|
|
return (
|
2020-07-14 12:38:07 +00:00
|
|
|
<Section size="small" id={SECTION_ID}>
|
2021-01-16 20:58:43 +00:00
|
|
|
<Container maxWidth="md" className={classes.container}>
|
|
|
|
<div className={classes.urlContainer}>
|
|
|
|
<Typography variant="h6">
|
|
|
|
<EmailIcon fontSize="large" />
|
|
|
|
<Link href="mailto:dawidwysokinski000@gmail.com" {...linkProps}>
|
|
|
|
dawidwysokinski000@gmail.com
|
|
|
|
</Link>
|
|
|
|
</Typography>
|
|
|
|
<Typography variant="h6">
|
|
|
|
<GitHubIcon fontSize="large" />
|
|
|
|
<Link href="https://github.com/Kichiyaki" {...linkProps}>
|
|
|
|
Kichiyaki
|
|
|
|
</Link>
|
|
|
|
</Typography>
|
|
|
|
<Typography variant="h6">
|
|
|
|
<FacebookIcon fontSize="large" />
|
|
|
|
<Link
|
|
|
|
href="https://www.facebook.com/dawidwysokinski00"
|
|
|
|
{...linkProps}
|
|
|
|
>
|
|
|
|
/dawidwysokinski00
|
|
|
|
</Link>
|
|
|
|
</Typography>
|
|
|
|
</div>
|
2020-07-14 10:24:48 +00:00
|
|
|
</Container>
|
|
|
|
</Section>
|
2021-01-17 08:31:50 +00:00
|
|
|
);
|
2020-07-14 10:24:48 +00:00
|
|
|
}
|
|
|
|
|
2021-01-16 20:58:43 +00:00
|
|
|
const useStyles = makeStyles(theme => {
|
|
|
|
return {
|
|
|
|
container: {
|
2021-01-17 08:31:50 +00:00
|
|
|
display: 'flex',
|
|
|
|
alignItems: 'center',
|
|
|
|
justifyContent: 'center',
|
2021-01-16 20:58:43 +00:00
|
|
|
},
|
|
|
|
urlContainer: {
|
2021-01-17 08:31:50 +00:00
|
|
|
'& > *:not(:last-child)': {
|
2021-01-16 20:58:43 +00:00
|
|
|
marginBottom: theme.spacing(0.5),
|
|
|
|
},
|
2021-01-17 08:31:50 +00:00
|
|
|
'& > *': {
|
|
|
|
display: 'flex',
|
|
|
|
alignItems: 'center',
|
|
|
|
wordBreak: 'break-all',
|
|
|
|
'& > *:not(:last-child)': {
|
2021-01-16 20:58:43 +00:00
|
|
|
marginRight: theme.spacing(1),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
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 Contact;
|