Skip to content

Commit

Permalink
feat: add initial style to the top mega ultra super nice menu
Browse files Browse the repository at this point in the history
this fixes #41

Co-authored-by: Razvan-Victor Mocanu <[email protected]>
Co-authored-by: Filip Cornel-Cristian <[email protected]>
Co-authored-by: Catalin Sandru <[email protected]>
  • Loading branch information
4 people committed Jul 17, 2019
1 parent 99e192b commit d73f172
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/component/top-menu/top-menu.component.jsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import React from 'react'
import { Link } from '@reach/router'
import { StyledTopMenu, StyledLink } from './top-menu.style'

const TopMenu = () => {
return (
<div>
<Link to="/">Home</Link>
<Link to="/dashboard">Dashboard</Link>
<StyledTopMenu>
<StyledLink to="/">Home</StyledLink>
<StyledLink to="/dashboard">Dashboard</StyledLink>
<button>Log in</button>
</div>
</StyledTopMenu>
)
}

Expand Down
22 changes: 22 additions & 0 deletions src/component/top-menu/top-menu.style.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import styled from 'styled-components'
import { Link } from '@reach/router'

export const StyledLink = styled(Link)`
text-decoration: none;
padding: 0.5rem 1rem;
color: white;
transition: 0.25s;
&:hover {
color: #c00;
background-color: white;
}
`

export const StyledTopMenu = styled.div`
background-color: #d52027;
border-top-left-radius: 8px;
border-top-right-radius: 8px;
display: flex;
justify-content: space-evenly;
`

0 comments on commit d73f172

Please sign in to comment.