import React from 'react' import { css } from '@emotion/core' import { BaseLayout } from '../components/base-layout' import { Project as BaseProject } from '../components/project' import { cvTheme } from '../components/globals' import { projects } from './projects' import { workHistory } from './work' import { skills, tools } from './about' const Project = p => const cleanProjectDetailForCv = ({ images, ...rest }) => rest const cleanProjectForCv = project => ({ ...project, inProd: false, projectDetails: project.projectDetails ? project.projectDetails.map(cleanProjectDetailForCv) : null }) const cvProjects = projects.filter(k => k.showOnCv).map(cleanProjectForCv) const cvWork = workHistory.map(cleanProjectForCv) const containerStyle = ({ margins }) => css` margin: 0 0 ${margins.lg}px 0; ` export default () => ( css` margin-bottom: ${margins.lg}px; ` } > Nicholas Van Doorn css` & a { margin-right: 20px; } `} > vandoorn.nick@gmail.com github.com/nvandoorn twitter.com/nickvandoorn css` & h1 { margin-bottom: ${margins.lg}px; } `} > Work {cvWork.map((k, i) => ( ))} Projects {cvProjects.map(k => ( ))} Skills {skills.map(k => ( {k} ))} Tools {tools.map(k => ( {k} ))} )