-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjust footer to not cover content (#29)
In particular, when the screen isn't big enough and a vertical scrollbar is necessary. We did this by introducing a bottom margin on the content
- Loading branch information
1 parent
d54c14b
commit 7989aa9
Showing
2 changed files
with
12 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
div.content { | ||
margin-top: 16px; | ||
margin-bottom: 56px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ const App = () => { | |
<BrowserRouter> | ||
<TopNavbar /> | ||
|
||
<Container className="mt-3"> | ||
<Container className="content"> | ||
<Routes> | ||
<Route path="/" element={<Home />} /> | ||
<Route path="/robots/" element={<Robots />} /> | ||
|
@@ -28,14 +28,14 @@ const App = () => { | |
<Route path="/404" element={<NotFound />} /> | ||
<Route path="*" element={<NotFoundRedirect />} /> | ||
</Routes> | ||
|
||
<footer className="fixed-bottom"> | ||
{/* Solid background */} | ||
<div className="text-center bg-body-tertiary p-2"> | ||
<a href="mailto:[email protected]">[email protected]</a> | ||
</div> | ||
</footer> | ||
</Container> | ||
|
||
<footer className="fixed-bottom"> | ||
{/* Solid background */} | ||
<div className="text-center bg-body-tertiary p-2"> | ||
<a href="mailto:[email protected]">[email protected]</a> | ||
</div> | ||
</footer> | ||
</BrowserRouter> | ||
</ThemeProvider> | ||
); | ||
|