Skip to content

Commit 00293f2

Browse files
committed
hide bottom nav on mobile
1 parent 1aa8a67 commit 00293f2

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

reactjsfoundations.com/public/index.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@
110110
#top-title {
111111
display: none;
112112
}
113+
#bottomNav {
114+
display: none;
115+
}
113116
.greenButton {
114117
display: none;
115118
}

reactjsfoundations.com/src/BottomNav.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import { Link } from "react-router-dom";
1+
import { Link } from 'react-router-dom';
22

33
function BottomNav() {
44
return (
5-
<nav>
6-
<p style={{ textAlign: "center" }}>
7-
<Link to="/">Home</Link> | <Link to="/wheretobuy">Buy the Book</Link> |{" "}
8-
<Link to="/intro">About the Book</Link> |{" "}
5+
<nav id="bottomNav">
6+
<p style={{ textAlign: 'center' }}>
7+
<Link to="/">Home</Link> | <Link to="/wheretobuy">Buy the Book</Link> |{' '}
8+
<Link to="/intro">About the Book</Link> |{' '}
99
<a href="https://github.com/chrisminnick/react-js-foundations">
1010
Download the Code
1111
</a>

0 commit comments

Comments
 (0)