-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: 197 - header and footer components (#216)
* feat: 197 - header and footer components * remove header and footer from login page
- Loading branch information
Showing
11 changed files
with
316 additions
and
40 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
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,42 @@ | ||
import React from 'react' | ||
|
||
const Footer = () => { | ||
return ( | ||
<footer className="footer"> | ||
<div className="container"> | ||
<ul> | ||
<li> | ||
<a href="https://www.gov.bc.ca">Home</a> | ||
</li> | ||
<li> | ||
<a href="https://www2.gov.bc.ca/gov/content/home/disclaimer"> | ||
Disclaimer | ||
</a> | ||
</li> | ||
<li> | ||
<a href="https://www2.gov.bc.ca/gov/content/home/privacy"> | ||
Privacy | ||
</a> | ||
</li> | ||
<li> | ||
<a href="https://www2.gov.bc.ca/gov/content/home/accessibility"> | ||
Accessibility | ||
</a> | ||
</li> | ||
<li> | ||
<a href="https://www2.gov.bc.ca/gov/content/home/copyright"> | ||
Copyright | ||
</a> | ||
</li> | ||
<li> | ||
<a href="https://www2.gov.bc.ca/gov/content/home/get-help-with-government-services"> | ||
Contact Us | ||
</a> | ||
</li> | ||
</ul> | ||
</div> | ||
</footer> | ||
); | ||
}; | ||
|
||
export default Footer; |
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,25 @@ | ||
import React from 'react'; | ||
import logo from '../styles/images/BCID_H_rgb_rev.png'; | ||
import Logout from './Logout' | ||
|
||
const Header = () => { | ||
return ( | ||
<div className="page-header"> | ||
<div className='cthub-banner'> | ||
<div className="left"> | ||
<a href="https://www.gov.bc.ca" rel="noopener noreferrer"> | ||
<img src={logo} alt="Government of B.C." /> | ||
</a> | ||
<a href="/upload" rel="noopener noreferrer"> | ||
Clean Transportation DataHub | ||
</a> | ||
</div> | ||
<div className="right"> | ||
<Logout /> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Header; |
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,15 @@ | ||
import React from 'react' | ||
import Header from './Header' | ||
import Footer from './Footer' | ||
|
||
const Layout = ({ children }) => { | ||
return ( | ||
<div className="layout"> | ||
<Header /> | ||
<main className="page-content">{children}</main> | ||
<Footer /> | ||
</div> | ||
) | ||
} | ||
|
||
export default Layout |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
footer { | ||
position: relative; | ||
width: 100%; | ||
bottom: 0; | ||
background-color: #036; | ||
border-top: 2px solid #fcba19; | ||
color: #fff; | ||
font-family: ‘BCSans’, ‘Noto Sans’, Verdana, Arial, sans-serif; | ||
.container { | ||
display: flex; | ||
justify-content: center; | ||
flex-direction: column; | ||
text-align: center; | ||
height: 46px; | ||
} | ||
ul { | ||
display: flex; | ||
flex-direction: row; | ||
flex-wrap: wrap; | ||
margin: 0; | ||
color: #fff; | ||
list-style: none; | ||
align-items: center; | ||
height: 100%; | ||
li a { | ||
font-size: 0.813em; | ||
font-weight: normal; /* 400 */ | ||
color: #fff; | ||
border-right: 1px solid #4b5e7e; | ||
padding-left: 5px; | ||
padding-right: 5px; | ||
text-decoration: none; | ||
} | ||
a:hover { | ||
color: #fff; | ||
text-decoration: underline; | ||
} | ||
a:focus { | ||
outline: 4px solid #3b99fc; | ||
outline-offset: 1px; | ||
} | ||
} | ||
} | ||
@media (max-width: 600px) { | ||
.footer { | ||
.container { | ||
ul li a { | ||
font-size: 0.8rem; | ||
line-height: 0.9rem; | ||
} | ||
} | ||
} | ||
} | ||
@media (max-width: 485px) { | ||
.footer { | ||
height: 3.5rem; | ||
.container { | ||
justify-content: space-evenly; | ||
} | ||
} | ||
} | ||
@media (max-width: 282px) { | ||
.footer { | ||
height: 6rem; | ||
} | ||
} |
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,108 @@ | ||
.cthub-banner { | ||
background-color: $banner-blue; | ||
display: flex; | ||
border-bottom: 3px solid $border-orange; | ||
flex-direction: row; | ||
justify-content: space-between; | ||
align-items: center; | ||
padding-left: 6rem; | ||
padding-right: 6rem; | ||
} | ||
|
||
.cthub-banner .left, | ||
.cthub-banner .right { | ||
display: flex; | ||
flex-direction: row; | ||
align-items: center; | ||
font-size: 1.25rem; | ||
a { | ||
color: $white; | ||
text-decoration: none; | ||
font-weight: bold; | ||
} | ||
img { | ||
height: 4.5rem; | ||
width: auto; | ||
} | ||
.logout { | ||
color: $white; | ||
font-size: 1rem; | ||
.logoutButton { | ||
cursor: pointer; | ||
border: none; | ||
background: none; | ||
font: inherit; | ||
color: inherit; | ||
} | ||
} | ||
} | ||
|
||
.page-header { | ||
background-color: $banner-blue; | ||
width: 100%; | ||
//height: 191px; | ||
|
||
.title { | ||
padding-left: 6rem; | ||
h1 { | ||
color: $white; | ||
} | ||
} | ||
} | ||
|
||
@media (max-width: 992px) { | ||
.cthub-banner { | ||
font-weight: normal; | ||
flex-direction: column; | ||
img { | ||
margin-left: 1rem; | ||
height: 3rem; | ||
} | ||
.logout { | ||
font-size: 0.75rem; | ||
} | ||
} | ||
.page-header { | ||
width: 100%; | ||
position: relative; | ||
margin: 0; | ||
height: 180px; | ||
.title { | ||
margin: 5px 0 0 1rem; | ||
padding-left: 0; | ||
h1 { | ||
font-size: 2rem; | ||
} | ||
} | ||
} | ||
} | ||
@media (max-width: 688px) { | ||
.page-header { | ||
.title { | ||
h1 { | ||
font-size: 1.75rem; | ||
} | ||
} | ||
} | ||
} | ||
@media (max-width: 380px) { | ||
.page-header { | ||
a { | ||
font-size: 10pt; | ||
} | ||
.title { | ||
h1 { | ||
font-size: 1.5rem; | ||
} | ||
} | ||
} | ||
} | ||
@media (max-width: 330px) { | ||
.page-header { | ||
.title { | ||
h1 { | ||
font-size: 1.2rem; | ||
} | ||
} | ||
} | ||
} |
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,6 +1,9 @@ | ||
@import 'variables.scss'; | ||
@import 'App.scss'; | ||
@import 'Login.scss'; | ||
@import 'ReactTable.scss'; | ||
@import 'FileUpload.scss'; | ||
@import 'Roboto.scss'; | ||
@import 'Users.scss'; | ||
@import 'Header.scss'; | ||
@import 'Footer.scss'; |
Oops, something went wrong.