Finish layout

This commit is contained in:
LordMathis 2020-09-18 16:56:47 +02:00
parent 9e665f6673
commit 8f056f3805
4 changed files with 16 additions and 3 deletions

View File

@ -37,10 +37,12 @@ const Layout = ({ children, title }) => {
socialNames={data.site.siteMetadata.social.names} socialNames={data.site.siteMetadata.social.names}
socialLinks={data.site.siteMetadata.social.links} socialLinks={data.site.siteMetadata.social.links}
email={data.site.siteMetadata.email} /> email={data.site.siteMetadata.email} />
<div className={styles.flexWrapper}>
<div className={styles.content}> <div className={styles.content}>
<main>{children}</main> <main>{children}</main>
</div> </div>
<Footer authorName={data.site.siteMetadata.author}/> <Footer authorName={data.site.siteMetadata.author}/>
</div>
</> </>
) )
} }

View File

@ -3,6 +3,7 @@
.footer { .footer {
padding: 10px; padding: 10px;
text-align: center; text-align: center;
border-top: 1px solid $blue;
} }
.link { .link {

View File

@ -2,6 +2,9 @@
.header { .header {
overflow: auto; overflow: auto;
border-bottom: 1px solid $blue;
height: 70px;
box-sizing: border-box;
} }
.links { .links {

View File

@ -9,3 +9,10 @@
display: flex; display: flex;
} }
} }
.flexWrapper {
display: flex;
min-height: calc(100vh - 70px);
flex-direction: column;
justify-content: space-between;
}