Skip to content

Commit

Permalink
Move most in-line styles to Tachyons classes.
Browse files Browse the repository at this point in the history
  • Loading branch information
ohookins committed Jun 1, 2018
1 parent da394e0 commit f53aabd
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 22 deletions.
12 changes: 3 additions & 9 deletions src/components/Buttons/index.js
Expand Up @@ -2,15 +2,9 @@ import React from 'react'
import Link from 'gatsby-link'

const Buttons = () => (
<div style={{
display:'flex',
justifyContent: 'center'
}}>
<div className="flex justify-center">
<div className="w-70 bg-dark-gray">
<div className="cabin f5" style={{
display:'flex',
justifyContent: 'center'
}}>
<div className="cabin f5 flex justify-center">
<Link to="/" className="link dim ph4 pv2 mb2 dib white-90 bg-mid-gray">
Home
</Link>
Expand All @@ -24,4 +18,4 @@ const Buttons = () => (
);

export default Buttons

7 changes: 1 addition & 6 deletions src/components/Footer/index.js
Expand Up @@ -2,12 +2,7 @@ import React from 'react';
import Link from 'gatsby-link';

const Footer = () => (
<div className="cabin" style={{
margin: '0 auto',
width: '50%',
display: 'flex',
justifyContent: 'center'
}} >
<div className="cabin center mw6 flex justify-center">
<div className="ph2 pt4">© 2010-2018 Oliver Hookins</div>
</div>
);
Expand Down
4 changes: 1 addition & 3 deletions src/components/Header/index.js
Expand Up @@ -10,10 +10,8 @@ const Header = () => (
>

<h1 className="f1 f-headline-m fw8 quattrocento">
<Link
to="/"
<Link to="/" className="black-20 dim"
style={{
color: '#999999',
textDecoration: 'none',
textShadow: "1px 1px #555555"
}}
Expand Down
5 changes: 1 addition & 4 deletions src/layouts/index.js
Expand Up @@ -18,10 +18,7 @@ const TemplateWrapper = ({ children }) => (
/>
<Header />
<Buttons />
<div style={{
display: 'flex',
justifyContent: 'center'
}}>
<div className="flex justify-center">
<div className="fl w-70 bg-dark-gray pa3 pl5 pr5">
{children()}
</div>
Expand Down

0 comments on commit f53aabd

Please sign in to comment.