Skip to content
This repository has been archived by the owner on Aug 18, 2020. It is now read-only.

Commit

Permalink
feat(leftnav): add left nav
Browse files Browse the repository at this point in the history
adds the left nav component to the project
  • Loading branch information
eddier committed Mar 22, 2017
1 parent 64fb011 commit 7964da7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/components/LeftNav/LeftNavMenuItem.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import React from 'react'
const LeftNavMenuItem = (props) => {
let active = ''
let activeIcon = ''
active = props.active ? 'active' : ''
active = props.active ? 'icon_container-active' : 'icon_container-inactive'
activeIcon = props.active ? 'active-icon' : ''
return (
<li className='nav__item' onClick={props.onClick}>
<div className={`icon_container ${active}`}>
{(props.image)
? <img className={`icon_nav ${activeIcon}`} src={props.image} />
: null}
? <img className={`icon_nav ${activeIcon}`} src={props.image} />
: null}
{props.children}
</div>
</li>
Expand Down
14 changes: 10 additions & 4 deletions src/styles/components/left-nav.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,18 @@
text-align: center;
opacity: .4;
}
& .icon_nav:hover{
opacity: .7;
}
& .active {

& .icon_container-active {
border-left: 4px solid white;
opacity: 1;
& .icon_nav:hover{
opacity: 1;
}
}
& .icon_container-inactive{
& .icon_nav:hover{
opacity: .7;
}
}
& .nav__link {
color: white;
Expand Down

0 comments on commit 7964da7

Please sign in to comment.