1
0
mirror of https://github.com/phuoc-ng/csslayout.git synced 2025-10-23 18:56:29 +02:00
Files
csslayout/client/layouts/Layout.tsx
Phuoc Nguyen 90946d08b2 Update layout
2020-04-04 21:55:03 +07:00

28 lines
608 B
TypeScript

/**
* A collection of popular layouts and patterns made with CSS (https://csslayout.io)
* (c) 2019 - 2020 Nguyen Huu Phuoc <https://twitter.com/nghuuphuoc>
*/
import React, { useEffect } from 'react';
import Footer from './Footer';
import Github from './Github';
const Layout: React.FC<{}> = ({ children }) => {
useEffect(() => {
window.scrollTo(0, 0);
}, []);
return (
<>
<Github />
<div className="ml-auto mr-auto max-w-4xl mb-12">
{children}
</div>
<Footer />
</>
);
};
export default Layout;