From 507486a10f8ae453f086622ed276acf7603e2b0b Mon Sep 17 00:00:00 2001 From: titix Date: Wed, 31 Jul 2024 16:52:04 -0300 Subject: [PATCH] feat: footer design styles --- src/assets/icons/github.svg | 3 +++ src/assets/react.svg | 1 - src/containers/Footer/index.tsx | 43 ++++++++++++++++++++++++++------- 3 files changed, 37 insertions(+), 10 deletions(-) create mode 100644 src/assets/icons/github.svg delete mode 100644 src/assets/react.svg diff --git a/src/assets/icons/github.svg b/src/assets/icons/github.svg new file mode 100644 index 0000000..2bccb51 --- /dev/null +++ b/src/assets/icons/github.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/assets/react.svg b/src/assets/react.svg deleted file mode 100644 index 6c87de9..0000000 --- a/src/assets/react.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/src/containers/Footer/index.tsx b/src/containers/Footer/index.tsx index 45f49cb..b203875 100644 --- a/src/containers/Footer/index.tsx +++ b/src/containers/Footer/index.tsx @@ -1,15 +1,22 @@ import { useTranslation } from 'next-i18next'; import { styled } from '@mui/material/styles'; +import { Box, Typography } from '@mui/material'; +import Image from 'next/image'; -import { useCustomTheme } from '~/hooks'; -import { FOOTER_HEIGHT } from '~/utils'; +import Github from '~/assets/icons/github.svg'; export const Footer = () => { const { t } = useTranslation(); return ( -

Footer

+ + {t('FOOTER.docs')} + + github + {t('FOOTER.github')} + +

{t('FOOTER.madeWithLove')}

Wonderland @@ -19,15 +26,12 @@ export const Footer = () => { }; const FooterContainer = styled('footer')(() => { - const { currentTheme } = useCustomTheme(); return { display: 'flex', - height: `${FOOTER_HEIGHT}rem`, - padding: '0 8rem', + height: `5.5rem`, + padding: '1rem', alignItems: 'center', justifyContent: 'space-between', - backgroundColor: currentTheme.backgroundSecondary, - borderTop: currentTheme.border, width: '100%', }; }); @@ -35,7 +39,7 @@ const FooterContainer = styled('footer')(() => { const Subtitle = styled('div')({ display: 'flex', alignItems: 'center', - gap: '0.8rem', + gap: '0.25rem', '& p': { display: 'inline-block', }, @@ -44,3 +48,24 @@ const Subtitle = styled('div')({ color: 'inherit', }, }); + +const SBox = styled(Box)({ + display: 'flex', + gap: '0.25rem', + alignItems: 'center', +}); + +const IconText = styled(Box)({ + display: 'flex', + gap: '1rem', + alignItems: 'center', + backgroundColor: '#262B33', + borderRadius: '1.5rem', + padding: '1rem', +}); + +const SText = styled(Typography)({ + backgroundColor: '#262B33', + borderRadius: '1.5rem', + padding: '1rem', +});