Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed the design issue with the footer #287

Closed
wants to merge 8 commits into from
8 changes: 5 additions & 3 deletions src/components/molecules/footer/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
Heading,
Flex,
} from '@chakra-ui/react';

import theme from '../../../theme';
interface FooterListProps {
header: string;
children?: React.ReactNode;
Expand Down Expand Up @@ -85,10 +85,12 @@ const Footer: React.FC = () => {
// uses margin auto, needs parent page to have minHeight=100vh if content is not over 100vh
return (
<Flex
my="2rem"
my="0rem"
w="100%"
direction={{ base: 'column', lg: 'row' }}
mt="auto">
mt="auto"
bgColor="slate.900"
style={{ paddingTop: '2rem' }}>
<Flex justify="space-evenly" width={{ base: '100%', lg: '60%' }}>
<FooterList header={'Ressurser'}>
<FooterItem label={'Om TD'} path={'/about-us'} />
Expand Down
1 change: 1 addition & 0 deletions src/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const theme = extendTheme(
600: '#2b2c3d',
700: '#1b1e2c',
800: '#161926',
900: '#11131d',
},
secondary: '#f8d2cc',
inputBackground: '#272530',
Expand Down
Loading