{"version":3,"sources":["webpack://redriverdesigns.ca/./src/components/Head/Head.jsx","webpack://redriverdesigns.ca/./src/components/Heading/Heading.jsx","webpack://redriverdesigns.ca/./src/page-components/featured-work.js","webpack://redriverdesigns.ca/./src/pages/featured-work.js"],"names":["Head","props","pageContent","sitewideContent","pageTitle","title","name","href","canonicalURL","rel","content","description","property","logo","file","url","StaticQuery","query","render","data","contentfulSitewideMetadataSeo","Heading1","styled","margin","fontSize","textAlign","textTransform","StyledFeaturedWorkPageDescription","StyledFeaturedWorksSection","ul","padding","listStyleType","display","flexWrap","justifyContent","maxWidth","li","width","StyledFeaturedWork","figure","height","backgroundImage","backgroundImageURL","backgroundPosition","backgroundRepeat","backgroundSize","position","figcaption","backgroundColor","colors","color","right","bottom","left","h2","FeaturedWork","Page","metadataSEO","Heading","featuredWorks","map","featuredWork","key","photo","contentfulPageFeaturedWork"],"mappings":"+JAMaA,G,OAAO,SAACC,GACnB,IAAOC,EAAgCD,EAAhCC,YAAaC,EAAmBF,EAAnBE,gBAGdC,EAAkC,SAAtBF,EAAYG,MAC1BF,EAAgBG,KACbJ,EAAYG,MAFD,MAEYF,EAAgBG,KAE9C,OACE,gBAAC,IAAD,KACE,wBAAMC,KAAML,EAAYM,aAAcC,IAAI,cAC1C,wBAAMC,QAASR,EAAYS,YAAaL,KAAK,gBAC7C,6BAAQF,GAGR,wBAAMM,QAASN,EAAWQ,SAAS,aACnC,wBAAMF,QAASR,EAAYS,YAAaC,SAAS,mBACjD,wBAAMF,QAAO,SAAWP,EAAgBU,KAAKC,KAAKC,IAAOH,SAAS,aAClE,wBAAMF,QAASR,EAAYM,aAAcI,SAAS,WAClD,wBAAMF,QAAO,SAAWP,EAAgBU,KAAKC,KAAKC,IAAOT,KAAK,iBAE9D,wBAAMI,QAASP,EAAgBG,KAAMM,SAAS,iBAC9C,wBAAMF,QAAO,SAAWP,EAAgBU,KAAKF,YAAeL,KAAK,yBAsCvE,IAzBwB,SAACL,GAAD,OACtB,gBAAC,EAA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KAC9D,8BACE,kCACE,0BAAK8C,EAAaxD,OAClB,4BAAOwD,EAAalD,yBAoDxC,EA3BgC,kBAC9B,gBAAC,EAAAK,YAAD,CAEEC,MAAK,aAoBLC,OAAQ,SAAAC,GAAI,OAAI,gBAACoC,EAAD,CAAc7C,QAASS,EAAK6C","file":"component---src-pages-featured-work-js-4bc6923c81302dd10f39.js","sourcesContent":["import {graphql, StaticQuery} from 'gatsby'\nimport PropTypes from 'prop-types'\nimport React from 'react'\nimport {Helmet as ReactHelmet} from 'react-helmet'\nimport {contentfulImagePropTypes, contentfulMetadataSeoPropTypes} from '../../shared-prop-types.js'\n\nexport const Head = (props) => {\n const {pageContent, sitewideContent} = props\n\n // if it's the homepage, simplify the page title to just the business/website name\n const pageTitle = pageContent.title === 'Home'\n ? sitewideContent.name\n : `${pageContent.title} | ${sitewideContent.name}`\n\n return (\n \n \n \n {pageTitle}\n {/* https://css-tricks.com/essential-meta-tags-social-media/ */}\n {/* essential meta tags */}\n \n \n \n \n \n {/* non-essential (but still recommended) meta tags */}\n \n \n \n )\n}\n\nHead.propTypes = {\n pageContent: PropTypes.shape(contentfulMetadataSeoPropTypes).isRequired,\n sitewideContent: PropTypes.shape({\n logo: PropTypes.shape(contentfulImagePropTypes).isRequired,\n name: PropTypes.string.isRequired,\n }).isRequired,\n}\n\nconst HeadWithContent = (props) => (\n (\n \n )}\n />\n)\n\nexport default HeadWithContent\n","import styled from 'styled-components'\n\nexport const Heading1 = styled.h1({\n margin: '4rem 0 2rem 0',\n fontSize: '2.4rem',\n textAlign: 'center',\n textTransform: 'uppercase',\n})\n","import styled from 'styled-components'\nimport {colors} from '../config/colors.js'\n\nexport const StyledFeaturedWorkPageDescription = styled.p({\n textAlign: 'center',\n})\n\nexport const StyledFeaturedWorksSection = styled.section({\n ul: {\n padding: '0 2rem',\n margin: '0 auto',\n listStyleType: 'none',\n },\n\n '@media screen and (min-width: 768px)': {\n ul: {\n display: 'flex',\n flexWrap: 'wrap',\n justifyContent: 'space-around',\n maxWidth: '100rem',\n },\n\n li: {\n width: '48%',\n },\n },\n})\n\nexport const StyledFeaturedWork = styled.div(props => ({\n figure: {\n height: '40rem',\n maxWidth: '40rem',\n margin: '4rem auto',\n backgroundImage: `url(https:${props.backgroundImageURL})`,\n backgroundPosition: 'center',\n backgroundRepeat: 'no-repeat',\n backgroundSize: 'cover',\n position: 'relative',\n },\n\n figcaption: {\n padding: '0.5rem',\n backgroundColor: colors['black-#000-with-shadow'],\n color: colors['white-#ddd'],\n position: 'absolute',\n right: 0,\n bottom: 0,\n left: 0,\n textAlign: 'center',\n },\n\n h2: {\n fontSize: '2rem',\n textTransform: 'uppercase',\n },\n}))\n","import {graphql, StaticQuery} from 'gatsby'\nimport PropTypes from 'prop-types'\nimport React from 'react'\nimport Head from '../components/Head/Head.jsx'\nimport {Heading1} from '../components/Heading/Heading.jsx'\nimport Page from '../components/Page/Page.jsx'\nimport {StyledFeaturedWork, StyledFeaturedWorkPageDescription, StyledFeaturedWorksSection} from '../page-components/featured-work.js'\nimport {contentfulImagePropTypes, contentfulMetadataSeoPropTypes} from '../shared-prop-types.js'\n\nconst FeaturedWork = (props) => {\n const {content} = props\n\n return (\n \n \n {content.metadataSEO.title}\n \n {content.metadataSEO.description}\n \n \n
    \n {content.featuredWorks.map((featuredWork) => (\n
  • \n \n
    \n
    \n

    {featuredWork.title}

    \n {featuredWork.description}\n
    \n
    \n
    \n
  • \n ))}\n
\n
\n
\n )\n}\n\nFeaturedWork.propTypes = {\n content: PropTypes.shape({\n metadataSEO: PropTypes.shape(contentfulMetadataSeoPropTypes).isRequired,\n featuredWorks: PropTypes.arrayOf(\n PropTypes.shape({\n description: PropTypes.string.isRequired,\n photo: PropTypes.shape(contentfulImagePropTypes).isRequired,\n title: PropTypes.string.isRequired,\n }).isRequired,\n ).isRequired,\n }).isRequired,\n}\n\nconst FeaturedWorkWithContent = () => (\n }\n />\n)\n\nexport default FeaturedWorkWithContent\n"],"sourceRoot":""}