go-ethereum/src/components/layouts/Layout.tsx
Paul Wackerow bd80434b83
Mobile menu (#39)
* add MobileMenu component

* implement MobileMenu via Header

* close menu with links

* move all menu logic to MobileMenu component

* refactor MobileMenu to use Modals

* remove unneeded motion params

* remove animation on fixed modal

* abstract out a HeaderButtons component

* abstract out Search component

* move BORDER_WIDTH to constants

* hover fixes

* change requests

* fix: Link should wrap header buttons

Co-authored-by: Corwin Smith <cssmittys@gmail.com>
Co-authored-by: Nicolás Quiroz <nh.quiroz@gmail.com>
2022-11-23 16:57:49 -03:00

23 lines
456 B
TypeScript

// Libraries
import { Container } from '@chakra-ui/react';
import { FC } from 'react';
// Components
import { Header } from '../UI';
import { Footer } from './Footer';
interface Props {
children?: React.ReactNode;
}
export const Layout: FC<Props> = ({ children }) => {
return (
<Container maxW={{ base: 'container.sm', md: 'container.2xl' }} my={{ base: 4, md: 7 }}>
<Header />
{children}
<Footer />
</Container>
);
};