import React from 'react' import { css } from '@emotion/core' import { FontAwesome } from './font-awesome' import { faLink } from '@fortawesome/free-solid-svg-icons' import { Tag } from './tag' import { ProjectDetail } from './project-detail' const projectHeadingStyle = ({ margins }) => css` margin: 0 ${margins.sm}px 0 0; ` const projectBriefStyle = css` font-weight: 300; ` const projectBlockStyle = css` display: flex; flex-wrap: wrap; ` const linkStyle = ({ margins }) => css` display: flex; align-content: center; margin: 0 ${margins.sm}px 0 0; padding: 0 0 ${margins.sm}px 0; border-color: rgba(0, 0, 0, 0); :hover { border-color: #ffffff; } ` const projectStyle = ({ margins }) => css` margin: 0 0 ${margins.lg}px 0; & > * { margin: 0 0 ${margins.md}px 0; } ` const linkIconStyle = css` display: flex; align-items: center; ` const projectHeadingContainerStyle = ({ margins }) => css` display: flex; justify-content: space-between; align-items: center; margin-bottom: ${margins.md}px; flex-wrap: wrap; ` const projectTagContainerStyle = css` display: flex; align-items: center; flex-wrap: wrap; ` const dateStyle = ({ margins }) => css` margin-bottom: ${margins.sm}px; ` export const Project = p => { return (

{p.name}

{p.inProd ? In Prod : null}

{p.date}

{p.brief}

{p.desc ? (
css` margin-bottom: ${margins.md}px; `} >

{p.desc}

) : null} {p.projectDetails ? p.projectDetails.map((k, i) => ( )) : null}
) }