Skip to content

Commit

Permalink
Refactoring Sidebar component
Browse files Browse the repository at this point in the history
  • Loading branch information
ollelauribostrom committed Jan 18, 2019
1 parent 86b946c commit 3865c1a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/components/Sidebar/Sidebar.css
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,12 @@

.sidebar__section__heading {
margin-bottom: 5px;
color: #6e297a;
font-size: 16px;
}

.sidebar__link {
text-decoration: none;
display: block;
margin: 20px 0;
margin: 15px 0;
font-size: 14px;
}
14 changes: 12 additions & 2 deletions src/components/Sidebar/Sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,12 @@ const Sidebar = ({ color, menuColor, menuBackground }) => (
width={250}
>
<div className="sidebar__section">
<h3 className="sidebar__section__heading">Work</h3>
<h3
className="sidebar__section__heading"
style={{ color: menuColor.hex }}
>
Work
</h3>
{data.allDatoCmsCategory.edges.map(edge => (
<Link
key={edge.node.slug}
Expand All @@ -45,7 +50,12 @@ const Sidebar = ({ color, menuColor, menuBackground }) => (
))}
</div>
<div className="sidebar__section">
<h3 className="sidebar__section__heading">About</h3>
<h3
className="sidebar__section__heading"
style={{ color: menuColor.hex }}
>
About
</h3>
<Link
to="/resume"
style={{ color: menuColor.hex }}
Expand Down

0 comments on commit 3865c1a

Please sign in to comment.