Skip to content

Commit f4f139c

Browse files
committed
added navigation logo, still needs responsiveness at low width
1 parent 2ad0022 commit f4f139c

File tree

11 files changed

+981
-1054
lines changed

11 files changed

+981
-1054
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
ui
22
node_modules
33
.DS_Store
4+
screenshots

client/components/App/App.jsx

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -372,11 +372,16 @@ var App = React.createClass({
372372
notificationState={this.props.notificationState} />
373373

374374
<nav className="main-nav">
375-
<ul role="nav">
376-
<Link to="/" onlyActiveOnIndex={true} className='router-link'><li>Dashboard</li></Link>
377-
<Link to="/account" className='router-link'><li>Account</li></Link>
378-
<Link to="/" className='router-link' onClick={this._handleUsernameRemove}><li>Log Out</li></Link>
379-
</ul>
375+
<div className="nav-logo">
376+
<img src="/img/gomocha-logo-lg.png" />
377+
</div>
378+
<div className="nav-links">
379+
<ul role="nav">
380+
<Link to="/" onlyActiveOnIndex={true} className='router-link'><li>Dashboard</li></Link>
381+
382+
<Link to="/" className='router-link' onClick={this._handleUsernameRemove}><li>Log Out</li></Link>
383+
</ul>
384+
</div>
380385
</nav>
381386
{!this.state.username ?
382387
<UsernameView handleUsername={this._handleUsername} /> :

client/components/App/app.scss

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,20 @@ nav.main-nav{
55
padding: 1em 0 1em 0;
66
}
77

8+
div.nav-logo {
9+
position: absolute;
10+
left: 2em;
11+
top: 0.5em;
12+
}
13+
14+
div.nav-logo img {
15+
width: 11em;
16+
}
17+
18+
div.nav-links {
19+
}
20+
21+
822
nav.main-nav ul{
923
width: 80%;
1024
margin: 0 auto;
@@ -71,3 +85,14 @@ nav.main-nav ul li {
7185
color: #fff;
7286
}
7387
}
88+
89+
@media only screen and (max-width: 635px) {
90+
div.nav-logo {
91+
top: 1.5em;
92+
left: 1em;
93+
94+
img {
95+
width: 6em;
96+
}
97+
}
98+
}

client/components/UsernameView/UsernameView/UserNameView.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ var UsernameView = React.createClass({
1515
return (
1616
<div>
1717
<div className="title-cover-landing">
18-
<h1>The fastest way to your morning coffee.</h1>
18+
<h1>The fastest way to your morning coffeee.</h1>
1919
<form onSubmit={this._handleUsernameSubmit}>
2020
<input
2121
type="text"

client/index.es6

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,13 @@ ReactDOM.render(
1515
)
1616

1717

18-
18+
// 0. have a conditional that checks if userLocation is taken, and promps user if not. ex: Justin's phone stuck in loop because didn't have userLocation
1919
// 1. payment info section can be fancier
2020
// 2. make add to order button more noticeable, maybe a small notification
2121
// 4. be able to start order from previous and favorites pages. replace items in state with items in prev/fav order
2222
// 4.5 add date to each order
2323
// 5. add item deleted notification
24+
// 6. add GoMocha logo
2425

2526
// implement propTypes to components
2627
// make calls for time it will take to walk/bike/drive at same time you call getDetails

0 commit comments

Comments
 (0)