finish footer

This commit is contained in:
Corwin Smith 2022-10-25 14:58:25 -06:00
parent d77761ca6e
commit 556268297d
3 changed files with 69 additions and 29 deletions

View File

@ -18,22 +18,35 @@ import {
export const Footer: FC = () => { export const Footer: FC = () => {
return ( return (
<Box mt={4} border='2px solid' borderColor='brand.light.primary'> <Flex
mt={4}
direction={{ base: 'column', lg: 'row'}}
>
<Flex <Flex
direction={{ base: 'column'}} direction={{ base: 'column', md: 'row'}}
justifyContent={{md: 'space-between'}}
border='2px solid'
borderColor='brand.light.primary'
> >
<Flex sx={{ mt: '-2px !important' }}> <Flex
sx={{ mt: '-2px !important' }}
borderBottom={{
base: '2px solid',
md: 'none'
}}
borderColor='brand.light.primary'
>
<Stack <Stack
flex={1} flex={1}
borderRight='2px solid'
borderBottom='2px solid'
borderColor='brand.light.primary'
color='brand.light.primary' color='brand.light.primary'
_hover={{ _hover={{
textDecoration: 'none', textDecoration: 'none',
bg: 'brand.light.primary', bg: 'brand.light.primary',
color: 'yellow.50 !important' color: 'yellow.50 !important'
}} }}
justifyContent='center'
borderRight='2px solid'
borderColor='brand.light.primary'
> >
<NextLink href={DOWNLOADS_PAGE} passHref> <NextLink href={DOWNLOADS_PAGE} passHref>
<Link _hover={{ textDecoration: 'none' }}> <Link _hover={{ textDecoration: 'none' }}>
@ -44,14 +57,18 @@ export const Footer: FC = () => {
<Stack <Stack
flex={1} flex={1}
borderBottom='2px solid'
borderColor='brand.light.primary'
color='brand.light.primary' color='brand.light.primary'
_hover={{ _hover={{
textDecoration: 'none', textDecoration: 'none',
bg: 'brand.light.primary', bg: 'brand.light.primary',
color: 'yellow.50 !important' color: 'yellow.50 !important'
}} }}
borderRight={{
base: 'none',
md: '2px solid'
}}
borderColor='brand.light.primary'
justifyContent='center'
> >
<NextLink href={DOCS_PAGE} passHref> <NextLink href={DOCS_PAGE} passHref>
<Link _hover={{ textDecoration: 'none' }}> <Link _hover={{ textDecoration: 'none' }}>
@ -65,9 +82,13 @@ export const Footer: FC = () => {
<Stack <Stack
flex={1} flex={1}
data-group data-group
borderRight='2px solid' borderLeft={{
borderBottom='2px solid' base: 'none',
borderColor='brand.light.primary' md: '2px solid',
lg: 'none'
}}
borderColor='brand.light.primary !important'
_hover={{ _hover={{
bg: 'brand.light.primary', bg: 'brand.light.primary',
}} }}
@ -91,13 +112,13 @@ export const Footer: FC = () => {
<Stack <Stack
data-group data-group
flex={1} flex={1}
borderRight='2px solid'
borderBottom='2px solid'
borderColor='brand.light.primary'
_hover={{ _hover={{
bg: 'brand.light.primary', bg: 'brand.light.primary',
}} }}
alignItems='center' alignItems='center'
borderWidth='2px'
borderStyle='none solid'
borderColor='brand.light.primary'
> >
<NextLink href={GETH_DISCORD_URL} passHref> <NextLink href={GETH_DISCORD_URL} passHref>
<Link isExternal p={4}> <Link isExternal p={4}>
@ -117,8 +138,6 @@ export const Footer: FC = () => {
<Stack <Stack
data-group data-group
flex={1} flex={1}
borderBottom='2px solid'
borderColor='brand.light.primary'
_hover={{ _hover={{
bg: 'brand.light.primary', bg: 'brand.light.primary',
}} }}
@ -141,9 +160,21 @@ export const Footer: FC = () => {
</Flex> </Flex>
</Flex> </Flex>
<Stack p={4} sx={{ mt: '0 !important' }} textAlign='center'> <Stack
p={4}
sx={{ mt: '0 !important' }}
textAlign='center'
justifyContent='center'
borderWidth='2px'
borderStyle={{
base: 'none solid solid solid',
lg: 'solid solid solid none'
}}
borderColor='brand.light.primary'
flex={1}
>
<Text textStyle='footer-text'>© 20132022. The go-ethereum Authors.</Text> <Text textStyle='footer-text'>© 20132022. The go-ethereum Authors.</Text>
</Stack> </Stack>
</Box> </Flex>
) )
} }

View File

@ -10,7 +10,15 @@ interface Props {
// TODO: if mobile, getMobileLayout, else getDesktopLayout // TODO: if mobile, getMobileLayout, else getDesktopLayout
export const Layout: FC<Props> = ({ children }) => { export const Layout: FC<Props> = ({ children }) => {
return ( return (
<Container maxW={{ sm: 'container.sm' }} my={7}> <Container
maxW={{
sm: 'container.sm',
md: 'container.md',
lg: 'container.lg',
xl: 'container.xl'
}}
my={7}
>
{children} {children}
<Footer /> <Footer />

View File

@ -1,6 +1,7 @@
export const sizes = { export const sizes = {
container: { container: {
sm: '480px', sm: '480px',
md: '768px',
lg: '1096px', lg: '1096px',
xl: '1200px', xl: '1200px',
'2xl': '1536px' '2xl': '1536px'