mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-20 10:00:41 +00:00
* 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>
23 lines
456 B
TypeScript
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>
|
|
);
|
|
};
|