-
Notifications
You must be signed in to change notification settings - Fork 0
/
1-b58d4c233573f4549a4d.js
2 lines (2 loc) · 6.38 KB
/
1-b58d4c233573f4549a4d.js
1
2
(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{145:function(t,e,n){"use strict";var r=n(8);n(0);e.a=function(t){var e=t.children;return Object(r.b)("span",{css:a},e)};var a={name:"1wp8nno",styles:"padding:10px;max-width:35em;"}},147:function(t,e,n){"use strict";n.r(e),n.d(e,"graphql",function(){return m}),n.d(e,"StaticQueryContext",function(){return f}),n.d(e,"StaticQuery",function(){return h});var r=n(8),a=n(0),o=n.n(a),i=n(4),c=n.n(i),s=n(144),u=n.n(s);n.d(e,"Link",function(){return u.a}),n.d(e,"withPrefix",function(){return s.withPrefix}),n.d(e,"navigate",function(){return s.navigate}),n.d(e,"push",function(){return s.push}),n.d(e,"replace",function(){return s.replace}),n.d(e,"navigateTo",function(){return s.navigateTo});var p=n(148),l=n.n(p);n.d(e,"PageRenderer",function(){return l.a});var d=n(50);n.d(e,"parsePath",function(){return d.a});var f=o.a.createContext({}),h=function(t){return Object(r.b)(f.Consumer,null,function(e){return t.data||e[t.query]&&e[t.query].data?(t.render||t.children)(t.data?t.data.data:e[t.query].data):Object(r.b)("div",null,"Loading (StaticQuery)")})};function m(){throw new Error("It appears like Gatsby is misconfigured. Gatsby related `graphql` calls are supposed to only be evaluated at compile time, and then compiled away,. Unfortunately, something went wrong and the query was left in the compiled code.\n\n.Unless your site has a complex or custom babel/Gatsby configuration this is likely a bug in Gatsby.")}h.propTypes={data:c.a.object,query:c.a.string.isRequired,render:c.a.func,children:c.a.func}},148:function(t,e,n){var r;t.exports=(r=n(159))&&r.default||r},149:function(t,e,n){"use strict";var r=n(26),a=n(7),o=n.n(a),i=n(8),c=n(0),s=n.n(c),u=n(150),p=n(147),l=function(){return Object(i.b)("nav",{css:d},Object(i.b)(p.Link,{to:"/"},Object(i.b)("span",{css:f},"home")," "),Object(i.b)(p.Link,{to:"/meta"},Object(i.b)("span",{css:f}," meta ")," "))},d={name:"xlau0o",styles:"display:flex;justify-content:space-between;background-color:#ffffff85;width:100vw;"},f={name:"1b0u7gm",styles:"height:1em;font-size:0.8em;padding:0.2em 1em;&:hover{color:white;}"},h=n(160),m=n.n(h),b=(n(77),function(t){var e=t.photographer;return Object(i.b)("a",{css:g,href:"https://unsplash.com/"+e+"?utm_medium=referral&utm_campaign=photographer-credit&utm_content=creditBadge",target:"_blank",rel:"noopener noreferrer",title:"Download free do whatever you want high-resolution photos from "+e},"Photo by ",e)}),g={name:"1d2y9ju",styles:"position:fixed;bottom:10px;right:20px;font-size:0.5rem;opacity:0.5;"};function y(){var t=m()(["\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"]);return y=function(){return t},t}function v(){var t=m()(["\n 0% {\n opacity: 1\n }\n\n 11% {\n opacity: 0\n }\n\n 87% {\n opacity: 0 \n }\n\n 100% {\n opacity: 1\n }\n"]);return v=function(){return t},t}var w=function(t){function e(e,n){var r,a,o;return(r=t.call(this,e,n)||this).setNextImage=function(){r.setState(function(t){var e=t.currentImage;return{currentImage:e+1<=r.props.images.length-1?e+1:0}})},r.state={currentImage:(a=0,o=e.images.length,Math.floor(Math.random()*(o-a)+a))},r}o()(e,t);var n=e.prototype;return n.componentWillMount=function(){"undefined"!=typeof window&&this.props.images.forEach(function(t){(new Image).src=t.src})},n.componentDidMount=function(){setInterval(this.setNextImage,14985)},n.currentImage=function(){return this.props.images[this.state.currentImage]},n.render=function(){return Object(i.b)("div",{css:I},Object(i.b)("div",{css:k}),Object(i.b)("div",{css:Object(r.a)([O,Object(i.a)({backgroundImage:"url("+this.currentImage().src+")"},"")],"")}),Object(i.b)(b,{photographer:this.currentImage().photographer}))},e}(s.a.PureComponent);w.defaultProps={images:[{src:"https://images.unsplash.com/photo-1482977036925-e8fcaa643657?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1234&q=80",photographer:"@anchorlee"},{src:"https://images.unsplash.com/photo-1484291470158-b8f8d608850d?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=2000&q=80",photographer:"@christoffere"},{src:"https://images.unsplash.com/photo-1523002010469-ea85cb48674b?ixlib=rb-1.2.1&auto=format&fit=crop&w=2000&q=80",photographer:"@alessandracaretto"},{src:"https://images.unsplash.com/photo-1526635229611-9a2482c8427b?ixlib=rb-1.2.1&auto=format&fit=crop&w=2000&q=80",photographer:"@rawpixel"}]};var j=Object(i.c)(v()),x=Object(i.c)(y()),O=Object(i.a)({width:"100vw",height:"100vh",position:"fixed",zIndex:-1,overflow:"hidden",backgroundSize:"cover",animation:x+" 15s cubic-bezier(0.445, 0.050, 0.550, 0.950) infinite both;"},""),k=Object(i.a)({width:"100vw",height:"100vh",overflow:"hidden",position:"absolute",backgroundColor:"white",animation:j+" 15s cubic-bezier(0.250, 0.460, 0.450, 0.940) infinite both"},""),I=Object(i.a)({position:"fixed",zIndex:-1},"");n.d(e,"a",function(){return P});var q={name:"1vp8jwk",styles:"display:flex;flex-direction:row;justify-content:center;"},P=function(t){function e(){return t.apply(this,arguments)||this}return o()(e,t),e.prototype.render=function(){var t=this.props,e=t.title,n=t.children;return Object(i.b)("div",{css:z},Object(i.b)(u.Helmet,null,Object(i.b)("meta",{charSet:"utf-8"}),Object(i.b)("title",null,e," | AaronDeRuvo.com "),Object(i.b)("style",{type:"text/css"},"body {margin: 0;}")),Object(i.b)(l,null),n,Object(i.b)("div",{css:q},Object(i.b)("small",null,Object(i.b)("a",{href:"https://medium.com/@aaronmgdr"},"@aaronmgdr"))),Object(i.b)(w,null))},e}(s.a.PureComponent),z={name:"1ws7r3e",styles:"display:flex;flex-direction:column;justify-content:space-between;height:100vh;width:100vw;margin:0;padding-bottom:40px;@media (min-device-width : 768px){display:grid;align-items:start;justify-items:center;justify-content:center;}"}},159:function(t,e,n){"use strict";n.r(e);n(56);var r=n(0),a=n.n(r),o=n(4),i=n.n(o),c=n(72),s=n(2),u=function(t){var e=t.location,n=s.default.getResourcesForPathnameSync(e.pathname);return a.a.createElement(c.a,Object.assign({location:e,pageResources:n},n.json))};u.propTypes={location:i.a.shape({pathname:i.a.string.isRequired}).isRequired},e.default=u}}]);
//# sourceMappingURL=1-b58d4c233573f4549a4d.js.map