Skip to content

Commit c5eccc8

Browse files
committed
Fixed navbar toggling and added theme color to App
1 parent 1a1b3a8 commit c5eccc8

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

components/App.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export default class App extends React.Component{
1919
<div className={styles.app} id="app">
2020
<Head>
2121
<link rel="manifest" href="/manifest.json" />
22+
<meta name="theme-color" content="#005f99"/>
2223
</Head>
2324
{pages[this.state.page](this)}
2425
<div className={styles.appbar}>

components/Navbar.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,21 @@ export default class Navbar extends React.Component{
99
</a>
1010

1111
<div className="buttonbar inactive" id="buttonbar">
12-
<a href="#" className="toggle" onClick={toggleMenu}>
12+
<a className="toggle" onClick={toggleMenu}>
1313
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
1414
<path d="M24 6h-24v-4h24v4zm0 4h-24v4h24v-4zm0 8h-24v4h24v-4z"></path>
1515
</svg>
1616
</a>
17-
<a href="/#" className="item">
17+
<a href="/#" className="item" onClick={toggleMenu}>
1818
<p>About</p>
1919
</a>
20-
<a href="/#team" className="item">
20+
<a href="/#team" className="item" onClick={toggleMenu}>
2121
<p>Team</p>
2222
</a>
23-
<a href="/#app" className="item">
23+
<a href="/#app" className="item" onClick={toggleMenu}>
2424
<p>App</p>
2525
</a>
26-
<a href="/#contact" className="item">
26+
<a href="/#contact" className="item" onClick={toggleMenu}>
2727
<p>Contact</p>
2828
</a>
2929
</div>

styles/Navbar.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ nav .buttonbar {
4646
text-align: center;
4747
width: 120px;
4848
transition: all .2s;
49+
cursor: pointer;
4950
}
5051

5152
.buttonbar a.item:hover {

0 commit comments

Comments
 (0)