@@ -6,34 +6,45 @@ import { Footer } from './footer/footer';
66
77export const Layout : React . FC = ( { children } ) => {
88 return (
9- < >
10- < Head >
11- < link rel = "icon" href = "/favicon.ico" />
12- < meta name = "description" content = "Learn how to build a personal website using Next.js" />
13- < meta
14- property = "og:image"
15- content = { `https://og-image.vercel.app/${ encodeURI (
16- translate ( translationKeys . site . title )
17- ) } .png?theme=light&md=0&fontSize=75px&images=https%3A%2F%2Fassets.zeit.co%2Fimage%2Fupload%2Ffront%2Fassets%2Fdesign%2Fnextjs-black-logo.svg`}
18- />
19- < meta name = "og:title" content = { translate ( translationKeys . site . title ) } />
20- < meta name = "twitter:card" content = "summary_large_image" />
21- < link rel = "stylesheet" href = "https://fonts.googleapis.com/css?family=Roboto+Mono" />
22- < link rel = "preconnect" href = "https://fonts.gstatic.com" />
23- < link href = "https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@100& display = swap " rel = "stylesheet" />
24- < link href = "https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@700& display = swap " rel = "stylesheet" />
25- </ Head >
26- < header >
27- < Menu />
28- </ header >
29- < Main >
30- < main > { children } </ main >
31- </ Main >
32- < Footer />
33- </ >
9+ < LayoutContainer >
10+ < div >
11+ < Head >
12+ < link rel = "icon" href = "/favicon.ico" />
13+ < meta name = "description" content = "Learn how to build a personal website using Next.js" />
14+ < meta
15+ property = "og:image"
16+ content = { `https://og-image.vercel.app/${ encodeURI (
17+ translate ( translationKeys . site . title )
18+ ) } .png?theme=light&md=0&fontSize=75px&images=https%3A%2F%2Fassets.zeit.co%2Fimage%2Fupload%2Ffront%2Fassets%2Fdesign%2Fnextjs-black-logo.svg`}
19+ />
20+ < meta name = "og:title" content = { translate ( translationKeys . site . title ) } />
21+ < meta name = "twitter:card" content = "summary_large_image" />
22+ < link rel = "stylesheet" href = "https://fonts.googleapis.com/css?family=Roboto+Mono" />
23+ < link rel = "preconnect" href = "https://fonts.gstatic.com" />
24+ < link href = "https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@100& display = swap " rel = "stylesheet" />
25+ < link href = "https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@700& display = swap " rel = "stylesheet" />
26+ </ Head >
27+ < header >
28+ < Menu />
29+ </ header >
30+ < main >
31+ < Main > { children } </ Main >
32+ </ main >
33+ </ div >
34+ < footer >
35+ < Footer />
36+ </ footer >
37+ </ LayoutContainer >
3438 ) ;
3539} ;
3640
41+ const LayoutContainer = styled . div `
42+ min-height: 100vh;
43+ justify-content: space-between;
44+ flex-direction: column;
45+ display: flex;
46+ ` ;
47+
3748const Main = styled . div `
3849 max-width: 36rem;
3950 padding: 0 1rem;
0 commit comments