-
Notifications
You must be signed in to change notification settings - Fork 0
/
component---src-pages-resources-js-83ccf163c0ade67e8ce5.js.map
1 lines (1 loc) · 12.1 KB
/
component---src-pages-resources-js-83ccf163c0ade67e8ce5.js.map
1
{"version":3,"sources":["webpack:///./src/pages/resources.js","webpack:///./.cache/public-page-renderer.js","webpack:///./.cache/gatsby-browser-entry.js","webpack:///./src/components/layout.js","webpack:///./.cache/public-page-renderer-prod.js","webpack:///./src/components/TextLink/TextLink.js"],"names":["Resource","styled","li","_templateObject","Description","p","_templateObject2","Section","h3","_templateObject3","__webpack_exports__","react__WEBPACK_IMPORTED_MODULE_1___default","a","createElement","_components_layout__WEBPACK_IMPORTED_MODULE_2__","siteName","href","withPrefix","className","_components_TextLink_TextLink__WEBPACK_IMPORTED_MODULE_3__","color","m","module","exports","require","default","__webpack_require__","r","d","graphql","StaticQueryContext","StaticQuery","react__WEBPACK_IMPORTED_MODULE_0__","react__WEBPACK_IMPORTED_MODULE_0___default","n","prop_types__WEBPACK_IMPORTED_MODULE_1__","prop_types__WEBPACK_IMPORTED_MODULE_1___default","gatsby_link__WEBPACK_IMPORTED_MODULE_2__","gatsby_link__WEBPACK_IMPORTED_MODULE_2___default","_public_page_renderer__WEBPACK_IMPORTED_MODULE_3__","_public_page_renderer__WEBPACK_IMPORTED_MODULE_3___default","_parse_path__WEBPACK_IMPORTED_MODULE_4__","React","createContext","props","Consumer","staticQueryData","data","query","render","children","Error","propTypes","PropTypes","object","string","isRequired","func","Site","div","Nav","Menu","MenuItem","Link","_templateObject4","Content","_templateObject5","Title","h1","_templateObject6","Footer","footer","_templateObject7","Layout","_ref","react_helmet__WEBPACK_IMPORTED_MODULE_5__","rel","src","alt","style","width","height","marginTop","marginBottom","to","activeClassName","node","ProdPageRenderer","location","pageResources","loader","getResourcesForPathnameSync","pathname","InternalPageRenderer","Object","assign","json","shape","A","bgColor","TextLink"],"mappings":"6gBAMA,IAAMA,EAAWC,IAAOC,GAAVC,KASRC,EAAcH,IAAOI,E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C,EAAAC,cAACqF,EAAD,CAAGlF,KAAM4B,EAAM5B,KAAMI,MAAOwB,EAAMxB,MAAO+E,QAASvD,EAAMuD,SACrDvD,EAAMM","file":"component---src-pages-resources-js-83ccf163c0ade67e8ce5.js","sourcesContent":["import React from 'react'\nimport Layout from '../components/layout'\nimport TextLink from '../components/TextLink/TextLink'\nimport { withPrefix } from 'gatsby'\nimport styled from 'styled-components'\n\nconst Resource = styled.li`\n font-size: 24px;\n color: #2fad1f;\n margin-top: 40px;\n & > a {\n color: #2fad1f;\n }\n`\n\nconst Description = styled.p`\n font-size: 0.9em;\n text-align: center;\n`\n\nconst Section = styled.h3`\n margin-bottom: 30px;\n`\n\nexport default () => (\n <Layout siteName=\"Resources\">\n <Section>Machine Learning</Section>\n <Resource>\n <a href={withPrefix('/files/apple.tar.gz')} className={'text-link'}>\n apple.tar.gz\n </a>\n </Resource>\n <Description>\n (W.I.P.) Dataset of apple images from{' '}\n <TextLink href=\"https://isthisapple.me\" color=\"#47ad23\">\n isthisapple.me\n </TextLink>\n </Description>\n <Resource>\n <a href={withPrefix('/files/rap.tar.gz')} className={'text-link'}>\n rap.tar.gz\n </a>\n </Resource>\n <Description>Dataset of rap songs</Description>\n <Resource>\n <a href={withPrefix('/files/cpp.tar.gz')} className={'text-link'}>\n cpp.tar.gz\n </a>\n </Resource>\n <Description>Dataset of .cpp files</Description>\n </Layout>\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 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","import React from 'react'\nimport PropTypes from 'prop-types'\nimport styled from 'styled-components'\nimport { withPrefix, Link } from 'gatsby'\nimport { Helmet } from 'react-helmet'\n\nimport './layout.css'\n\nconst Site = styled.div`\n display: flex;\n min-height: 100vh;\n font-size: 20px;\n flex-direction: column;\n`\n\nconst Nav = styled.div`\n padding: 10px;\n display: flex;\n flex-direction: column;\n align-items: center;\n overflow: hidden;\n`\n\nconst Menu = styled.div`\n display: flex;\n flex-direction: row;\n`\n\nconst MenuItem = styled(Link)`\n margin: 10px;\n color: #2fad1f;\n\n &:before {\n background-color: #2fad1f;\n }\n`\n\nconst Content = styled.div`\n margin: 5vmin;\n color: #47ad23;\n display: flex;\n align-items: center;\n flex-direction: column;\n flex: 1;\n`\n\nconst Title = styled.h1`\n font-size: 5rem;\n margin: 0;\n`\n\nconst Footer = styled.footer`\n margin-bottom: 25px;\n margin-top: 50px;\n display: flex;\n flex-direction: column;\n align-items: center;\n`\n\nconst Layout = ({ children, siteName }) => (\n <Site>\n <Helmet>\n <link\n href=\"https://fonts.googleapis.com/css?family=Advent+Pro\"\n rel=\"stylesheet\"\n />\n <title>PRDev{siteName ? ' - ' + siteName : ''}</title>\n </Helmet>\n <Nav>\n <img\n src={withPrefix('/PRDev-big.png')}\n alt=\"Logo\"\n style={{\n width: '100px',\n height: '100px',\n marginTop: '1vmin',\n marginBottom: '1vmin',\n }}\n />\n <Title>PRDev</Title>\n <Menu>\n <MenuItem to=\"/\" className={'link'} activeClassName={'active'}>\n Home\n </MenuItem>\n <MenuItem to=\"/projects/\" className={'link'} activeClassName={'active'}>\n Projects\n </MenuItem>\n <MenuItem\n to=\"/resources/\"\n className={'link'}\n activeClassName={'active'}\n >\n Resources\n </MenuItem>\n </Menu>\n </Nav>\n <Content>{children}</Content>\n <Footer>\n <a href=\"https://github.com/prd-ev/\">\n <img\n src={withPrefix('/gh.png')}\n alt=\"Logo\"\n style={{ width: '50px', height: '50px' }}\n />\n </a>\n </Footer>\n </Site>\n)\n\nLayout.propTypes = {\n children: PropTypes.node.isRequired,\n}\n\nexport default Layout\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","import React from 'react'\nimport styled from 'styled-components'\n\nconst A = styled.a`\n letter-spacing: 1px;\n color: ${props => props.color || 'black'};\n text-decoration: none;\n padding: 3px;\n padding-left: 5px;\n padding-right: 5px;\n margin-left: 2px;\n margin-right: 2px;\n background-image: linear-gradient(\n to bottom,\n ${props => props.color || 'black'} 50%,\n ${props => props.bgColor || 'white'} 50%\n );\n background-size: 100% 200%;\n background-position: 0 -95%;\n transition: color 0.5s, background-position 0.5s;\n\n &:hover {\n color: white;\n text-decoration: none;\n background-position: 0 0;\n }\n`\n\nconst TextLink = props => {\n return (\n <A href={props.href} color={props.color} bgColor={props.bgColor}>\n {props.children}\n </A>\n )\n}\n\nexport default TextLink\n"],"sourceRoot":""}