From 113516639107ff174fdab66c363f809dc197b235 Mon Sep 17 00:00:00 2001 From: developomp Date: Tue, 21 Dec 2021 19:01:54 +0900 Subject: [PATCH] site restructuring - navbar won't hide content when clicking headers and stuff - using grid layout --- source/src/App.tsx | 53 ++++++++++++++++----------- source/src/components/Footer.tsx | 5 ++- source/src/components/MainContent.tsx | 1 - source/src/components/Navbar.tsx | 2 +- source/src/pages/Page/index.tsx | 8 +--- source/src/pages/Search/index.tsx | 2 + source/src/styles/globalStyle.tsx | 16 +++++--- 7 files changed, 51 insertions(+), 36 deletions(-) diff --git a/source/src/App.tsx b/source/src/App.tsx index de98e46..d26ceab 100644 --- a/source/src/App.tsx +++ b/source/src/App.tsx @@ -27,10 +27,20 @@ const IENotSupported = styled.p` font-family: ${theming.font.regular}; ` -const StyledContentContainer = styled.div` - flex: 1 1 auto; +const StyledScrollableArea = styled.div` + height: calc(100vh - 4rem); + + display: flex; + flex-direction: column; + justify-content: space-between; + + overflow-y: scroll; + overflow-x: hidden; +` + +const StyedContentContainer = styled.div` + margin-top: 3rem; margin-bottom: 3rem; - margin-top: 5rem; ` const App = () => { @@ -81,27 +91,28 @@ const App = () => { - - - {isLoading ? ( - - ) : ( - - } - /> - } /> - } /> - } /> - } /> - - )} - -