feat: link to docs from sidebar

This commit is contained in:
Jean-Philippe Sirois
2019-07-27 15:52:25 -04:00
parent c06d36322d
commit ed39d9d0dd
3 changed files with 48 additions and 9 deletions
+27 -1
View File
@@ -1,3 +1,4 @@
import { Link } from "gatsby"
import styled from "styled-components"
export const SidebarWrapper = styled.aside`
@@ -10,12 +11,37 @@ export const Logo = styled.img`
export const Menu = styled.nav`
margin-top: 16px;
display: flex;
flex-direction: column;
align-items: flex-start;
`
export const MenuItem = styled.div`
export const MenuItem = styled(Link)`
display: flex;
align-items: center;
font-size: 22px;
text-decoration: none;
color: #555;
position: relative;
transition: color 0.3s;
&::after {
position: absolute;
content: "";
height: 2px;
transition: width 0.3s;
width: 0;
bottom: -3px;
background: #bf1e2e;
}
&:hover {
color: #bf1e2e;
}
&:hover::after {
width: calc(100% - 8px - 6px);
}
& + & {
margin-top: 8px;