-
Notifications
You must be signed in to change notification settings - Fork 0
/
3c89f18b6e1d458dbc89d3a9fdb8524f712158b8-8ab0831f9410dee0e6d6.js
2 lines (2 loc) · 13.5 KB
/
3c89f18b6e1d458dbc89d3a9fdb8524f712158b8-8ab0831f9410dee0e6d6.js
1
2
(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{"9eSz":function(e,t,a){"use strict";var r=a("TqRt");t.__esModule=!0,t.default=void 0;var i,n=r(a("PJYZ")),o=r(a("VbXa")),l=r(a("8OQS")),d=r(a("pVnL")),s=r(a("q1tI")),c=r(a("17x9")),u=function(e){var t=(0,d.default)({},e),a=t.resolutions,r=t.sizes,i=t.critical;return a&&(t.fixed=a,delete t.resolutions),r&&(t.fluid=r,delete t.sizes),i&&(t.loading="eager"),t.fluid&&(t.fluid=w([].concat(t.fluid))),t.fixed&&(t.fixed=w([].concat(t.fixed))),t},f=function(e){var t=e.media;return!!t&&(y&&!!window.matchMedia(t).matches)},p=function(e){var t=e.fluid,a=e.fixed;return m(t||a).src},m=function(e){if(y&&function(e){return!!e&&Array.isArray(e)&&e.some((function(e){return void 0!==e.media}))}(e)){var t=e.findIndex(f);if(-1!==t)return e[t];var a=e.findIndex((function(e){return void 0===e.media}));if(-1!==a)return e[a]}return e[0]},g=Object.create({}),h=function(e){var t=u(e),a=p(t);return g[a]||!1},b="undefined"!=typeof HTMLImageElement&&"loading"in HTMLImageElement.prototype,y="undefined"!=typeof window,S=y&&window.IntersectionObserver,v=new WeakMap;function E(e){return e.map((function(e){var t=e.src,a=e.srcSet,r=e.srcSetWebp,i=e.media,n=e.sizes;return s.default.createElement(s.default.Fragment,{key:t},r&&s.default.createElement("source",{type:"image/webp",media:i,srcSet:r,sizes:n}),s.default.createElement("source",{media:i,srcSet:a,sizes:n}))}))}function w(e){var t=[],a=[];return e.forEach((function(e){return(e.media?t:a).push(e)})),[].concat(t,a)}function x(e){return e.map((function(e){var t=e.src,a=e.media,r=e.tracedSVG;return s.default.createElement("source",{key:t,media:a,srcSet:r})}))}function L(e){return e.map((function(e){var t=e.src,a=e.media,r=e.base64;return s.default.createElement("source",{key:t,media:a,srcSet:r})}))}function I(e,t){var a=e.srcSet,r=e.srcSetWebp,i=e.media,n=e.sizes;return"<source "+(t?"type='image/webp' ":"")+(i?'media="'+i+'" ':"")+'srcset="'+(t?r:a)+'" '+(n?'sizes="'+n+'" ':"")+"/>"}var R=function(e,t){var a=(void 0===i&&"undefined"!=typeof window&&window.IntersectionObserver&&(i=new window.IntersectionObserver((function(e){e.forEach((function(e){if(v.has(e.target)){var t=v.get(e.target);(e.isIntersecting||e.intersectionRatio>0)&&(i.unobserve(e.target),v.delete(e.target),t())}}))}),{rootMargin:"200px"})),i);return a&&(a.observe(e),v.set(e,t)),function(){a.unobserve(e),v.delete(e)}},C=function(e){var t=e.src?'src="'+e.src+'" ':'src="" ',a=e.sizes?'sizes="'+e.sizes+'" ':"",r=e.srcSet?'srcset="'+e.srcSet+'" ':"",i=e.title?'title="'+e.title+'" ':"",n=e.alt?'alt="'+e.alt+'" ':'alt="" ',o=e.width?'width="'+e.width+'" ':"",l=e.height?'height="'+e.height+'" ':"",d=e.crossOrigin?'crossorigin="'+e.crossOrigin+'" ':"",s=e.loading?'loading="'+e.loading+'" ':"",c=e.draggable?'draggable="'+e.draggable+'" ':"";return"<picture>"+e.imageVariants.map((function(e){return(e.srcSetWebp?I(e,!0):"")+I(e)})).join("")+"<img "+s+o+l+a+r+t+n+i+d+c+'style="position:absolute;top:0;left:0;opacity:1;width:100%;height:100%;object-fit:cover;object-position:center"/></picture>'},O=s.default.forwardRef((function(e,t){var a=e.src,r=e.imageVariants,i=e.generateSources,n=e.spreadProps,o=e.ariaHidden,l=s.default.createElement(_,(0,d.default)({ref:t,src:a},n,{ariaHidden:o}));return r.length>1?s.default.createElement("picture",null,i(r),l):l})),_=s.default.forwardRef((function(e,t){var a=e.sizes,r=e.srcSet,i=e.src,n=e.style,o=e.onLoad,c=e.onError,u=e.loading,f=e.draggable,p=e.ariaHidden,m=(0,l.default)(e,["sizes","srcSet","src","style","onLoad","onError","loading","draggable","ariaHidden"]);return s.default.createElement("img",(0,d.default)({"aria-hidden":p,sizes:a,srcSet:r,src:i},m,{onLoad:o,onError:c,ref:t,loading:u,draggable:f,style:(0,d.default)({position:"absolute",top:0,left:0,width:"100%",height:"100%",objectFit:"cover",objectPosition:"center"},n)}))}));_.propTypes={style:c.default.object,onError:c.default.func,onLoad:c.default.func};var k=function(e){function t(t){var a;(a=e.call(this,t)||this).seenBefore=y&&h(t),a.isCritical="eager"===t.loading||t.critical,a.addNoScript=!(a.isCritical&&!t.fadeIn),a.useIOSupport=!b&&S&&!a.isCritical&&!a.seenBefore;var r=a.isCritical||y&&(b||!a.useIOSupport);return a.state={isVisible:r,imgLoaded:!1,imgCached:!1,fadeIn:!a.seenBefore&&t.fadeIn},a.imageRef=s.default.createRef(),a.placeholderRef=t.placeholderRef||s.default.createRef(),a.handleImageLoaded=a.handleImageLoaded.bind((0,n.default)(a)),a.handleRef=a.handleRef.bind((0,n.default)(a)),a}(0,o.default)(t,e);var a=t.prototype;return a.componentDidMount=function(){if(this.state.isVisible&&"function"==typeof this.props.onStartLoad&&this.props.onStartLoad({wasCached:h(this.props)}),this.isCritical){var e=this.imageRef.current;e&&e.complete&&this.handleImageLoaded()}},a.componentWillUnmount=function(){this.cleanUpListeners&&this.cleanUpListeners()},a.handleRef=function(e){var t=this;this.useIOSupport&&e&&(this.cleanUpListeners=R(e,(function(){var e=h(t.props);t.state.isVisible||"function"!=typeof t.props.onStartLoad||t.props.onStartLoad({wasCached:e}),t.setState({isVisible:!0},(function(){t.setState({imgLoaded:e,imgCached:!(!t.imageRef.current||!t.imageRef.current.currentSrc)})}))})))},a.handleImageLoaded=function(){var e,t,a;e=this.props,t=u(e),a=p(t),g[a]=!0,this.setState({imgLoaded:!0}),this.props.onLoad&&this.props.onLoad()},a.render=function(){var e=u(this.props),t=e.title,a=e.alt,r=e.className,i=e.style,n=void 0===i?{}:i,o=e.imgStyle,l=void 0===o?{}:o,c=e.placeholderStyle,f=void 0===c?{}:c,p=e.placeholderClassName,g=e.fluid,h=e.fixed,b=e.backgroundColor,y=e.durationFadeIn,S=e.Tag,v=e.itemProp,w=e.loading,I=e.draggable,R=!1===this.state.fadeIn||this.state.imgLoaded,k=!0===this.state.fadeIn&&!this.state.imgCached,z=(0,d.default)({opacity:R?1:0,transition:k?"opacity "+y+"ms":"none"},l),V="boolean"==typeof b?"lightgray":b,N={transitionDelay:y+"ms"},T=(0,d.default)({opacity:this.state.imgLoaded?0:1},k&&N,l,f),H={title:t,alt:this.state.isVisible?"":a,style:T,className:p,itemProp:v};if(g){var M=g,j=m(g);return s.default.createElement(S,{className:(r||"")+" gatsby-image-wrapper",style:(0,d.default)({position:"relative",overflow:"hidden",maxWidth:j.maxWidth?j.maxWidth+"px":null,maxHeight:j.maxHeight?j.maxHeight+"px":null},n),ref:this.handleRef,key:"fluid-"+JSON.stringify(j.srcSet)},s.default.createElement(S,{"aria-hidden":!0,style:{width:"100%",paddingBottom:100/j.aspectRatio+"%"}}),V&&s.default.createElement(S,{"aria-hidden":!0,title:t,style:(0,d.default)({backgroundColor:V,position:"absolute",top:0,bottom:0,opacity:this.state.imgLoaded?0:1,right:0,left:0},k&&N)}),j.base64&&s.default.createElement(O,{ariaHidden:!0,ref:this.placeholderRef,src:j.base64,spreadProps:H,imageVariants:M,generateSources:L}),j.tracedSVG&&s.default.createElement(O,{ariaHidden:!0,ref:this.placeholderRef,src:j.tracedSVG,spreadProps:H,imageVariants:M,generateSources:x}),this.state.isVisible&&s.default.createElement("picture",null,E(M),s.default.createElement(_,{alt:a,title:t,sizes:j.sizes,src:j.src,crossOrigin:this.props.crossOrigin,srcSet:j.srcSet,style:z,ref:this.imageRef,onLoad:this.handleImageLoaded,onError:this.props.onError,itemProp:v,loading:w,draggable:I})),this.addNoScript&&s.default.createElement("noscript",{dangerouslySetInnerHTML:{__html:C((0,d.default)({alt:a,title:t,loading:w},j,{imageVariants:M}))}}))}if(h){var W=h,q=m(h),F=(0,d.default)({position:"relative",overflow:"hidden",display:"inline-block",width:q.width,height:q.height},n);return"inherit"===n.display&&delete F.display,s.default.createElement(S,{className:(r||"")+" gatsby-image-wrapper",style:F,ref:this.handleRef,key:"fixed-"+JSON.stringify(q.srcSet)},V&&s.default.createElement(S,{"aria-hidden":!0,title:t,style:(0,d.default)({backgroundColor:V,width:q.width,opacity:this.state.imgLoaded?0:1,height:q.height},k&&N)}),q.base64&&s.default.createElement(O,{ariaHidden:!0,ref:this.placeholderRef,src:q.base64,spreadProps:H,imageVariants:W,generateSources:L}),q.tracedSVG&&s.default.createElement(O,{ariaHidden:!0,ref:this.placeholderRef,src:q.tracedSVG,spreadProps:H,imageVariants:W,generateSources:x}),this.state.isVisible&&s.default.createElement("picture",null,E(W),s.default.createElement(_,{alt:a,title:t,width:q.width,height:q.height,sizes:q.sizes,src:q.src,crossOrigin:this.props.crossOrigin,srcSet:q.srcSet,style:z,ref:this.imageRef,onLoad:this.handleImageLoaded,onError:this.props.onError,itemProp:v,loading:w,draggable:I})),this.addNoScript&&s.default.createElement("noscript",{dangerouslySetInnerHTML:{__html:C((0,d.default)({alt:a,title:t,loading:w},q,{imageVariants:W}))}}))}return null},t}(s.default.Component);k.defaultProps={fadeIn:!0,durationFadeIn:500,alt:"",Tag:"div",loading:"lazy"};var z=c.default.shape({width:c.default.number.isRequired,height:c.default.number.isRequired,src:c.default.string.isRequired,srcSet:c.default.string.isRequired,base64:c.default.string,tracedSVG:c.default.string,srcWebp:c.default.string,srcSetWebp:c.default.string,media:c.default.string}),V=c.default.shape({aspectRatio:c.default.number.isRequired,src:c.default.string.isRequired,srcSet:c.default.string.isRequired,sizes:c.default.string.isRequired,base64:c.default.string,tracedSVG:c.default.string,srcWebp:c.default.string,srcSetWebp:c.default.string,media:c.default.string,maxWidth:c.default.number,maxHeight:c.default.number});k.propTypes={resolutions:z,sizes:V,fixed:c.default.oneOfType([z,c.default.arrayOf(z)]),fluid:c.default.oneOfType([V,c.default.arrayOf(V)]),fadeIn:c.default.bool,durationFadeIn:c.default.number,title:c.default.string,alt:c.default.string,className:c.default.oneOfType([c.default.string,c.default.object]),critical:c.default.bool,crossOrigin:c.default.oneOfType([c.default.string,c.default.bool]),style:c.default.object,imgStyle:c.default.object,placeholderStyle:c.default.object,placeholderClassName:c.default.string,backgroundColor:c.default.oneOfType([c.default.string,c.default.bool]),onLoad:c.default.func,onError:c.default.func,onStartLoad:c.default.func,Tag:c.default.string,itemProp:c.default.string,loading:c.default.oneOf(["auto","lazy","eager"]),draggable:c.default.bool};var N=k;t.default=N},Zttt:function(e,t,a){"use strict";a.d(t,"a",(function(){return I}));var r=a("q1tI"),i=a.n(r),n=a("TJpk"),o=a.n(n),l=a("Wbzz"),d=a("vOnD"),s=a("WlUB"),c=d.b.div.withConfig({displayName:"Layoutstyled__Grid",componentId:"sc-1fsegen-0"})(["min-height:100vh;background:",";color:",';display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto 1fr auto;grid-template-areas:"header header" "navbar main" "footer footer";@media (max-width:700px){display:flex;flex-direction:column;}'],(function(e){return e.theme.colors.secondary}),(function(e){return e.theme.colors.primary})),u=a("wEEd"),f=Object(d.b)(u.a.main).withConfig({displayName:"Mainstyled__StyledMain",componentId:"sc-1d7728l-0"})(["grid-area:main;padding:20px 50px 20px 50px;@media (max-width:700px){padding:20px;}"]),p=function(e){var t=e.children,a=Object(u.b)({from:{opacity:0},to:{opacity:1}});return i.a.createElement(f,{style:a},t)},m=d.b.div.withConfig({displayName:"Logostyled__StyledLogo",componentId:"sc-1gk9drm-0"})([""]),g=d.b.div.withConfig({displayName:"Logostyled__TitleText",componentId:"sc-1gk9drm-1"})(["font-family:",";font-size:2.5rem;text-align:center;"],(function(e){return e.theme.fonts.title})),h=d.b.div.withConfig({displayName:"Logostyled__SubTitleText",componentId:"sc-1gk9drm-2"})(["font-size:0.875rem;text-align:center;"]),b=function(){return i.a.createElement(m,null,i.a.createElement(g,null,"Filipe Estácio"),i.a.createElement(h,null,"A Civil Engineer gone Digital"))},y=d.b.header.withConfig({displayName:"Headerstyled__StyledHeader",componentId:"sc-4dblpa-0"})(["grid-area:header;padding:20px;"]),S=function(){return i.a.createElement(y,null,i.a.createElement(b,null))},v=a("p1nq"),E=d.b.footer.withConfig({displayName:"Footerstyled__StyledFooter",componentId:"sr2yh2-0"})(["grid-area:footer;display:flex;flex-direction:row;justify-content:flex-end;padding:20px;"]),w=d.b.div.withConfig({displayName:"Footerstyled__SocialMediaList",componentId:"sr2yh2-1"})(["display:flex;flex-direction:row;justify-content:space-between;"]),x=d.b.a.withConfig({displayName:"Footerstyled__SocialMediaLink",componentId:"sr2yh2-2"})(["display:flex;align-items:center;margin-left:5px;margin-right:5px;text-decoration:none;color:",";padding:5px 10px;border:1px solid ",";border-radius:10px;&:hover{background:",";color:",";}"],(function(e){return e.theme.colors.primary}),(function(e){return e.theme.colors.primary}),(function(e){return e.theme.colors.primary}),(function(e){return e.theme.colors.secondary})),L=function(){return i.a.createElement(E,null,i.a.createElement(w,null,i.a.createElement(x,{href:"https://github.com/filipeestacio",target:"_blank",rel:"noopener noreferrer"},"Github"),i.a.createElement(x,{href:"https://twitter.com/FilipeEstacio",target:"_blank",rel:"noopener noreferrer"},"Twitter"),i.a.createElement(x,{href:"https://www.linkedin.com/in/filipe-est%C3%A1cio-1b7bbb20/",target:"_blank",rel:"noopener noreferrer"},"LinkedIn")))},I=function(e){var t=e.children;return i.a.createElement(l.b,{query:"3159585216",render:function(e){return i.a.createElement(i.a.Fragment,null,i.a.createElement(o.a,{title:e.site.siteMetadata.title},i.a.createElement("html",{lang:"en"}),i.a.createElement("meta",{charSet:"utf-8"}),i.a.createElement("title",null,e.site.siteMetadata.title),i.a.createElement("link",{rel:"canonical",href:"https://filipeestacio.github.io/"})),i.a.createElement(d.a,{theme:s.a},i.a.createElement(c,null,i.a.createElement(S,null,e.site.siteMetadata.title),i.a.createElement(v.a,{direction:"column"},"Navbar"),i.a.createElement(p,null,t),i.a.createElement(L,null,"Footer"))))}})}}}]);
//# sourceMappingURL=3c89f18b6e1d458dbc89d3a9fdb8524f712158b8-8ab0831f9410dee0e6d6.js.map