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 ? (
-
- ) : (
-
- }
- />
- } />
- } />
- } />
- } />
-
- )}
-
-
+
+
+ {isLoading ? (
+
+ ) : (
+
+ }
+ />
+ } />
+ } />
+ } />
+ } />
+
+ )}
+
+
+
)
}
diff --git a/source/src/components/Footer.tsx b/source/src/components/Footer.tsx
index 13e36d2..be12154 100644
--- a/source/src/components/Footer.tsx
+++ b/source/src/components/Footer.tsx
@@ -7,7 +7,10 @@ import theming from "../styles/theming"
const StyledFooter = styled.footer`
display: flex;
- height: 7.77rem; /* congratulation. You've found the lucky 777 */
+
+ // congratulation. You've found the lucky 7s
+ min-height: 7.77rem;
+ max-height: 7.77rem;
align-items: center;
justify-content: center;
diff --git a/source/src/components/MainContent.tsx b/source/src/components/MainContent.tsx
index 0bc6631..6dbee1a 100644
--- a/source/src/components/MainContent.tsx
+++ b/source/src/components/MainContent.tsx
@@ -4,7 +4,6 @@ import theming from "../styles/theming"
import Card from "./Card"
export const mainContentCSS = css`
- margin-top: 3rem;
width: 50%;
@media screen and (max-width: ${theming.size.screen_size1}) {
diff --git a/source/src/components/Navbar.tsx b/source/src/components/Navbar.tsx
index 8164f10..52bc1cb 100644
--- a/source/src/components/Navbar.tsx
+++ b/source/src/components/Navbar.tsx
@@ -16,7 +16,7 @@ import NavbarData from "../data/NavbarData"
const StyledNav = styled.nav`
/* set z index to arbitrarily high value to prevent other components from drawing over the navbar */
z-index: 9999;
- position: fixed;
+ max-height: 4rem;
width: 100%;
background-color: ${(props) =>
diff --git a/source/src/pages/Page/index.tsx b/source/src/pages/Page/index.tsx
index 2f86029..a3a6b2c 100644
--- a/source/src/pages/Page/index.tsx
+++ b/source/src/pages/Page/index.tsx
@@ -20,10 +20,6 @@ import { useEffect } from "react"
const map: Map = _map
-const StyledPage = styled(MainContent)`
- padding-top: 0;
-`
-
const StyledTitle = styled.h1`
margin-bottom: 1rem;
`
@@ -134,7 +130,7 @@ const Page = () => {
/>
-
+
{isSeries ? (
{
__html: fetchedPage.content,
}}
/>
-
+
>
)
}
diff --git a/source/src/pages/Search/index.tsx b/source/src/pages/Search/index.tsx
index 629b9c6..e9c7aa7 100644
--- a/source/src/pages/Search/index.tsx
+++ b/source/src/pages/Search/index.tsx
@@ -46,6 +46,7 @@ const defaultDateRange = [
const StyledSearch = styled(MainContent)`
text-align: center;
+ margin-bottom: 2rem;
`
const StyledSearchContainer = styled.div`
@@ -277,6 +278,7 @@ const Search = () => {
+
{postCards}
>
)
diff --git a/source/src/styles/globalStyle.tsx b/source/src/styles/globalStyle.tsx
index 0077b4d..75423ca 100644
--- a/source/src/styles/globalStyle.tsx
+++ b/source/src/styles/globalStyle.tsx
@@ -209,15 +209,11 @@ const globalStyle = css`
${headerCSS}
${markCSS}
${katexCSS}
-
- body {
- overflow-x: hidden;
- overflow-y: scroll;
- }
-
+
html,
body,
#root {
+ overflow: hidden;
min-height: 100vh;
margin: 0;
display: flex;
@@ -239,6 +235,14 @@ const globalStyle = css`
text-rendering: optimizeLegibility;
}
+ #root {
+ display: grid;
+ grid-template-rows: 4rem / auto;
+
+ height: 100vh;
+ width: 100vw;
+ }
+
a {
text-decoration: none;
color: ${theming.color.linkColor};