-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(homepage): add app landing page
- add components for the landing page of the app - write tests for added components [Finishes #163051234]
- Loading branch information
Showing
11 changed files
with
660 additions
and
12 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
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 |
---|---|---|
@@ -1,5 +1,20 @@ | ||
import React from 'react'; | ||
import { Link } from 'react-router-dom'; | ||
|
||
const HomePage = () => <div>This is the HomePage!</div>; | ||
import Nav from './Nav'; | ||
|
||
const HomePage = () => ( | ||
<div> | ||
<Nav /> | ||
<section className="hero"> | ||
<h2>Quell Your Hunger in Minutes</h2> | ||
<Link to="/menu"> | ||
<button type="button" className="btn-primary"> | ||
Get Food ⟶ | ||
</button> | ||
</Link> | ||
</section> | ||
</div> | ||
); | ||
|
||
export default HomePage; |
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
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,24 @@ | ||
import React from 'react'; | ||
import { Link } from 'react-router-dom'; | ||
|
||
const Nav = () => ( | ||
<header className="transparent"> | ||
<div className="site-title"> | ||
<h2> | ||
<Link to="/">Kiakia Food</Link> | ||
</h2> | ||
</div> | ||
<nav> | ||
<ul> | ||
<li> | ||
<Link to="/login">Log In</Link> | ||
</li> | ||
<li> | ||
<Link to="/signup">Sign Up</Link> | ||
</li> | ||
</ul> | ||
</nav> | ||
</header> | ||
); | ||
|
||
export default Nav; |
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 |
---|---|---|
@@ -1,5 +1,12 @@ | ||
import React from 'react'; | ||
import { Link } from 'react-router-dom'; | ||
|
||
const NotFoundPage = () => <div>Four-oh-Four</div>; | ||
const NotFoundPage = () => ( | ||
<div> | ||
Four-oh-Four | ||
<br /> | ||
<Link to="/">Go Home</Link> | ||
</div> | ||
); | ||
|
||
export default NotFoundPage; |
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 |
---|---|---|
@@ -1,5 +1,12 @@ | ||
import React from 'react'; | ||
import { Link } from 'react-router-dom'; | ||
|
||
const SignupPage = () => <div>This is the signup page</div>; | ||
const SignupPage = () => ( | ||
<div> | ||
This is the signup page | ||
<br /> | ||
<Link to="/">Go Home</Link> | ||
</div> | ||
); | ||
|
||
export default SignupPage; |
Oops, something went wrong.