-
Notifications
You must be signed in to change notification settings - Fork 0
/
1-1c95505d80a2dfa4aaa4.js.map
1 lines (1 loc) · 14.8 KB
/
1-1c95505d80a2dfa4aaa4.js.map
1
{"version":3,"sources":["webpack:///./src/components/block.js","webpack:///./.cache/gatsby-browser-entry.js","webpack:///./.cache/public-page-renderer.js","webpack:///./src/components/menu.js","webpack:///./src/components/attribution.js","webpack:///./src/components/background.js","webpack:///./src/components/layout.js","webpack:///./.cache/public-page-renderer-prod.js"],"names":["__webpack_exports__","_ref","children","Object","_emotion_core__WEBPACK_IMPORTED_MODULE_0__","css","container","name","styles","StaticQueryContext","React","createContext","StaticQuery","props","Consumer","staticQueryData","data","query","render","graphql","Error","propTypes","PropTypes","object","string","isRequired","func","m","module","exports","require","default","menu","core_browser_esm","menuCSS","gatsby_browser_entry","to","menuText","attribution","photographer","style","href","target","rel","title","Background","context","_this","min","max","_React$PureComponent","call","this","setNextImage","setState","currentImage","images","length","state","Math","floor","random","componentDidMount","setInterval","positioning","overlay","css_browser_esm","background","backgroundImage","src","map","image","key","PureComponent","defaultProps","crossfade","keyframes","_templateObject","pan","_templateObject2","width","height","position","zIndex","overflow","backgroundSize","animation","backgroundColor","Layout","_this$props","layout","Helmet","charSet","type","layout_ref","hover","background_Background","hoverKeyFrames","layout_templateObject","&:hover","ProdPageRenderer","location","pageResources","loader","getResourcesForPathnameSync","pathname","createElement","InternalPageRenderer","assign","json","shape"],"mappings":"0GAGeA,EAAA,WAAAC,GAAA,IAAEC,EAAFD,EAAEC,SAAF,OACbC,OAAAC,EAAA,EAAAD,CAAA,QAAME,IAAKC,GACRJ,IAIL,IAAMI,EAAY,CAAHC,KAAA,UAAAC,OAAA,mpBCGf,IAAMC,EAAqBC,IAAMC,cAAc,IAEzCC,EAAc,SAAAC,GAAK,OACvBV,OAAAC,EAAA,EAAAD,CAACM,EAAmBK,SAApB,KACG,SAAAC,GACC,OACEF,EAAMG,MACLD,EAAgBF,EAAMI,QAAUF,EAAgBF,EAAMI,OA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4.js","sourcesContent":["import React from \"react\"\nimport {css } from '@emotion/core'\n\nexport default ({children}) => (\n <span css={container}>\n {children}\n </span>\n)\n\nconst container = css({\n padding: 10,\n maxWidth: '35em',\n})\n","import React from \"react\"\nimport PropTypes from \"prop-types\"\nimport Link, {\n withPrefix,\n navigate,\n push,\n replace,\n navigateTo,\n} from \"gatsby-link\"\nimport PageRenderer from \"./public-page-renderer\"\nimport parsePath from \"./parse-path\"\n\nconst StaticQueryContext = React.createContext({})\n\nconst StaticQuery = props => (\n <StaticQueryContext.Consumer>\n {staticQueryData => {\n if (\n props.data ||\n (staticQueryData[props.query] && staticQueryData[props.query].data)\n ) {\n return (props.render || props.children)(\n props.data ? props.data.data : staticQueryData[props.query].data\n )\n } else {\n return <div>Loading (StaticQuery)</div>\n }\n }}\n </StaticQueryContext.Consumer>\n)\n\nStaticQuery.propTypes = {\n data: PropTypes.object,\n query: PropTypes.string.isRequired,\n render: PropTypes.func,\n children: PropTypes.func,\n}\n\nfunction graphql() {\n throw new Error(\n `It appears like Gatsby is misconfigured. Gatsby related \\`graphql\\` calls ` +\n `are supposed to only be evaluated at compile time, and then compiled away,. ` +\n `Unfortunately, something went wrong and the query was left in the compiled code.\\n\\n.` +\n `Unless your site has a complex or custom babel/Gatsby configuration this is likely a bug in Gatsby.`\n )\n}\n\nexport {\n Link,\n withPrefix,\n graphql,\n parsePath,\n navigate,\n push, // TODO replace for v3\n replace, // TODO remove replace for v3\n navigateTo, // TODO: remove navigateTo for v3\n StaticQueryContext,\n StaticQuery,\n PageRenderer,\n}\n","const preferDefault = m => (m && m.default) || m\n\nif (process.env.BUILD_STAGE === `develop`) {\n module.exports = preferDefault(require(`./public-page-renderer-dev`))\n} else if (process.env.BUILD_STAGE === `build-javascript`) {\n module.exports = preferDefault(require(`./public-page-renderer-prod`))\n} else {\n module.exports = () => null\n}\n","import React from \"react\"\nimport { css } from \"@emotion/core\"\nimport { Link } from \"gatsby\"\n\nexport default () => (\n <nav css={menuCSS}>\n <Link to=\"/\">\n <span css={menuText}>home</span>{\" \"}\n </Link>\n <Link to=\"/meta\">\n <span css={menuText}> meta </span>{\" \"}\n </Link>\n </nav>\n)\n\nconst menuCSS = css({\n display: \"flex\",\n justifyContent: \"space-between\",\n backgroundColor: \"#ffffff85\",\n width: \"100vw\"\n})\nconst menuText = css({\n height: \"1em\",\n fontSize: \"0.8em\",\n padding: \"0.2em 1em\",\n \"&:hover\": {\n color: \"white\"\n }\n})\n","import React from \"react\"\nimport { css } from \"@emotion/core\"\n\nexport default ({ photographer }) => (\n <a\n css={style}\n href={`https://unsplash.com/${photographer}?utm_medium=referral&utm_campaign=photographer-credit&utm_content=creditBadge`}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n title={`Download free do whatever you want high-resolution photos from ${photographer}`}\n >\n Photo by {photographer}\n </a>\n)\n\nconst style = css({\n position: \"fixed\",\n bottom: 10,\n right: 20,\n fontSize: \"0.5rem\"\n})\n","import React from \"react\"\nimport Attribution from \"./attribution\"\nimport { css, keyframes } from \"@emotion/core\"\n\nfunction getRandomIndex(min, max) {\n return Math.floor(Math.random() * (max - min) + min)\n}\n\nconst DURATION_IN_SECONDS = 15\n\nexport default class Background extends React.PureComponent {\n constructor(props, context) {\n super(props, context)\n\n this.state = {\n currentImage: getRandomIndex(0, props.images.length)\n }\n }\n\n static defaultProps = {\n images: [\n {\n src:\n \"https://images.unsplash.com/photo-1482977036925-e8fcaa643657?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1234&q=80\",\n photographer: \"@anchorlee\"\n },\n {\n src:\n \"https://images.unsplash.com/photo-1484291470158-b8f8d608850d?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=2000&q=80\",\n photographer: \"@christoffere\"\n },\n {\n src:\n \"https://images.unsplash.com/photo-1523002010469-ea85cb48674b?ixlib=rb-1.2.1&auto=format&fit=crop&w=2000&q=80\",\n photographer: \"@alessandracaretto\"\n },\n {\n src:\n \"https://images.unsplash.com/photo-1526635229611-9a2482c8427b?ixlib=rb-1.2.1&auto=format&fit=crop&w=2000&q=80\",\n photographer: \"@rawpixel\"\n }\n ]\n }\n\n componentDidMount() {\n setInterval(this.setNextImage, 1000 * DURATION_IN_SECONDS)\n }\n\n setNextImage = () => {\n debugger\n this.setState(({ currentImage }) => ({\n currentImage:\n currentImage + 1 <= this.props.images.length - 1 ? currentImage + 1 : 0\n }))\n }\n\n currentImage() {\n return this.props.images[this.state.currentImage]\n }\n\n render() {\n return (\n <div css={positioning}>\n <div css={overlay} />\n <div\n css={[\n background,\n css({\n backgroundImage: `url(${this.currentImage().src})`\n })\n ]}\n />\n <Attribution photographer={this.currentImage().photographer} />\n {this.props.images.map(image => (\n <link key={image.src} rel=\"prefetch\" href={image.src} />\n ))}\n </div>\n )\n }\n}\n\nconst crossfade = keyframes`\n 0% {\n opacity: 1\n }\n\n 12% {\n opacity: 0\n }\n\n 85% {\n opacity: 0 \n }\n\n 100% {\n opacity: 1\n }\n`\n\nconst pan = keyframes`\n 0% {\n -webkit-transform: scale(1) translateY(0);\n transform: scale(1) translateY(0);\n -webkit-transform-origin: 50% 16%;\n transform-origin: 50% 16%;\n }\n 100% {\n -webkit-transform: scale(1.25) translateY(-15px);\n transform: scale(1.25) translateY(-15px);\n -webkit-transform-origin: top;\n transform-origin: top;\n }\n`\n\nconst background = css({\n width: \"100vw\",\n height: \"100vh\",\n position: \"fixed\",\n zIndex: -1,\n overflow: \"hidden\",\n backgroundSize: \"cover\",\n animation: `${pan} ${DURATION_IN_SECONDS}s cubic-bezier(0.445, 0.050, 0.550, 0.950) infinite both;`\n})\n\nconst overlay = css({\n width: \"100vw\",\n height: \"100vh\",\n overflow: \"hidden\",\n position: \"absolute\",\n backgroundColor: \"white\",\n animation: `${crossfade} ${DURATION_IN_SECONDS}s cubic-bezier(0.250, 0.460, 0.450, 0.940) infinite alternate both`\n})\n\nconst positioning = css({ position: \"fixed\", zIndex: -1 })\n","import React from \"react\"\nimport { css, keyframes } from \"@emotion/core\"\nimport { Helmet } from \"react-helmet\"\nimport Menu from \"./menu\"\n\nimport Background from \"./background\"\n\nexport default class Layout extends React.PureComponent {\n render() {\n const { title, children } = this.props\n return (\n <div css={layout}>\n <Helmet>\n <meta charSet=\"utf-8\" />\n <title>{title} | AaronDeRuvo.com </title>\n <style type=\"text/css\">{`body {margin: 0;}`}</style>\n </Helmet>\n <Menu />\n {children}\n <div\n css={{\n display: \"flex\",\n flexDirection: \"row\",\n justifyContent: \"center\"\n }}\n >\n <small>\n <a css={hover} href=\"\">\n @aaronmgdr\n </a>\n </small>\n </div>\n <Background />\n </div>\n )\n }\n}\n\nconst layout = css({\n display: \"flex\",\n flexDirection: \"column\",\n justifyContent: \"space-between\",\n height: \"100vh\",\n width: \"100vw\",\n margin: 0,\n\n \"@media (min-device-width : 768px)\": {\n display: \"grid\",\n alignItems: \"start\",\n justifyItems: \"center\",\n justifyContent: \"center\"\n }\n})\n\nconst hoverKeyFrames = keyframes` \n from {\n -webkit-transform: scale(1);\n transform: scale(1);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n -webkit-animation-timing-function: ease-out;\n animation-timing-function: ease-out;\n }\n 10% {\n -webkit-transform: scale(0.91);\n transform: scale(0.91);\n -webkit-animation-timing-function: ease-in;\n animation-timing-function: ease-in;\n }\n 17% {\n -webkit-transform: scale(0.98);\n transform: scale(0.98);\n -webkit-animation-timing-function: ease-out;\n animation-timing-function: ease-out;\n }\n 33% {\n -webkit-transform: scale(0.87);\n transform: scale(0.87);\n -webkit-animation-timing-function: ease-in;\n animation-timing-function: ease-in;\n }\n 45% {\n -webkit-transform: scale(1);\n transform: scale(1);\n -webkit-animation-timing-function: ease-out;\n animation-timing-function: ease-out;\n }\n`\n\nconst hover = css({\n \"&:hover\": {\n animation: `${hoverKeyFrames} 1s ease-in-out infinite both`\n }\n})\n","import React from \"react\"\nimport PropTypes from \"prop-types\"\n\nimport InternalPageRenderer from \"./page-renderer\"\nimport loader from \"./loader\"\n\nconst ProdPageRenderer = ({ location }) => {\n const pageResources = loader.getResourcesForPathnameSync(location.pathname)\n return React.createElement(InternalPageRenderer, {\n location,\n pageResources,\n ...pageResources.json,\n })\n}\n\nProdPageRenderer.propTypes = {\n location: PropTypes.shape({\n pathname: PropTypes.string.isRequired,\n }).isRequired,\n}\n\nexport default ProdPageRenderer\n"],"sourceRoot":""}