-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomponent---src-pages-blog-js-51c241598467860ef8e0.js
2 lines (2 loc) · 5.51 KB
/
component---src-pages-blog-js-51c241598467860ef8e0.js
1
2
(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{"10Zl":function(t,e,o){t.exports={header:"header-module--header--2Q3RK",navigatorWrapper:"header-module--navigator-wrapper--2prub"}},"4ROF":function(t,e,o){t.exports={patchwork:"patchwork-module--patchwork--1bOJo"}},"8XLj":function(t,e,o){t.exports={wideblock:"wideblock-module--wideblock--2IQkC",wideblockLink:"wideblock-module--wideblock-link--1F-tl"}},HgBI:function(t,e,o){t.exports={navigator:"navigator-module--navigator--26f47"}},TkuX:function(t,e,o){"use strict";o.d(e,"a",(function(){return w}));var n=o("q1tI"),r=o.n(n),a=(o("a1Th"),o("Btvt"),o("Wbzz")),c=o("vrJE"),l=o.n(c);var i=function(t){var e,o;function n(e){var o;return(o=t.call(this,e)||this).handleScroll=o.handleScroll.bind(function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(o)),o}o=t,(e=n).prototype=Object.create(o.prototype),e.prototype.constructor=e,e.__proto__=o;var c=n.prototype;return c.componentDidMount=function(){window.addEventListener("scroll",this.props.scrollAction),console.log("listening mounted")},c.componentWillUnmount=function(){window.removeEventListener("scroll",this.props.scrollAction),console.log("listening unmounted")},c.handleScroll=function(){this.props.scrollAction()},c.render=function(){return r.a.createElement(a.Link,{to:this.props.to,className:l.a.blockLink},r.a.createElement("div",{className:l.a.block,style:{backgroundColor:this.props.color,paddingTop:this.props.paddingTop}},this.props.children))},n}(r.a.Component),p=o("8XLj"),s=o.n(p);var u=function(t){var e,o;function n(){return t.apply(this,arguments)||this}return o=t,(e=n).prototype=Object.create(o.prototype),e.prototype.constructor=e,e.__proto__=o,n.prototype.render=function(){return r.a.createElement(a.Link,{to:this.props.to,className:s.a.wideblockLink},r.a.createElement("div",{className:s.a.wideblock,style:{backgroundColor:this.props.color,paddingTop:this.props.paddingTop}},this.props.children))},n}(r.a.Component),d=o("cqnt"),m=o("HgBI"),h=o.n(m);var f=function(t){var e,o;function n(e){var o;return(o=t.call(this,e)||this).collapseWithScroll=o.collapseWithScroll.bind(function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(o)),o.state={paddingTop:"7.5rem"},o}o=t,(e=n).prototype=Object.create(o.prototype),e.prototype.constructor=e,e.__proto__=o;var a=n.prototype;return a.collapseWithScroll=function(){var t=parseFloat(window.getComputedStyle(document.body).getPropertyValue("font-size")),e=(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0)/t;e<=6.5?this.setState({paddingTop:(7.5-e).toString()+"rem"}):e>6.5&&this.state.paddingTop.localeCompare("1rem")&&this.setState({paddingTop:"1rem"})},a.render=function(){var t=this.state.paddingTop;return r.a.createElement("nav",{className:h.a.navigator},r.a.createElement(u,{color:d.a.main,to:"/"},"patchwork"),r.a.createElement("ul",null,r.a.createElement("li",null,r.a.createElement(i,{color:d.a.c1,to:"/about/",scrollAction:this.collapseWithScroll,paddingTop:t},"about")),r.a.createElement("li",null,r.a.createElement(i,{color:d.a.c2,to:"/contact/",scrollAction:this.collapseWithScroll,paddingTop:t},"contact")),r.a.createElement("li",null,r.a.createElement(i,{color:d.a.c3,to:"/blog/",scrollAction:this.collapseWithScroll,paddingTop:t},"blog"))))},n}(r.a.Component),b=o("10Zl"),v=o.n(b);var y=function(t){var e,o;function n(){return t.apply(this,arguments)||this}return o=t,(e=n).prototype=Object.create(o.prototype),e.prototype.constructor=e,e.__proto__=o,n.prototype.render=function(){return r.a.createElement("header",{className:v.a.header},r.a.createElement("div",{className:v.a.navigatorWrapper},r.a.createElement(f,{page:this.props.page})))},n}(r.a.Component),g=o("4ROF"),k=o.n(g);var w=function(t){var e,o;function n(){return t.apply(this,arguments)||this}return o=t,(e=n).prototype=Object.create(o.prototype),e.prototype.constructor=e,e.__proto__=o,n.prototype.render=function(){return r.a.createElement("div",{className:k.a.patchwork},r.a.createElement(y,{siteTitle:"Patchwork",page:this.props.page}),this.props.children)},n}(r.a.Component)},X3x9:function(t,e,o){"use strict";o.d(e,"a",(function(){return l}));var n=o("q1tI"),r=o.n(n),a=o("olJS"),c=o.n(a);var l=function(t){var e,o;function n(){return t.apply(this,arguments)||this}return o=t,(e=n).prototype=Object.create(o.prototype),e.prototype.constructor=e,e.__proto__=o,n.prototype.render=function(){return r.a.createElement("main",{className:c.a.main},r.a.createElement("div",{className:c.a.content,style:{backgroundColor:this.props.color}},this.props.children))},n}(r.a.Component)},cqnt:function(t,e,o){"use strict";e.a={main:"#031926",c1:"#003D5B",c2:"#30638E",c3:"#00798C",accent:"#32344D"}},olJS:function(t,e,o){t.exports={main:"content-module--main--Sg_Ql",content:"content-module--content--3sEbK"}},vrJE:function(t,e,o){t.exports={block:"block-module--block--2A8l3",blockLink:"block-module--block-link--1V1Ua"}},vx99:function(t,e,o){"use strict";o.r(e);var n=o("q1tI"),r=o.n(n),a=o("cqnt"),c=o("TkuX"),l=o("X3x9");var i=function(t){var e,o;function n(){return t.apply(this,arguments)||this}return o=t,(e=n).prototype=Object.create(o.prototype),e.prototype.constructor=e,e.__proto__=o,n.prototype.render=function(){return r.a.createElement(c.a,null,r.a.createElement(l.a,{color:a.a.c3},r.a.createElement("h1",null,"Blog"),r.a.createElement("p",null,"Patchwork is a site created by Tyler Tokumoto.")))},n}(r.a.Component);e.default=i}}]);
//# sourceMappingURL=component---src-pages-blog-js-51c241598467860ef8e0.js.map