-
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.
updated header and home structure, layout, styles - wip home content
- Loading branch information
1 parent
60b5af3
commit 1a7eda1
Showing
13 changed files
with
93 additions
and
156 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,45 @@ | ||
/**************** HEADER STYLES ***************/ | ||
|
||
.header-styles, footer { | ||
background-color: rgb(0,123,77); | ||
color: #FFFFFF; | ||
padding: 1% 0; | ||
} | ||
|
||
#title { | ||
font-family: 'Rajdhani', sans-serif; | ||
font-size: 2rem; | ||
color: #FFFFFF; | ||
} | ||
|
||
#title h1 { | ||
margin: 4% 0; | ||
} | ||
|
||
.headline { | ||
font-size: 1.25rem; | ||
margin-bottom: 6%; | ||
} | ||
|
||
.link-styles, .footer-styles, .headline { | ||
font-family: 'Roboto', sans-serif; | ||
} | ||
|
||
/************* NAV STYLES ********************/ | ||
.ul-styles{ | ||
display: flex; | ||
list-style: none; | ||
justify-content: space-between; | ||
margin: 3% 10%; | ||
padding: 0; | ||
} | ||
|
||
.link-styles { | ||
color: #FFFFFF; | ||
text-decoration: none; | ||
font-size: 1.25rem; | ||
} | ||
|
||
.link-styles:hover { | ||
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,32 +1,21 @@ | ||
import React, { useState } from 'react' | ||
import '../App.css' | ||
import { Link } from 'react-router-dom' | ||
import React from 'react'; | ||
import '../App.css'; | ||
import { Link } from 'react-router-dom'; | ||
import './Header.css'; | ||
|
||
const Header = () => { | ||
const [sidebarVisible, setSidebarVisible] = useState(false) | ||
|
||
return ( | ||
|
||
<header className='header-styles'> | ||
<h1 id="title">Recycle NYC</h1> | ||
<div | ||
className={`${!sidebarVisible ? 'hamburger' : 'hideburger'}`} | ||
onClick={() => setSidebarVisible(true)} | ||
> | ||
<div className="hamburger-slice"></div> | ||
<div className="hamburger-slice"></div> | ||
<div className="hamburger-slice"></div> | ||
</div> | ||
<ul className={`ul-styles sidebar ${sidebarVisible ? 'sidebar-active' : ''}`}> | ||
<li><Link onClick={() => setSidebarVisible(false)} className='link-styles' to="/">home</Link></li> | ||
{/* <li><Link onClick={() => setSidebarVisible(false)} className='link-styles' to="/about">about</Link></li> */} | ||
{/* <li><Link onClick={() => setSidebarVisible(false)} className='link-styles' to="/resources">resources</Link></li> */} | ||
<li><Link onClick={() => setSidebarVisible(false)} className='link-styles' to="/by-borough">by borough</Link></li> | ||
<li><Link onClick={() => setSidebarVisible(false)} className='link-styles' to="/near-you">near you</Link></li> | ||
</ul> | ||
<Link to="/" id="title"><h1>Recycle NYC</h1></Link> | ||
|
||
<h3 className='headline'>Waste not, want not: find a public recycling bin near you!</h3> | ||
|
||
<ul className="ul-styles"> | ||
<li><Link className='link-styles' to="/by-borough">by borough</Link></li> | ||
<li><Link className='link-styles' to="/near-you">near you</Link></li> | ||
</ul> | ||
</header> | ||
) | ||
} | ||
|
||
export default Header | ||
export default Header; |
Empty file.
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 Reduce from './Reduce'; | ||
import Reuse from './Reuse'; | ||
import Recycle from './Recycle'; | ||
import './Home.css'; | ||
|
||
export default function Home() { | ||
return ( | ||
<div className="home-container"> | ||
<Reduce /> | ||
<Reuse /> | ||
<Recycle /> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,6 @@ | |
height: 300px; | ||
} | ||
|
||
.recycle-content { | ||
text-align: left; | ||
.recycle-img, .recycle-content { | ||
width: 50%; | ||
} |
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 |
---|---|---|
|
@@ -9,6 +9,6 @@ | |
height: 250px; | ||
} | ||
|
||
.reduce-content { | ||
text-align: left; | ||
} | ||
.reduce-img, .reduce-content { | ||
width: 50%; | ||
} |
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 |
---|---|---|
|
@@ -10,6 +10,6 @@ | |
height: 300px; | ||
} | ||
|
||
.reuse-content { | ||
text-align: left; | ||
.reuse-img, .reuse-content { | ||
width: 50%; | ||
} |
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
Binary file not shown.