Skip to content

Commit

Permalink
fix footer padding issue (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
corwintines authored Nov 22, 2022
1 parent 6ff05ed commit 20c0a6b
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 25 deletions.
45 changes: 20 additions & 25 deletions src/components/layouts/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Flex, Link, Stack, Text } from '@chakra-ui/react';
import { Center, Flex, Link, Text } from '@chakra-ui/react';
import { FC } from 'react';
import NextLink from 'next/link';

Expand Down Expand Up @@ -29,26 +29,26 @@ export const Footer: FC = () => {
}}
borderColor='primary'
>
<Stack
<Center
flex={1}
color='primary'
_hover={{
textDecoration: 'none',
bg: 'primary',
color: 'bg !important'
}}
justifyContent='center'
borderRight='2px solid'
borderColor='primary'
p={4}
>
<NextLink href={DOWNLOADS_PAGE} passHref>
<Link _hover={{ textDecoration: 'none' }}>
<Text textStyle='home-section-link-label'>DOWNLOADS</Text>
<Text textStyle='footer-link-label'>DOWNLOADS</Text>
</Link>
</NextLink>
</Stack>
</Center>

<Stack
<Center
flex={1}
color='primary'
_hover={{
Expand All @@ -61,18 +61,18 @@ export const Footer: FC = () => {
md: '2px solid'
}}
borderColor='primary'
justifyContent='center'
p={4}
>
<NextLink href={DOCS_PAGE} passHref>
<Link _hover={{ textDecoration: 'none' }}>
<Text textStyle='home-section-link-label'>DOCUMENTATION</Text>
<Text textStyle='footer-link-label'>DOCUMENTATION</Text>
</Link>
</NextLink>
</Stack>
</Center>
</Flex>

<Flex sx={{ mt: '0 !important' }}>
<Stack
<Center
flex={1}
data-group
borderLeft={{
Expand All @@ -84,57 +84,52 @@ export const Footer: FC = () => {
_hover={{
bg: 'primary'
}}
alignItems='center'
p={4}
>
<NextLink href={GETH_TWITTER_URL} passHref>
<Link isExternal>
<TwitterIcon w={8} height={8} _groupHover={{ color: 'bg' }} color='primary' />
<TwitterIcon w={8} height='22px' _groupHover={{ color: 'bg' }} color='primary' />
</Link>
</NextLink>
</Stack>
</Center>

<Stack
<Center
data-group
flex={1}
_hover={{
bg: 'primary'
}}
alignItems='center'
borderWidth='2px'
borderStyle='none solid'
borderColor='primary'
p={4}
>
<NextLink href={GETH_DISCORD_URL} passHref>
<Link isExternal>
<DiscordIcon w={8} height={8} _groupHover={{ color: 'bg' }} color='primary' />
<DiscordIcon w={8} height='22px' _groupHover={{ color: 'bg' }} color='primary' />
</Link>
</NextLink>
</Stack>
</Center>

<Stack
<Center
data-group
flex={1}
_hover={{
bg: 'primary'
}}
alignItems='center'
p={4}
>
<NextLink href={GETH_REPO_URL} passHref>
<Link isExternal>
<GitHubIcon w={7} height={7} _groupHover={{ color: 'bg' }} color='primary' />
<GitHubIcon w={7} height='22px' _groupHover={{ color: 'bg' }} color='primary' />
</Link>
</NextLink>
</Stack>
</Center>
</Flex>
</Flex>

<Stack
<Center
p={4}
textAlign='center'
justifyContent='center'
borderWidth='2px'
borderStyle={{
base: 'none solid solid solid',
Expand All @@ -144,7 +139,7 @@ export const Footer: FC = () => {
flex={1}
>
<Text textStyle='footer-text'>{`© 2013–${new Date().getFullYear()}. The go-ethereum Authors.`}</Text>
</Stack>
</Center>
</Flex>
);
};
7 changes: 7 additions & 0 deletions src/theme/foundations/textStyles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@ export const textStyles = {
fontSize: '13px',
fontFamily: '"Inter", sans-serif'
},
'footer-link-label': {
fontFamily: '"JetBrains Mono", monospace',
fontWeight: 700,
textTransform: 'uppercase',
lineHeight: '21.12px',
letterSpacing: '2%'
},
'footer-text': {
fontFamily: '"Inter", sans-serif',
lineHeight: '22px',
Expand Down

0 comments on commit 20c0a6b

Please sign in to comment.