-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35 from lowmess/develop
add colophon page
- Loading branch information
Showing
2 changed files
with
226 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |