This repository has been archived by the owner on Sep 25, 2021. 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.
Merge pull request #17 from mianzegregory/enhancements
Enhancements
- Loading branch information
Showing
20 changed files
with
400 additions
and
287 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
Binary file not shown.
Binary file not shown.
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 |
---|---|---|
|
@@ -50,5 +50,6 @@ const Wrapper = styled.footer` | |
} | ||
@media(max-width: 500px){ | ||
flex-direction: column; | ||
margin-bottom: 3rem; | ||
} | ||
`; |
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,143 +1,83 @@ | ||
import React from "react"; | ||
import { slide as Menu } from "react-burger-menu"; | ||
import styled from "styled-components"; | ||
import { Link } from "react-router-dom"; | ||
|
||
const MobileAppbar = () => { | ||
const MobileAppbar = (props) => { | ||
return ( | ||
<ToolbarWrapper> | ||
<Link to="/">Sharon Jaoko</Link> | ||
<input className="menu-btn" type="checkbox" id="menu-btn" /> | ||
<label className="menu-icon" for="menu-btn"> | ||
<span className="navicon"></span> | ||
</label> | ||
<ul className="menu"> | ||
<Menu {...props}> | ||
<Link to="/"> | ||
<li>Home</li> | ||
</Link> | ||
<Link to="/portfolio"> | ||
<li>Portfolio</li> | ||
</Link> | ||
<Link to="/about"> | ||
<li>About</li> | ||
</Link> | ||
<Link to="/blog"> | ||
<li>Blog</li> | ||
</Link> | ||
</ul> | ||
</Menu> | ||
</ToolbarWrapper> | ||
); | ||
}; | ||
|
||
export default MobileAppbar; | ||
|
||
const ToolbarWrapper = styled.header` | ||
background-color: #fff; | ||
box-shadow: 1px 1px 4px 0 rgba(0, 0, 0, 0.1); | ||
const ToolbarWrapper = styled.div` | ||
background-color: transparent; | ||
position: fixed; | ||
top: 0; | ||
width: 100%; | ||
border-radius: 100%; | ||
margin-bottom: 3rem; | ||
z-index: 3; | ||
a { | ||
font-size: 0.9rem; | ||
color: #000; | ||
line-height: 1.6; | ||
letter-spacing: 2px; | ||
text-decoration: none; | ||
font-family: "Ubuntu", sans-serif; | ||
margin: 0 1rem; | ||
} | ||
ul { | ||
margin: 0; | ||
padding: 0; | ||
list-style: none; | ||
overflow: hidden; | ||
background-color: #fff; | ||
} | ||
li { | ||
display: block; | ||
padding: 20px 20px; | ||
border-right: 1px solid #f4f4f4; | ||
font-weight: 600; | ||
font-size: 0.9rem; | ||
font-family: "Ubuntu", sans-serif; | ||
font-family: "Open Sans", sans-serif; | ||
color: #000; | ||
line-height: 1.6; | ||
letter-spacing: 2px; | ||
text-decoration: none; | ||
} | ||
/* menu */ | ||
.menu { | ||
clear: both; | ||
max-height: 0; | ||
transition: max-height 0.3s ease-out; | ||
} | ||
/* menu icon */ | ||
.menu-icon { | ||
cursor: pointer; | ||
.bm-item { | ||
display: inline-block; | ||
float: right; | ||
padding: 28px 20px; | ||
position: relative; | ||
user-select: none; | ||
} | ||
.menu-icon .navicon { | ||
background: #333; | ||
display: block; | ||
height: 2px; | ||
position: relative; | ||
transition: background 0.3s ease-out; | ||
width: 18px; | ||
} | ||
.menu-icon .navicon:before, | ||
.menu-icon .navicon:after { | ||
background: #333; | ||
content: ""; | ||
display: block; | ||
height: 100%; | ||
position: absolute; | ||
transition: all 0.3s ease-out; | ||
width: 100%; | ||
} | ||
.menu-icon .navicon:before { | ||
top: 5px; | ||
text-decoration: none; | ||
margin-bottom: 0.2rem; | ||
color: #000; | ||
transition: color 0.2s; | ||
} | ||
.menu-icon .navicon:after { | ||
top: -5px; | ||
.bm-burger-button { | ||
position: fixed; | ||
background: transparent; | ||
width: 1.5rem; | ||
height: 1.5rem; | ||
right: 1rem; | ||
top: 1rem; | ||
} | ||
/* menu btn */ | ||
.menu-btn { | ||
display: none; | ||
.bm-burger-bars { | ||
background: #000; | ||
} | ||
.menu-btn:checked ~ .menu { | ||
max-height: 100%; | ||
.bm-cross-button { | ||
height: 1px; | ||
width: 1px; | ||
} | ||
.menu-btn:checked ~ .menu-icon .navicon { | ||
background: transparent; | ||
.bm-cross { | ||
background: #000; | ||
} | ||
.menu-btn:checked ~ .menu-icon .navicon:before { | ||
transform: rotate(-45deg); | ||
.bm-menu { | ||
background: #fff; | ||
padding: 2.5em 1.5em 0; | ||
font-size: 1.15em; | ||
} | ||
.menu-btn:checked ~ .menu-icon .navicon:after { | ||
transform: rotate(45deg); | ||
.bm-morph-shape { | ||
fill: #000; | ||
} | ||
.menu-btn:checked ~ .menu-icon:not(.steps) .navicon:before, | ||
.menu-btn:checked ~ .menu-icon:not(.steps) .navicon:after { | ||
top: 0; | ||
.bm-item-list { | ||
color: #000; | ||
} | ||
/* 48em = 768px */ | ||
@media (min-width: 48em) { | ||
li { | ||
float: left; | ||
padding: 20px 30px; | ||
} | ||
li a { | ||
padding: 20px 30px; | ||
} | ||
.menu { | ||
clear: none; | ||
float: right; | ||
max-height: none; | ||
} | ||
.menu-icon { | ||
display: none; | ||
} | ||
.bm-overlay { | ||
background: #000; | ||
} | ||
`; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.