File size: 1,829 Bytes
f5071ca |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
import React from 'react';
import { footerLogo } from '../assets/icons';
import { Image, Text, useColorModeValue, VStack } from '@chakra-ui/react';
import { useNavigate } from 'react-router-dom';
const Footer = () => {
const navigate = useNavigate();
const handleClickLink = () => {
navigate('/');
};
const Links = ({ children, onClick }) => {
return (
<Text
as='span'
cursor='pointer'
color={useColorModeValue('light.primary', 'dark.primary')}
onClick={onClick}
>
{children}
</Text>
);
};
return (
<VStack
className='footer'
bg={useColorModeValue('light.footerBg', 'dark.footerBg')}
p={{ base: '2rem .5rem', md: '3rem .5rem' }}
color={useColorModeValue('light.footerColor', 'dark.footerColor')}
fontSize='14px'
textAlign='center'
mt='1rem !important'
as='footer'
w='100%'
>
<Text>
<Links onClick={handleClickLink}>DEV Community π©βπ»π¨βπ»</Links> β A
constructive and inclusive social network for software developers.
With you every step of your journey.
</Text>
<Text>
The <Links onClick={handleClickLink}>open source</Links> software
that powers <Links onClick={handleClickLink}>DEV</Links> and other
inclusive communities.
</Text>
<Text>
Made with love by{' '}
<a href='https://github.com/zwelhtetyan' target='blank'>
<Links>Zwel</Links>
</a>
. DEV Community π©βπ»π¨βπ» Β© 2016 - 2022.
</Text>
<Image src={footerLogo} alt='logo' />
</VStack>
);
};
export default Footer;
|