Skip to content

Commit

Permalink
feat: footer design styles
Browse files Browse the repository at this point in the history
  • Loading branch information
0xtiti committed Jul 31, 2024
1 parent afe3915 commit 507486a
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 10 deletions.
3 changes: 3 additions & 0 deletions src/assets/icons/github.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion src/assets/react.svg

This file was deleted.

43 changes: 34 additions & 9 deletions src/containers/Footer/index.tsx
Original file line number Diff line number Diff line change
@@ -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 (
<FooterContainer>
<h1>Footer</h1>
<SBox>
<SText>{t('FOOTER.docs')}</SText>
<IconText>
<Image src={Github} alt='github' />
<Typography>{t('FOOTER.github')}</Typography>
</IconText>
</SBox>
<Subtitle>
<p>{t('FOOTER.madeWithLove')}</p>
<a href='https://defi.sucks'>Wonderland</a>
Expand All @@ -19,23 +26,20 @@ 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%',
};
});

const Subtitle = styled('div')({
display: 'flex',
alignItems: 'center',
gap: '0.8rem',
gap: '0.25rem',
'& p': {
display: 'inline-block',
},
Expand All @@ -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',
});

0 comments on commit 507486a

Please sign in to comment.