mirror of
https://github.com/hazemKrimi/personal-website.git
synced 2026-05-01 18:00:26 +00:00
55 lines
1.3 KiB
TypeScript
55 lines
1.3 KiB
TypeScript
import { useContext } from 'react';
|
|
import { ThemeContext } from '../../styles/theme';
|
|
import { StyledFooter } from './styles';
|
|
import IconButton from '../IconButton';
|
|
|
|
const Footer = () => {
|
|
const { mode } = useContext(ThemeContext);
|
|
|
|
return (
|
|
<StyledFooter>
|
|
<div className='contact'>
|
|
<IconButton
|
|
alt='GitHub'
|
|
icon={
|
|
mode === 'dark'
|
|
? '/icons/light-github.svg'
|
|
: '/icons/dark-github.svg'
|
|
}
|
|
width={16}
|
|
height={16}
|
|
href='https://github.com/hazemKrimi'
|
|
target='_blank'
|
|
/>
|
|
<IconButton
|
|
alt='Twitter'
|
|
icon={
|
|
mode === 'dark'
|
|
? '/icons/light-twitter.svg'
|
|
: '/icons/dark-twitter.svg'
|
|
}
|
|
width={16}
|
|
height={16}
|
|
href='https://twitter.com/HazemKrimi'
|
|
target='_blank'
|
|
/>
|
|
<IconButton
|
|
alt='LinkedIn'
|
|
icon={
|
|
mode === 'dark'
|
|
? '/icons/light-linkedin.svg'
|
|
: '/icons/dark-linkedin.svg'
|
|
}
|
|
width={16}
|
|
height={16}
|
|
href='https://linkedin.com/in/hazemkrimi'
|
|
target='_blank'
|
|
/>
|
|
</div>
|
|
<p>Hazem Krimi © {new Date().getFullYear()}</p>
|
|
</StyledFooter>
|
|
);
|
|
};
|
|
|
|
export default Footer;
|