Skip to content

Commit

Permalink
remove UI
Browse files Browse the repository at this point in the history
  • Loading branch information
noahg committed Sep 13, 2017
1 parent e2d80c2 commit 1d56838
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 269 deletions.
6 changes: 0 additions & 6 deletions gatsby-config.js
Expand Up @@ -43,11 +43,5 @@ module.exports = {
},
`gatsby-plugin-offline`,
`gatsby-plugin-react-helmet`,
{
resolve: "gatsby-plugin-typography",
options: {
pathToConfigModule: "src/utils/typography",
},
},
],
}
7 changes: 1 addition & 6 deletions package.json
Expand Up @@ -15,7 +15,6 @@
"gatsby-plugin-preact": "^1.0.3",
"gatsby-plugin-react-helmet": "^1.0.3",
"gatsby-plugin-sharp": "^1.6.2",
"gatsby-plugin-typography": "^1.7.6",
"gatsby-remark-copy-linked-files": "^1.5.2",
"gatsby-remark-images": "^1.5.4",
"gatsby-remark-prismjs": "^1.2.1",
Expand All @@ -24,11 +23,7 @@
"gatsby-source-filesystem": "^1.4.3",
"gatsby-transformer-remark": "^1.7.1",
"gatsby-transformer-sharp": "^1.6.1",
"lodash": "^4.15.0",
"react-responsive-grid": "^0.3.3",
"typeface-merriweather": "^0.0.35",
"typeface-montserrat": "^0.0.37",
"typography-theme-wordpress-2016": "^0.15.1"
"lodash": "^4.15.0"
},
"devDependencies": {
"gh-pages": "^0.12.0",
Expand Down
18 changes: 1 addition & 17 deletions src/components/Bio.js
@@ -1,30 +1,14 @@
import React from 'react'

// Import typefaces
import 'typeface-montserrat'
import 'typeface-merriweather'

import profilePic from './profile-pic.jpg'
import { rhythm } from '../utils/typography'

class Bio extends React.Component {
render() {
return (
<p
style={{
marginBottom: rhythm(2.5),
}}
>
<p>
<img
src={profilePic}
alt={`Kyle Mathews`}
style={{
float: 'left',
marginRight: rhythm(1 / 4),
marginBottom: 0,
width: rhythm(2),
height: rhythm(2),
}}
/>
Written by <strong>Kyle Mathews</strong> who lives and works in San
Francisco building useful things.{' '}
Expand Down
150 changes: 0 additions & 150 deletions src/css/zenburn.css

This file was deleted.

46 changes: 6 additions & 40 deletions src/layouts/index.js
@@ -1,66 +1,32 @@
import React from 'react'
import Link from 'gatsby-link'
import { Container } from 'react-responsive-grid'

import { rhythm, scale } from '../utils/typography'

class Template extends React.Component {
render() {
const { location, children } = this.props
let header
if (location.pathname === '/') {
header = (
<h1
style={{
...scale(1.5),
marginBottom: rhythm(1.5),
marginTop: 0,
}}
>
<Link
style={{
boxShadow: 'none',
textDecoration: 'none',
color: 'inherit',
}}
to={'/'}
>
<h1>
<Link to={'/'} >
Gatsby Starter Blog
</Link>
</h1>
)
} else {
header = (
<h3
style={{
fontFamily: 'Montserrat, sans-serif',
marginTop: 0,
marginBottom: rhythm(-1),
}}
>
<Link
style={{
boxShadow: 'none',
textDecoration: 'none',
color: 'inherit',
}}
to={'/'}
>
<h3>
<Link to={'/'}>
Gatsby Starter Blog
</Link>
</h3>
)
}
return (
<Container
style={{
maxWidth: rhythm(24),
padding: `${rhythm(1.5)} ${rhythm(3 / 4)}`,
}}
>
<div>
{header}
{children()}
</Container>
</div>
)
}
}
Expand Down
15 changes: 0 additions & 15 deletions src/pages/2015-05-01-hello-world/index.1.md

This file was deleted.

12 changes: 2 additions & 10 deletions src/pages/index.js
Expand Up @@ -4,7 +4,6 @@ import get from 'lodash/get'
import Helmet from 'react-helmet'

import Bio from '../components/Bio'
import { rhythm } from '../utils/typography'

class BlogIndex extends React.Component {
render() {
Expand All @@ -20,15 +19,8 @@ class BlogIndex extends React.Component {
const title = get(post, 'node.frontmatter.title') || post.node.path
return (
<div key={post.node.frontmatter.path}>
<h3
style={{
marginBottom: rhythm(1 / 4),
}}
>
<Link
style={{ boxShadow: 'none' }}
to={post.node.frontmatter.path}
>
<h3>
<Link to={post.node.frontmatter.path} >
{post.node.frontmatter.title}
</Link>
</h3>
Expand Down
16 changes: 2 additions & 14 deletions src/templates/blog-post.js
Expand Up @@ -4,7 +4,6 @@ import Link from 'gatsby-link'
import get from 'lodash/get'

import Bio from '../components/Bio'
import { rhythm, scale } from '../utils/typography'

class BlogPostTemplate extends React.Component {
render() {
Expand All @@ -15,22 +14,11 @@ class BlogPostTemplate extends React.Component {
<div>
<Helmet title={`${post.frontmatter.title} | ${siteTitle}`} />
<h1>{post.frontmatter.title}</h1>
<p
style={{
...scale(-1 / 5),
display: 'block',
marginBottom: rhythm(1),
marginTop: rhythm(-1),
}}
>
<p>
{post.frontmatter.date}
</p>
<div dangerouslySetInnerHTML={{ __html: post.html }} />
<hr
style={{
marginBottom: rhythm(1),
}}
/>
<hr />
<Bio />
</div>
)
Expand Down
11 changes: 0 additions & 11 deletions src/utils/typography.js

This file was deleted.

0 comments on commit 1d56838

Please sign in to comment.