ui: first pass on redesign (#228)

This commit is contained in:
Jean-Philippe Sirois
2020-05-11 02:00:57 -04:00
committed by GitHub
parent 12d1346d4b
commit ab8e8edd5a
40 changed files with 779 additions and 362 deletions
+1 -7
View File
@@ -1,6 +1,5 @@
import React, { FC, Fragment } from "react"
import { Footer } from "../../components/Footer"
import { MobileHeader } from "../../components/MobileHeader"
import { GlobalStyles } from "../../globalStyles"
import { useLockBodyScroll } from "../../hooks/useLockBodyScroll"
@@ -39,12 +38,7 @@ const InnerColumnLayout: FC<IColumnLayoutProps> = ({
<SC.Main>
<MobileHeader openMenu={openMenu}>{title}</MobileHeader>
{sidebar({ className: openOnMobile ? "is-open" : "" })}
<SC.MainContent>
<SC.Container>
{content}
<Footer />
</SC.Container>
</SC.MainContent>
<SC.MainContent>{content}</SC.MainContent>
</SC.Main>
<SC.Overlay
className={openOnMobile ? "is-open" : ""}
+4 -1
View File
@@ -31,8 +31,11 @@ export const Overlay = styled.div`
export const MainContent = styled.main`
flex: 1 1 auto;
margin: 128px 0 128px 320px;
margin: 0 0 0 320px;
width: calc(100% - 320px);
display: flex;
flex-wrap: wrap;
align-items: flex-start;
@media screen and (max-width: 767px) {
margin-left: 0;