♻️ refactor(atoms): standalone icon links
This commit is contained in:
@@ -1,27 +1,15 @@
|
||||
import { Box, IconButton as MuiIconButton, Stack, Typography, styled } from '@mui/material'
|
||||
import { Email as EmailIcon, LinkedIn as LinkedInIcon, GitHub as GitHubIcon } from '@mui/icons-material'
|
||||
import { Box, Stack, Typography } from '@mui/material'
|
||||
|
||||
const IconButton = styled(MuiIconButton)(({ theme }) => ({
|
||||
':hover': {
|
||||
backgroundColor: 'transparent',
|
||||
color: theme.palette.primary.main,
|
||||
},
|
||||
}))
|
||||
import { EmailIconLink, GitHubIconLink, LinkedInIconLink } from 'components/atoms'
|
||||
|
||||
const Footer = () => {
|
||||
const year = new Date().getFullYear()
|
||||
return (
|
||||
<Box sx={{ bgcolor: 'background.paper', p: 6, display: 'flex', alignItems: 'center', flexDirection: 'column' }} component="footer">
|
||||
<Stack direction="row">
|
||||
<IconButton size="large" aria-label="LinkedIn-button" onClick={() => window.open('https://www.linkedin.com/in/m-tartari/', '_blank')}>
|
||||
<LinkedInIcon fontSize="large" />
|
||||
</IconButton>
|
||||
<IconButton size="large" aria-label="GitHub-button" onClick={() => window.open('https://www.github.com/m-tartari/', '_blank')}>
|
||||
<GitHubIcon fontSize="large" />
|
||||
</IconButton>
|
||||
<IconButton size="large" aria-label="Email-button" onClick={() => window.open('mailto:michele.tartari+web@live.com', '_blank')}>
|
||||
<EmailIcon fontSize="large" />
|
||||
</IconButton>
|
||||
<LinkedInIconLink size="large" fontSize="large" href="https://www.linkedin.com/in/m-tartari/" />
|
||||
<GitHubIconLink size="large" fontSize="large" href="https://www.github.com/m-tartari/" />
|
||||
<EmailIconLink size="large" fontSize="large" href="mailto:michele.tartari+web@live.com" />
|
||||
</Stack>
|
||||
<Typography variant="subtitle2" align="center" color="text.secondary" component="em" mt={3}>
|
||||
© {year} Michele Tartari. All rights reserved.
|
||||
|
||||
Reference in New Issue
Block a user