extract layout and apply to all pages

This commit is contained in:
Thomas Ruoff
2021-03-13 00:16:07 +01:00
parent cf4a539ac5
commit ecb71f54e7
8 changed files with 274 additions and 289 deletions

13
components/layout.tsx Normal file
View File

@@ -0,0 +1,13 @@
import React from 'react'
import Footer from '../components/footer'
import Header from '../components/header'
export default function Home({ children }: { children: React.ReactNode }) {
return (
<>
<Header />
<main className="main">{children}</main>
<Footer />
</>
)
}