Sharing global styles
This commit is contained in:
@ -1,10 +1,12 @@
|
||||
// @flow
|
||||
import React from 'react';
|
||||
import styled from 'styled-components';
|
||||
import { color } from '../../../shared/styles/constants';
|
||||
|
||||
export default function Navigation() {
|
||||
function Navigation() {
|
||||
return (
|
||||
<nav>
|
||||
<a href="/">Atlas</a>
|
||||
<Brand href="/">Atlas</Brand>
|
||||
<ul>
|
||||
<li><a href="/about">About</a></li>
|
||||
<li><a href="/pricing">Pricing</a></li>
|
||||
@ -12,3 +14,12 @@ export default function Navigation() {
|
||||
</nav>
|
||||
);
|
||||
}
|
||||
|
||||
const Brand = styled.a`
|
||||
font-weight: 600;
|
||||
font-size: 20px;
|
||||
text-decoration: none;
|
||||
color: ${color.black};
|
||||
`;
|
||||
|
||||
export default Navigation;
|
||||
|
Reference in New Issue
Block a user