generated from the-collab-lab/smart-shopping-list
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #49 from the-collab-lab/it-style-navbar
Add Style to Navbar and Page Not Found
- Loading branch information
Showing
5 changed files
with
71 additions
and
13 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,31 @@ | ||
.not-found-container { | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
height: 100vh; | ||
width: 100%; | ||
} | ||
|
||
.not-found-heading { | ||
font-size: 4.5em; | ||
margin-bottom: 0; | ||
} | ||
|
||
.not-found-page-nav-link { | ||
--color-text: var(--color-cobalt-blue); | ||
color: var(--color-text); | ||
font-size: 1.4em; | ||
flex: 0 1 auto; | ||
line-height: 1; | ||
padding: 0.8rem; | ||
text-align: center; | ||
text-underline-offset: 0.1em; | ||
text-decoration: none; | ||
opacity: 0.7; | ||
} | ||
|
||
.not-found-page-nav-link:hover { | ||
opacity: 1; | ||
text-decoration: underline; | ||
} |
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,12 +1,22 @@ | ||
import React from 'react'; | ||
import { Link } from 'react-router-dom'; | ||
import { NavLink } from 'react-router-dom'; | ||
|
||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; | ||
import { faHouse } from '@fortawesome/free-solid-svg-icons'; | ||
|
||
import './NotFoundPage.css'; | ||
|
||
export default function NotFoundPage() { | ||
return ( | ||
<div> | ||
<h1>404</h1> | ||
<div className="not-found-container"> | ||
<h1 className="not-found-heading">404</h1> | ||
<p>Oops! The page you are looking for does not exist.</p> | ||
<Link to="/">Go to Home Page</Link> | ||
<NavLink to="/" className="not-found-page-nav-link"> | ||
<div> | ||
<FontAwesomeIcon icon={faHouse} className="nav-icon" /> | ||
<div>Go to Home Page</div> | ||
</div> | ||
</NavLink> | ||
</div> | ||
); | ||
} |
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
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