-
Notifications
You must be signed in to change notification settings - Fork 0
/
1-bbe596e7511f165e24b5.js
2 lines (2 loc) · 6.92 KB
/
1-bbe596e7511f165e24b5.js
1
2
(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{145:function(t,n,e){"use strict";var a=e(8);e(0);n.a=function(t){var n=t.children;return Object(a.b)("span",{css:r},n)};var r={name:"1wp8nno",styles:"padding:10px;max-width:35em;"}},148:function(t,n,e){"use strict";e.r(n),e.d(n,"graphql",function(){return h}),e.d(n,"StaticQueryContext",function(){return p}),e.d(n,"StaticQuery",function(){return b});var a=e(8),r=e(0),i=e.n(r),o=e(4),s=e.n(o),c=e(144),u=e.n(c);e.d(n,"Link",function(){return u.a}),e.d(n,"withPrefix",function(){return c.withPrefix}),e.d(n,"navigate",function(){return c.navigate}),e.d(n,"push",function(){return c.push}),e.d(n,"replace",function(){return c.replace}),e.d(n,"navigateTo",function(){return c.navigateTo});var m=e(149),f=e.n(m);e.d(n,"PageRenderer",function(){return f.a});var l=e(50);e.d(n,"parsePath",function(){return l.a});var p=i.a.createContext({}),b=function(t){return Object(a.b)(p.Consumer,null,function(n){return t.data||n[t.query]&&n[t.query].data?(t.render||t.children)(t.data?t.data.data:n[t.query].data):Object(a.b)("div",null,"Loading (StaticQuery)")})};function h(){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.")}b.propTypes={data:s.a.object,query:s.a.string.isRequired,render:s.a.func,children:s.a.func}},149:function(t,n,e){var a;t.exports=(a=e(160))&&a.default||a},150:function(t,n,e){"use strict";var a=e(146),r=e.n(a),i=e(26),o=e(7),s=e.n(o),c=e(8),u=e(0),m=e.n(u),f=e(151),l=e(148),p=function(){return Object(c.b)("nav",{css:b},Object(c.b)(l.Link,{to:"/"},Object(c.b)("span",{css:h},"home")," "),Object(c.b)(l.Link,{to:"/meta"},Object(c.b)("span",{css:h}," meta ")," "))},b={name:"1k3mpz2",styles:"display:flex;justify-content:space-between;background-color:rgba(0,0,0, 0.05);width:100vw;"},h={name:"4m2e7a",styles:"height:1em;font-size:0.8em;padding:0.2em 1em;&:hover{background-color:rgba(0,0,0, 0.025);color:white;}"},d={name:"1ak299u",styles:"position:fixed;bottom:10px;right:20px;font-size:0.5rem;"},g=function(t){var n=t.photographer;return Object(c.b)("a",{css:d,href:"https://unsplash.com/"+n+"?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 "+n},"Photo by ",n)};function w(){var t=r()(["\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 w=function(){return t},t}var y=function(t){function n(){for(var n,e=arguments.length,a=new Array(e),r=0;r<e;r++)a[r]=arguments[r];return(n=t.call.apply(t,[this].concat(a))||this).state={currentImage:1},n.setNextImage=function(){var t,e;console.log("nextImage"),n.setState({currentImage:(t=0,e=n.props.images.length,Math.floor(Math.random()*(e-t)+t))})},n}s()(n,t);var e=n.prototype;return e.componentDidMount=function(){setInterval(this.setNextImage,15e3)},e.currentImage=function(){return this.props.images[this.state.currentImage]},e.render=function(){return Object(c.b)("div",{css:Object(i.a)([j,Object(c.a)({backgroundImage:"url("+this.currentImage().src+")"},"")],"")},Object(c.b)(g,{photographer:this.currentImage().photographer}))},n}(m.a.Component);y.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=2550&q=80",photographer:"@christoffere"},{src:"https://images.unsplash.com/photo-1523002010469-ea85cb48674b?ixlib=rb-1.2.1&auto=format&fit=crop&w=3900&q=80",photographer:"@alessandracaretto"},{src:"https://images.unsplash.com/photo-1526635229611-9a2482c8427b?ixlib=rb-1.2.1&auto=format&fit=crop&w=3000&q=80",photographer:"@rawpixel"}]};var v=Object(c.c)(w()),j=Object(c.a)({width:"100vw",height:"100vh",position:"fixed",zIndex:-1,backgroundSize:"cover",animation:v+" 15s cubic-bezier(0.470, 0.000, 0.745, 0.715) infinite both;"},"");function x(){var t=r()([" \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"]);return x=function(){return t},t}e.d(n,"a",function(){return O});var k={name:"1vp8jwk",styles:"display:flex;flex-direction:row;justify-content:center;"},O=function(t){function n(){return t.apply(this,arguments)||this}return s()(n,t),n.prototype.render=function(){var t=this.props,n=t.title,e=t.children;return Object(c.b)("div",{css:q},Object(c.b)(f.Helmet,null,Object(c.b)("meta",{charSet:"utf-8"}),Object(c.b)("title",null,n," | AaronDeRuvo.com "),Object(c.b)("style",{type:"text/css"},"body {margin: 0;}")),Object(c.b)(p,null),e,Object(c.b)("div",{css:k},Object(c.b)("small",null,Object(c.b)("a",{css:P,href:""},"@aaronmgdr"))),Object(c.b)(y,null))},n}(m.a.Component),q={name:"10b9fxk",styles:"display:flex;flex-direction:column;justify-content:space-between;height:100vh;width:100vw;margin:0;@media (min-device-width : 768px){display:grid;align-items:start;justify-items:center;justify-content:center;}"},I=Object(c.c)(x()),P=Object(c.a)({"&:hover":{animation:I+" 1s ease-in-out infinite both"}},"")},160:function(t,n,e){"use strict";e.r(n);e(56);var a=e(0),r=e.n(a),i=e(4),o=e.n(i),s=e(72),c=e(2),u=function(t){var n=t.location,e=c.default.getResourcesForPathnameSync(n.pathname);return r.a.createElement(s.a,Object.assign({location:n,pageResources:e},e.json))};u.propTypes={location:o.a.shape({pathname:o.a.string.isRequired}).isRequired},n.default=u}}]);
//# sourceMappingURL=1-bbe596e7511f165e24b5.js.map