Skip to content

Commit

Permalink
Merge pull request #35 from lowmess/develop
Browse files Browse the repository at this point in the history
add colophon page
  • Loading branch information
lowmess committed Mar 29, 2018
2 parents e79919e + 8e183a6 commit aae1ea4
Show file tree
Hide file tree
Showing 2 changed files with 226 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/layouts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ const Backdrop = styled(Box)`
// but I'm not sure of a way of accessing these values inside styled-system like this
// just gotta update the step on the scale here if it's updated in <Layout />
const Content = styled(Box)`
min-height: calc(100vh - ${({ theme }) => theme.space[3]});
min-height: calc(100vh - ${({ theme }) => theme.space[4]});
@media (min-width: ${({ theme }) => theme.breakpoints[0]}em) {
min-height: calc(100vh - ${({ theme }) => theme.space[4]});
min-height: calc(100vh - ${({ theme }) => theme.space[5]});
}
@media print {
min-height: 0;
Expand Down
224 changes: 224 additions & 0 deletions src/pages/colophon.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,224 @@
import React from 'react'
import Helmet from 'react-helmet'
import { withComponent } from 'react-emotion'
import { Flex, Box, Text } from '../components/Layout'
import { Title, Subtitle, Paragraph, Rule } from '../components/Typography'
import { dependencies } from '../../package-lock.json'

const Columns = Flex.withComponent('main')
const Column = Box.withComponent('section')

const SectionTitle = Text.withComponent('h2')

const Dep = Flex.withComponent('p')
const DepLink = ({ children, ...props }) => (
<Text
color="black"
hover={{ color: 'orange' }}
fontSize={[2, 3]}
fontWeight={6}
{...props}
>
{children}
</Text>
)
const DepVer = ({ children, ...props }) => (
<Text font="monospace" {...props}>
v{children}
</Text>
)

const ColophonPage = ({ data }) => {
const {
gatsby: { version: gatsby },
'react-helmet': { version: helmet },
'date-fns': { version: dateFns },
'normalize.css': { version: normalize },
emotion: { version: emotion },
'styled-system': { version: styledSystem },
'hero-patterns': { version: heroPatterns },
prettier: { version: prettier },
husky: { version: husky },
'lint-staged': { version: lintStaged },
} = dependencies
return (
<article>
<Helmet>
<title>Colophon • {data.site.siteMetadata.title}</title>
</Helmet>
<header>
<Title
fontSize={[4, 5]}
fontWeight="7"
lineHeight="title"
mt={0}
mb={3}
>
Building Blocks
</Title>
<Rule mt={4} mb={5} />
</header>
<Columns flexDirection={['column', 'column', 'row']}>
<Column mr={[0, 0, 6]} mb={[3, 3, 0]}>
<SectionTitle fontSize={[3, 4]} mt={0} mb={0}>
Functionality
</SectionTitle>

<Dep alignItems="center" mt={4} mb={0}>
<a href="https://gatsbyjs.org">
<DepLink>GatsbyJS</DepLink>
</a>{' '}
<DepVer ml={3}>{gatsby}</DepVer>
</Dep>

<Dep alignItems="center" mt={3} mb={0}>
<a href="https://github.com/nfl/react-helmet">
<DepLink>React Helmet</DepLink>
</a>{' '}
<DepVer ml={3}>{helmet}</DepVer>
</Dep>

<Dep alignItems="center" mt={3} mb={0}>
<a href="https://date-fns.org/">
<DepLink>date-fns</DepLink>
</a>{' '}
<DepVer ml={3}>{dateFns}</DepVer>
</Dep>

<Dep alignItems="center" mt={3} mb={0}>
<a href="https://necolas.github.io/normalize.css/">
<DepLink>Normalize.css</DepLink>
</a>{' '}
<DepVer ml={3}>{normalize}</DepVer>
</Dep>

<Dep alignItems="center" mt={3} mb={0}>
<a href="https://emotion.sh/">
<DepLink>emotion</DepLink>
</a>{' '}
<DepVer ml={3}>{emotion}</DepVer>
</Dep>

<Dep alignItems="center" mt={3} mb={0}>
<a href="http://jxnblk.com/styled-system/">
<DepLink>styled-system</DepLink>
</a>{' '}
<DepVer ml={3}>{styledSystem}</DepVer>
</Dep>

<Dep alignItems="center" mt={3} mb={0}>
<a href="https://hero-patterns.lowmess.com">
<DepLink>hero-patterns.js</DepLink>
</a>{' '}
<DepVer ml={3}>{heroPatterns}</DepVer>
</Dep>
</Column>

<Column mt={[5, 5, 0]} mr={[0, 0, 6]}>
<SectionTitle fontSize={[3, 4]} mt={0} mb={0}>
Infrastructure
</SectionTitle>

<Dep alignItems="center" mt={4} mb={0}>
<a href="https://netlify.com">
<DepLink>Netlify</DepLink>
</a>
</Dep>

<Dep alignItems="center" mt={3} mb={0}>
<a href="https://github.com">
<DepLink>GitHub</DepLink>
</a>
</Dep>

<Dep alignItems="center" mt={3} mb={0}>
<a href="https://get.gaug.es">
<DepLink>Gauges</DepLink>
</a>
</Dep>

<Dep alignItems="center" mt={3} mb={0}>
<a href="https://prettier.io/">
<DepLink>Prettier</DepLink>
</a>{' '}
<DepVer ml={3}>{prettier}</DepVer>
</Dep>

<Dep alignItems="center" mt={3} mb={0}>
<a href="https://github.com/typicode/husky">
<DepLink>husky</DepLink>
</a>{' '}
<DepVer ml={3}>{husky}</DepVer>
</Dep>

<Dep alignItems="center" mt={3} mb={0}>
<a href="https://github.com/okonet/lint-staged">
<DepLink>lint-staged</DepLink>
</a>{' '}
<DepVer ml={3}>{lintStaged}</DepVer>
</Dep>
</Column>

<Column mt={[5, 5, 0]}>
<SectionTitle fontSize={[3, 4]} mt={0} mb={0}>
Sanity
</SectionTitle>

<Dep alignItems="center" mt={4} mb={0}>
<Text fontSize={[2, 3]} fontWeight={6}>
Music
</Text>
</Dep>

<Dep alignItems="center" mt={3} mb={0}>
<Text fontSize={[2, 3]} fontWeight={6}>
Podcasts
</Text>
</Dep>

<Dep alignItems="center" mt={3} mb={0}>
<Text fontSize={[2, 3]} fontWeight={6}>
Coffee
</Text>
</Dep>

<Dep alignItems="center" mt={3} mb={0}>
<Text fontSize={[2, 3]} fontWeight={6}>
Beer
</Text>
</Dep>

<Dep alignItems="center" mt={3} mb={0}>
<Text fontSize={[2, 3]} fontWeight={6}>
Burritos
</Text>
</Dep>

<Dep alignItems="center" mt={3} mb={0}>
<Text fontSize={[2, 3]} fontWeight={6}>
Air Conditioning
</Text>
</Dep>

<Dep alignItems="center" mt={3} mb={0}>
<Text fontSize={[2, 3]} fontWeight={6}>
Skateboarding
</Text>
</Dep>
</Column>
</Columns>
</article>
)
}

export const pageQuery = graphql`
query ColophonQuery {
site {
siteMetadata {
title
}
}
}
`

export default ColophonPage

0 comments on commit aae1ea4

Please sign in to comment.