-
Notifications
You must be signed in to change notification settings - Fork 1
/
component---src-pages-index-tsx-1ec40a331335b5e28086.js
2 lines (2 loc) · 16 KB
/
component---src-pages-index-tsx-1ec40a331335b5e28086.js
1
2
(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{"0mN4":function(e,t,a){"use strict";a("OGtf")("fixed",(function(e){return function(){return e(this,"tt","","")}}))},"4mku":function(e){e.exports=JSON.parse('{"data":{"avatar":{"childImageSharp":{"fluid":{"base64":"data:image/jpeg;base64,/9j/2wBDABALDA4MChAODQ4SERATGCgaGBYWGDEjJR0oOjM9PDkzODdASFxOQERXRTc4UG1RV19iZ2hnPk1xeXBkeFxlZ2P/2wBDARESEhgVGC8aGi9jQjhCY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2P/wgARCAAUABQDASIAAhEBAxEB/8QAFwABAQEBAAAAAAAAAAAAAAAAAAQDAv/EABQBAQAAAAAAAAAAAAAAAAAAAAD/2gAMAwEAAhADEAAAAeZK8CpENognB//EABwQAAICAgMAAAAAAAAAAAAAAAEDABECBBMhMv/aAAgBAQABBQLjhR1sXebThMHC2bJYd4Uw+J//xAAUEQEAAAAAAAAAAAAAAAAAAAAg/9oACAEDAQE/AR//xAAUEQEAAAAAAAAAAAAAAAAAAAAg/9oACAECAQE/AR//xAAfEAACAQIHAAAAAAAAAAAAAAAAEQECMRASITJRYaH/2gAIAQEABj8CvI3qUO+WGbbno5gpjofOH//EAB0QAQADAAEFAAAAAAAAAAAAAAEAESEQQVFxgaH/2gAIAQEAAT8huDBMsnYSTfuQXV5MA1Gz0hM4hWSrrruho9VB4//aAAwDAQACAAMAAAAQQAc8/8QAFBEBAAAAAAAAAAAAAAAAAAAAIP/aAAgBAwEBPxAf/8QAFBEBAAAAAAAAAAAAAAAAAAAAIP/aAAgBAgEBPxAf/8QAHhABAAMBAAEFAAAAAAAAAAAAAQARITFBYZGhwfH/2gAIAQEAAT8QRmrnbLh67pXdnhK834lHELTurl9G8C1d3BWDaB12/r2gNevSOrfzBcLXV6rBEKBHofkcWf/Z","aspectRatio":1,"src":"/static/2ce98c44c7ed4eb36cd8bb9f65d7bf03/58d6d/avatar.jpg","srcSet":"/static/2ce98c44c7ed4eb36cd8bb9f65d7bf03/c6f75/avatar.jpg 75w,\\n/static/2ce98c44c7ed4eb36cd8bb9f65d7bf03/421ae/avatar.jpg 150w,\\n/static/2ce98c44c7ed4eb36cd8bb9f65d7bf03/58d6d/avatar.jpg 300w,\\n/static/2ce98c44c7ed4eb36cd8bb9f65d7bf03/3643e/avatar.jpg 450w,\\n/static/2ce98c44c7ed4eb36cd8bb9f65d7bf03/f5db2/avatar.jpg 600w,\\n/static/2ce98c44c7ed4eb36cd8bb9f65d7bf03/c73e5/avatar.jpg 640w","sizes":"(max-width: 300px) 100vw, 300px"}}}}}')},"9eSz":function(e,t,a){"use strict";a("rGqo"),a("yt8O"),a("Btvt"),a("XfO3"),a("EK0E"),a("0mN4");var r=a("5NKs");t.__esModule=!0,t.default=void 0;var i,s=r(a("v06X")),n=r(a("XEEL")),l=r(a("uDP2")),o=r(a("j8BX")),c=r(a("q1tI")),d=r(a("17x9")),u=function(e){var t=(0,o.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=x([].concat(t.fluid))),t.fixed&&(t.fixed=x([].concat(t.fixed))),t},f=function(e){var t=e.fluid,a=e.fixed;return(t&&t[0]||a&&a[0]).src},A=Object.create({}),m=function(e){var t=u(e),a=f(t);return A[a]||!1},g="undefined"!=typeof HTMLImageElement&&"loading"in HTMLImageElement.prototype,p="undefined"!=typeof window,b=p&&window.IntersectionObserver,h=new WeakMap;function E(e){return e.map((function(e){var t=e.src,a=e.srcSet,r=e.srcSetWebp,i=e.media,s=e.sizes;return c.default.createElement(c.default.Fragment,{key:t},r&&c.default.createElement("source",{type:"image/webp",media:i,srcSet:r,sizes:s}),c.default.createElement("source",{media:i,srcSet:a,sizes:s}))}))}function x(e){var t=[],a=[];return e.forEach((function(e){return(e.media?t:a).push(e)})),[].concat(t,a)}function v(e){return e.map((function(e){var t=e.src,a=e.media,r=e.tracedSVG;return c.default.createElement("source",{key:t,media:a,srcSet:r})}))}function w(e){return e.map((function(e){var t=e.src,a=e.media,r=e.base64;return c.default.createElement("source",{key:t,media:a,srcSet:r})}))}function j(e,t){var a=e.srcSet,r=e.srcSetWebp,i=e.media,s=e.sizes;return"<source "+(t?"type='image/webp' ":"")+(i?'media="'+i+'" ':"")+'srcset="'+(t?r:a)+'" '+(s?'sizes="'+s+'" ':"")+"/>"}var y=function(e,t){var a=(void 0===i&&"undefined"!=typeof window&&window.IntersectionObserver&&(i=new window.IntersectionObserver((function(e){e.forEach((function(e){if(h.has(e.target)){var t=h.get(e.target);(e.isIntersecting||e.intersectionRatio>0)&&(i.unobserve(e.target),h.delete(e.target),t())}}))}),{rootMargin:"200px"})),i);return a&&(a.observe(e),h.set(e,t)),function(){a.unobserve(e),h.delete(e)}},S=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+'" ':"",s=e.alt?'alt="'+e.alt+'" ':'alt="" ',n=e.width?'width="'+e.width+'" ':"",l=e.height?'height="'+e.height+'" ':"",o=e.crossOrigin?'crossorigin="'+e.crossOrigin+'" ':"",c=e.loading?'loading="'+e.loading+'" ':"",d=e.draggable?'draggable="'+e.draggable+'" ':"";return"<picture>"+e.imageVariants.map((function(e){return(e.srcSetWebp?j(e,!0):"")+j(e)})).join("")+"<img "+c+n+l+a+r+t+s+i+o+d+'style="position:absolute;top:0;left:0;opacity:1;width:100%;height:100%;object-fit:cover;object-position:center"/></picture>'},N=function(e){var t=e.src,a=e.imageVariants,r=e.generateSources,i=e.spreadProps,s=c.default.createElement(I,(0,o.default)({src:t},i));return a.length>1?c.default.createElement("picture",null,r(a),s):s},I=c.default.forwardRef((function(e,t){var a=e.sizes,r=e.srcSet,i=e.src,s=e.style,n=e.onLoad,d=e.onError,u=e.loading,f=e.draggable,A=(0,l.default)(e,["sizes","srcSet","src","style","onLoad","onError","loading","draggable"]);return c.default.createElement("img",(0,o.default)({sizes:a,srcSet:r,src:i},A,{onLoad:n,onError:d,ref:t,loading:u,draggable:f,style:(0,o.default)({position:"absolute",top:0,left:0,width:"100%",height:"100%",objectFit:"cover",objectPosition:"center"},s)}))}));I.propTypes={style:d.default.object,onError:d.default.func,onLoad:d.default.func};var B=function(e){function t(t){var a;(a=e.call(this,t)||this).seenBefore=p&&m(t),a.isCritical="eager"===t.loading||t.critical,a.addNoScript=!(a.isCritical&&!t.fadeIn),a.useIOSupport=!g&&b&&!a.isCritical&&!a.seenBefore;var r=a.isCritical||p&&(g||!a.useIOSupport);return a.state={isVisible:r,imgLoaded:!1,imgCached:!1,fadeIn:!a.seenBefore&&t.fadeIn},a.imageRef=c.default.createRef(),a.handleImageLoaded=a.handleImageLoaded.bind((0,s.default)(a)),a.handleRef=a.handleRef.bind((0,s.default)(a)),a}(0,n.default)(t,e);var a=t.prototype;return a.componentDidMount=function(){if(this.state.isVisible&&"function"==typeof this.props.onStartLoad&&this.props.onStartLoad({wasCached:m(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=y(e,(function(){var e=m(t.props);t.state.isVisible||"function"!=typeof t.props.onStartLoad||t.props.onStartLoad({wasCached:e}),t.setState({isVisible:!0},(function(){return t.setState({imgLoaded:e,imgCached:!!t.imageRef.current.currentSrc})}))})))},a.handleImageLoaded=function(){var e,t,a;e=this.props,t=u(e),a=f(t),A[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,s=void 0===i?{}:i,n=e.imgStyle,l=void 0===n?{}:n,d=e.placeholderStyle,f=void 0===d?{}:d,A=e.placeholderClassName,m=e.fluid,g=e.fixed,p=e.backgroundColor,b=e.durationFadeIn,h=e.Tag,x=e.itemProp,j=e.loading,y=e.draggable,B=!1===this.state.fadeIn||this.state.imgLoaded,L=!0===this.state.fadeIn&&!this.state.imgCached,k=(0,o.default)({opacity:B?1:0,transition:L?"opacity "+b+"ms":"none"},l),R="boolean"==typeof p?"lightgray":p,O={transitionDelay:b+"ms"},C=(0,o.default)({opacity:this.state.imgLoaded?0:1},L&&O,{},l,{},f),Q={title:t,alt:this.state.isVisible?"":a,style:C,className:A,itemProp:x};if(m){var z=m,V=z[0];return c.default.createElement(h,{className:(r||"")+" gatsby-image-wrapper",style:(0,o.default)({position:"relative",overflow:"hidden"},s),ref:this.handleRef,key:"fluid-"+JSON.stringify(V.srcSet)},c.default.createElement(h,{style:{width:"100%",paddingBottom:100/V.aspectRatio+"%"}}),R&&c.default.createElement(h,{title:t,style:(0,o.default)({backgroundColor:R,position:"absolute",top:0,bottom:0,opacity:this.state.imgLoaded?0:1,right:0,left:0},L&&O)}),V.base64&&c.default.createElement(N,{src:V.base64,spreadProps:Q,imageVariants:z,generateSources:w}),V.tracedSVG&&c.default.createElement(N,{src:V.tracedSVG,spreadProps:Q,imageVariants:z,generateSources:v}),this.state.isVisible&&c.default.createElement("picture",null,E(z),c.default.createElement(I,{alt:a,title:t,sizes:V.sizes,src:V.src,crossOrigin:this.props.crossOrigin,srcSet:V.srcSet,style:k,ref:this.imageRef,onLoad:this.handleImageLoaded,onError:this.props.onError,itemProp:x,loading:j,draggable:y})),this.addNoScript&&c.default.createElement("noscript",{dangerouslySetInnerHTML:{__html:S((0,o.default)({alt:a,title:t,loading:j},V,{imageVariants:z}))}}))}if(g){var T=g,M=T[0],P=(0,o.default)({position:"relative",overflow:"hidden",display:"inline-block",width:M.width,height:M.height},s);return"inherit"===s.display&&delete P.display,c.default.createElement(h,{className:(r||"")+" gatsby-image-wrapper",style:P,ref:this.handleRef,key:"fixed-"+JSON.stringify(M.srcSet)},R&&c.default.createElement(h,{title:t,style:(0,o.default)({backgroundColor:R,width:M.width,opacity:this.state.imgLoaded?0:1,height:M.height},L&&O)}),M.base64&&c.default.createElement(N,{src:M.base64,spreadProps:Q,imageVariants:T,generateSources:w}),M.tracedSVG&&c.default.createElement(N,{src:M.tracedSVG,spreadProps:Q,imageVariants:T,generateSources:v}),this.state.isVisible&&c.default.createElement("picture",null,E(T),c.default.createElement(I,{alt:a,title:t,width:M.width,height:M.height,sizes:M.sizes,src:M.src,crossOrigin:this.props.crossOrigin,srcSet:M.srcSet,style:k,ref:this.imageRef,onLoad:this.handleImageLoaded,onError:this.props.onError,itemProp:x,loading:j,draggable:y})),this.addNoScript&&c.default.createElement("noscript",{dangerouslySetInnerHTML:{__html:S((0,o.default)({alt:a,title:t,loading:j},M,{imageVariants:T}))}}))}return null},t}(c.default.Component);B.defaultProps={fadeIn:!0,durationFadeIn:500,alt:"",Tag:"div",loading:"lazy"};var L=d.default.shape({width:d.default.number.isRequired,height:d.default.number.isRequired,src:d.default.string.isRequired,srcSet:d.default.string.isRequired,base64:d.default.string,tracedSVG:d.default.string,srcWebp:d.default.string,srcSetWebp:d.default.string,media:d.default.string}),k=d.default.shape({aspectRatio:d.default.number.isRequired,src:d.default.string.isRequired,srcSet:d.default.string.isRequired,sizes:d.default.string.isRequired,base64:d.default.string,tracedSVG:d.default.string,srcWebp:d.default.string,srcSetWebp:d.default.string,media:d.default.string});B.propTypes={resolutions:L,sizes:k,fixed:d.default.oneOfType([L,d.default.arrayOf(L)]),fluid:d.default.oneOfType([k,d.default.arrayOf(k)]),fadeIn:d.default.bool,durationFadeIn:d.default.number,title:d.default.string,alt:d.default.string,className:d.default.oneOfType([d.default.string,d.default.object]),critical:d.default.bool,crossOrigin:d.default.oneOfType([d.default.string,d.default.bool]),style:d.default.object,imgStyle:d.default.object,placeholderStyle:d.default.object,placeholderClassName:d.default.string,backgroundColor:d.default.oneOfType([d.default.string,d.default.bool]),onLoad:d.default.func,onError:d.default.func,onStartLoad:d.default.func,Tag:d.default.string,itemProp:d.default.string,loading:d.default.oneOf(["auto","lazy","eager"]),draggable:d.default.bool};var R=B;t.default=R},QeBL:function(e,t,a){"use strict";a.r(t);var r=a("q1tI"),i=a.n(r),s=a("9kay"),n=a("soUV"),l=a("MX0m"),o=a.n(l),c=a("Wbzz"),d=a("4mku"),u=a("9eSz"),f=a.n(u),A=function(){var e=d.data;return i.a.createElement(f.a,{fluid:e.avatar.childImageSharp.fluid,className:"rounded avatar-image"})},m=a("nrjT");function g(){var e=Object(s.b)(),t=e.t;e.i18n;return i.a.createElement(m.a,null,i.a.createElement("h3",{className:"jsx-4100305870 flex items-center mt-4 mr-0 mb-6 heading text-indigo-400 whitespace-no-wrap text-2xl"},t("aboutMe")),i.a.createElement("div",{className:"jsx-4100305870 about flex flex-col md:flex-row content-between items-start"},i.a.createElement("div",{className:"jsx-4100305870 about-description md:w-3/5 w-full text-indigo-300 mb-20"},i.a.createElement("div",{className:"jsx-4100305870"},i.a.createElement("p",{className:"jsx-4100305870 mb-2"},'Hello!, I\'m Zorig. I am Coder, Film Photographer, Tinker, Reader. Interested in ["programming", "linux", "travel", "aikido", "coffee"].'),i.a.createElement("p",{className:"jsx-4100305870 mb-2"},"Also, i produce the Mongolian very first tech related"," ",i.a.createElement("a",{href:"https://anchor.fm/devnote",className:"jsx-4100305870 text-cyan text-strong underline"},"Dev Note Podcast")),i.a.createElement("p",{className:"jsx-4100305870"},"Ger more about me from ",i.a.createElement(c.Link,{to:"/about"},"here")),i.a.createElement("p",{className:"jsx-4100305870 mb-2"},"Here are a few technologies I've been working with")),i.a.createElement("ul",{className:"jsx-4100305870 p-0 mt-5"},i.a.createElement("li",{className:"jsx-4100305870 stack relative mb-4"},"Python"),i.a.createElement("li",{className:"jsx-4100305870 stack relative mb-4"},"Django"),i.a.createElement("li",{className:"jsx-4100305870 stack relative mb-4"},"JavaScript(ES6+)"),i.a.createElement("li",{className:"jsx-4100305870 stack relative mb-4"},"Reactjs"),i.a.createElement("li",{className:"jsx-4100305870 stack relative mb-4"},"Emberjs"))),i.a.createElement("div",{className:"jsx-4100305870 about-avatar flex justify-center w-full md:w-2/5"},i.a.createElement("div",{className:"jsx-4100305870 avatar mx-auto w-full"},i.a.createElement(A,null)))),i.a.createElement(o.a,{id:"4100305870"},[".avatar.jsx-4100305870:hover .avatar-image.jsx-4100305870,.avatar.jsx-4100305870:focus .avatar-image.jsx-4100305870{-webkit-filter:none;filter:none;mix-blend-mode:normal;}","a.jsx-4100305870{-webkit-transition:all 0.25s cubic-bezier(0.645,0.045,0.355,1) 0s;transition:all 0.25s cubic-bezier(0.645,0.045,0.355,1) 0s;}",".about.jsx-4100305870 ul.jsx-4100305870{display:grid;grid-template-columns:repeat(2,minmax(140px,200px));overflow:hidden;}",'li.stack.jsx-4100305870::before{content:"▹";margin-right:12px;}']))}var p=function(){var e=Object(s.b)().t;return i.a.createElement("a",{href:"mailto:[email protected]",className:"text-cyan bg-transparent border py-4 px-5 border-indigo-800 rounded-lg border-solid hover:border-cyan"},e("Get in Touch"))},b=function(){return i.a.createElement(m.a,null,i.a.createElement("h1",{className:"jsx-1374146479 greeting text-cyan text-xl lg:text-2xl mb-5"},"Hi, my name is"),i.a.createElement("h1",{className:"jsx-1374146479 name text-5xl lg:text-6xl font-black tracking-wider text-indigo-300"},"Zorig."),i.a.createElement("h1",{className:"jsx-1374146479 subtitle text-4xl lg:text-5xl text-indigo-400 tracking-wide mb-5"},"I build web"),i.a.createElement("div",{className:"jsx-1374146479 description w-full text-indigo-300 max-w-md mt-3"},i.a.createElement("p",{className:"jsx-1374146479 text-xl lg:text-xl"},"I'm a software engineer based in Ulaanbaatar, Mongolia specializing in building exceptional, high-quality websites and applications.")),i.a.createElement("div",{className:"jsx-1374146479 button-wrapper mt-10"},i.a.createElement(p,null)),i.a.createElement(o.a,{id:"1374146479"},[".name.jsx-1374146479{-webkit-transition-delay:100ms;transition-delay:100ms;line-height:1.1;}",".subtitle.jsx-1374146479{-webkit-transition-delay:300ms;transition-delay:300ms;}",".description.jsx-1374146479{-webkit-transition-delay:400ms;transition-delay:400ms;}",".button-wrapper.jsx-1374146479{-webkit-transition-delay:500ms;transition-delay:500ms;}"]))};function h(){var e=Object(s.b)().t;return i.a.createElement("section",{className:"flex flex-col items-center justify-center px-4 pb-20 sm:px-1 sm:py-20 mx-1 section"},i.a.createElement("div",{className:"flex flex-col content-center w-full lg:w-2/3 sm:w-full"},i.a.createElement("h3",{className:"flex items-center mt-4 mr-0 mb-6 heading text-indigo-400 whitespace-no-wrap text-2xl"},"What's Next"),i.a.createElement("div",{className:"flex flex-col md:flex-row content-between items-start"},i.a.createElement("div",{className:"w-full text-indigo-300 text-center"},i.a.createElement("h2",{className:"text-5xl font-bold"},e("Get in Touch")),i.a.createElement("p",{className:"my-10"},"Feel free to contact me, though i am not currently looking for freelance opportunities"),i.a.createElement("div",{className:"button-wrapper mt-20"},i.a.createElement(p,null))))))}t.default=Object(s.c)()((function(){return i.a.createElement(n.a,{title:"Нүүр"},i.a.createElement(b,null),i.a.createElement(g,null),i.a.createElement(h,null))}))}}]);
//# sourceMappingURL=component---src-pages-index-tsx-1ec40a331335b5e28086.js.map