This repository has been archived by the owner on Aug 1, 2020. It is now read-only.
-
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.
- Loading branch information
Showing
8 changed files
with
136 additions
and
11 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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import {DrawerToggleButtonStyles} from './styles' | ||
|
||
const DrawerToggleButton = props => ( | ||
<DrawerToggleButtonStyles className="toggleButton" onClick={props.click}> | ||
<div className="toggleButtonLine"></div> | ||
<div className="toggleButtonLine"></div> | ||
<div className="toggleButtonLine"></div> | ||
</DrawerToggleButtonStyles> | ||
) | ||
|
||
export default DrawerToggleButton |
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
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,32 @@ | ||
import Link from 'next/link'; | ||
import SideDrawerStyles from './styles' | ||
|
||
const SideDrawer = props => { | ||
let drawerClasses = ['']; | ||
if(props.show) { | ||
drawerClasses = ['open']; | ||
} | ||
return ( | ||
<SideDrawerStyles className={drawerClasses}> | ||
<ul className="sideDrawer__nav"> | ||
<li> | ||
<Link href="/"><a title="Jay's home page">Home Page</a></Link> | ||
</li> | ||
<li> | ||
<Link href="/about"><a title="More about Jay">About</a></Link> | ||
</li> | ||
<li> | ||
<Link href="/projects"><a title="Jay's recent projects">Projects</a></Link> | ||
</li> | ||
<li> | ||
<Link href="/resume"><a title="Jay's cummulative experience">Experience</a></Link> | ||
</li> | ||
<li> | ||
<Link href="/static/resume/jayfallon-resume-2019.pdf"><a target="_blank" title="Download Jay's resume">Download Resume</a></Link> | ||
</li> | ||
</ul> | ||
</SideDrawerStyles> | ||
) | ||
} | ||
|
||
export default SideDrawer |
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 @@ | ||
import styled from 'styled-components' | ||
|
||
const SideDrawerStyles = styled.nav` | ||
transform: translateX(-100%); | ||
transition: transform 0.2 ease-in-out; | ||
&.open { | ||
transform: translateX(0); | ||
} | ||
z-index: 300; | ||
height: 100%; | ||
background-color: #fff; | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
width: 100%; | ||
padding: 4rem 2rem; | ||
ul { | ||
padding-top: 4rem; | ||
} | ||
li { | ||
padding-bottom: 2rem; | ||
} | ||
a { | ||
color: #333; | ||
font-size: 2rem; | ||
font-weight: bold; | ||
text-decoration: none; | ||
} | ||
` | ||
|
||
export default SideDrawerStyles |