-
Notifications
You must be signed in to change notification settings - Fork 0
/
commons-792417fff79be3d3e991.js
2 lines (2 loc) · 16.9 KB
/
commons-792417fff79be3d3e991.js
1
2
"use strict";(self.webpackChunkgatsby_starter_hello_world=self.webpackChunkgatsby_starter_hello_world||[]).push([[351],{72:function(e){var t=function(e,t){if("string"!=typeof e&&!Array.isArray(e))throw new TypeError("Expected the input to be `string | string[]`");t=Object.assign({pascalCase:!1},t);var a;return e=Array.isArray(e)?e.map((function(e){return e.trim()})).filter((function(e){return e.length})).join("-"):e.trim(),0===e.length?"":1===e.length?t.pascalCase?e.toUpperCase():e.toLowerCase():(e!==e.toLowerCase()&&(e=function(e){for(var t=!1,a=!1,r=!1,n=0;n<e.length;n++){var i=e[n];t&&/[a-zA-Z]/.test(i)&&i.toUpperCase()===i?(e=e.slice(0,n)+"-"+e.slice(n),t=!1,r=a,a=!0,n++):a&&r&&/[a-zA-Z]/.test(i)&&i.toLowerCase()===i?(e=e.slice(0,n-1)+"-"+e.slice(n-1),r=a,a=!1,t=!0):(t=i.toLowerCase()===i&&i.toUpperCase()!==i,r=a,a=i.toUpperCase()===i&&i.toLowerCase()!==i)}return e}(e)),e=e.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,(function(e,t){return t.toUpperCase()})).replace(/\d+(\w|$)/g,(function(e){return e.toUpperCase()})),a=e,t.pascalCase?a.charAt(0).toUpperCase()+a.slice(1):a)};e.exports=t,e.exports.default=t},1046:function(e,t,a){a.d(t,{w_:function(){return c}});var r=a(7294),n={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},i=r.createContext&&r.createContext(n),l=function(){return l=Object.assign||function(e){for(var t,a=1,r=arguments.length;a<r;a++)for(var n in t=arguments[a])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},l.apply(this,arguments)},o=function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(r=Object.getOwnPropertySymbols(e);n<r.length;n++)t.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(a[r[n]]=e[r[n]])}return a};function s(e){return e&&e.map((function(e,t){return r.createElement(e.tag,l({key:t},e.attr),s(e.child))}))}function c(e){return function(t){return r.createElement(u,l({attr:l({},e.attr)},t),s(e.child))}}function u(e){var t=function(t){var a,n=e.attr,i=e.size,s=e.title,c=o(e,["attr","size","title"]),u=i||t.size||"1em";return t.className&&(a=t.className),e.className&&(a=(a?a+" ":"")+e.className),r.createElement("svg",l({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,n,c,{className:a,style:l(l({color:e.color||t.color},t.style),e.style),height:u,width:u,xmlns:"http://www.w3.org/2000/svg"}),s&&r.createElement("title",null,s),e.children)};return void 0!==i?r.createElement(i.Consumer,null,(function(e){return t(e)})):t(n)}},3723:function(e,t,a){a.d(t,{G:function(){return O},L:function(){return g},M:function(){return E},P:function(){return v},S:function(){return P},_:function(){return o},a:function(){return l},b:function(){return c},g:function(){return u},h:function(){return s}});var r=a(7294),n=(a(72),a(5697)),i=a.n(n);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},l.apply(this,arguments)}function o(e,t){if(null==e)return{};var a,r,n={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(a=i[r])>=0||(n[a]=e[a]);return n}var s=function(){return"undefined"!=typeof HTMLImageElement&&"loading"in HTMLImageElement.prototype};function c(e,t,a,r,n){return void 0===n&&(n={}),l({},a,{loading:r,shouldLoad:e,"data-main-image":"",style:l({},n,{opacity:t?1:0})})}function u(e,t,a,r,n,i,o,s){var c={};i&&(c.backgroundColor=i,"fixed"===a?(c.width=r,c.height=n,c.backgroundColor=i,c.position="relative"):("constrained"===a||"fullWidth"===a)&&(c.position="absolute",c.top=0,c.left=0,c.bottom=0,c.right=0)),o&&(c.objectFit=o),s&&(c.objectPosition=s);var u=l({},e,{"aria-hidden":!0,"data-placeholder-image":"",style:l({opacity:t?0:1,transition:"opacity 500ms linear"},c)});return u}var d,m=["children"],p=function(e){var t=e.layout,a=e.width,n=e.height;return"fullWidth"===t?r.createElement("div",{"aria-hidden":!0,style:{paddingTop:n/a*100+"%"}}):"constrained"===t?r.createElement("div",{style:{maxWidth:a,display:"block"}},r.createElement("img",{alt:"",role:"presentation","aria-hidden":"true",src:"data:image/svg+xml;charset=utf-8,%3Csvg height='"+n+"' width='"+a+"' xmlns='http://www.w3.org/2000/svg' version='1.1'%3E%3C/svg%3E",style:{maxWidth:"100%",display:"block",position:"static"}})):null},g=function(e){var t=e.children,a=o(e,m);return r.createElement(r.Fragment,null,r.createElement(p,l({},a)),t,null)},f=["src","srcSet","loading","alt","shouldLoad"],h=["fallback","sources","shouldLoad"],b=function(e){var t=e.src,a=e.srcSet,n=e.loading,i=e.alt,s=void 0===i?"":i,c=e.shouldLoad,u=o(e,f);return r.createElement("img",l({},u,{decoding:"async",loading:n,src:c?t:void 0,"data-src":c?void 0:t,srcSet:c?a:void 0,"data-srcset":c?void 0:a,alt:s}))},w=function(e){var t=e.fallback,a=e.sources,n=void 0===a?[]:a,i=e.shouldLoad,s=void 0===i||i,c=o(e,h),u=c.sizes||(null==t?void 0:t.sizes),d=r.createElement(b,l({},c,t,{sizes:u,shouldLoad:s}));return n.length?r.createElement("picture",null,n.map((function(e){var t=e.media,a=e.srcSet,n=e.type;return r.createElement("source",{key:t+"-"+n+"-"+a,type:n,media:t,srcSet:s?a:void 0,"data-srcset":s?void 0:a,sizes:u})})),d):d};b.propTypes={src:n.string.isRequired,alt:n.string.isRequired,sizes:n.string,srcSet:n.string,shouldLoad:n.bool},w.displayName="Picture",w.propTypes={alt:n.string.isRequired,shouldLoad:n.bool,fallback:n.exact({src:n.string.isRequired,srcSet:n.string,sizes:n.string}),sources:n.arrayOf(n.oneOfType([n.exact({media:n.string.isRequired,type:n.string,sizes:n.string,srcSet:n.string.isRequired}),n.exact({media:n.string,type:n.string.isRequired,sizes:n.string,srcSet:n.string.isRequired})]))};var y=["fallback"],v=function(e){var t=e.fallback,a=o(e,y);return t?r.createElement(w,l({},a,{fallback:{src:t},"aria-hidden":!0,alt:""})):r.createElement("div",l({},a))};v.displayName="Placeholder",v.propTypes={fallback:n.string,sources:null==(d=w.propTypes)?void 0:d.sources,alt:function(e,t,a){return e[t]?new Error("Invalid prop `"+t+"` supplied to `"+a+"`. Validation failed."):null}};var E=function(e){return r.createElement(r.Fragment,null,r.createElement(w,l({},e)),r.createElement("noscript",null,r.createElement(w,l({},e,{shouldLoad:!0}))))};E.displayName="MainImage",E.propTypes=w.propTypes;var k,_,x=function(e,t,a){for(var r=arguments.length,n=new Array(r>3?r-3:0),l=3;l<r;l++)n[l-3]=arguments[l];return e.alt||""===e.alt?i().string.apply(i(),[e,t,a].concat(n)):new Error('The "alt" prop is required in '+a+'. If the image is purely presentational then pass an empty string: e.g. alt="". Learn more: https://a11y-style-guide.com/style-guide/section-media.html')},L={image:i().object.isRequired,alt:x},C=["as","image","style","backgroundColor","className","class","onStartLoad","onLoad","onError"],S=["style","className"],N=new Set,T=function(e){var t=e.as,n=void 0===t?"div":t,i=e.image,c=e.style,u=e.backgroundColor,d=e.className,m=e.class,p=e.onStartLoad,g=e.onLoad,f=e.onError,h=o(e,C),b=i.width,w=i.height,y=i.layout,v=function(e,t,a){var r={},n="gatsby-image-wrapper";return"fixed"===a?(r.width=e,r.height=t):"constrained"===a&&(n="gatsby-image-wrapper gatsby-image-wrapper-constrained"),{className:n,"data-gatsby-image-wrapper":"",style:r}}(b,w,y),E=v.style,x=v.className,L=o(v,S),T=(0,r.useRef)(),O=(0,r.useMemo)((function(){return JSON.stringify(i.images)}),[i.images]);m&&(d=m);var H=function(e,t,a){var r="";return"fullWidth"===e&&(r='<div aria-hidden="true" style="padding-top: '+a/t*100+'%;"></div>'),"constrained"===e&&(r='<div style="max-width: '+t+'px; display: block;"><img alt="" role="presentation" aria-hidden="true" src="data:image/svg+xml;charset=utf-8,%3Csvg height=\''+a+"' width='"+t+"' xmlns='http://www.w3.org/2000/svg' version='1.1'%3E%3C/svg%3E\" style=\"max-width: 100%; display: block; position: static;\"></div>"),r}(y,b,w);return(0,r.useEffect)((function(){k||(k=Promise.all([a.e(774),a.e(223)]).then(a.bind(a,8223)).then((function(e){var t=e.renderImageToString,a=e.swapPlaceholderImage;return _=t,{renderImageToString:t,swapPlaceholderImage:a}})));var e,t,r=T.current.querySelector("[data-gatsby-image-ssr]");return r&&s()?(r.complete?(null==p||p({wasCached:!0}),null==g||g({wasCached:!0}),setTimeout((function(){r.removeAttribute("data-gatsby-image-ssr")}),0)):(null==p||p({wasCached:!0}),r.addEventListener("load",(function e(){r.removeEventListener("load",e),null==g||g({wasCached:!0}),setTimeout((function(){r.removeAttribute("data-gatsby-image-ssr")}),0)}))),void N.add(O)):_&&N.has(O)?void 0:(k.then((function(a){var r=a.renderImageToString,n=a.swapPlaceholderImage;T.current&&(T.current.innerHTML=r(l({isLoading:!0,isLoaded:N.has(O),image:i},h)),N.has(O)||(e=requestAnimationFrame((function(){T.current&&(t=n(T.current,O,N,c,p,g,f))}))))})),function(){e&&cancelAnimationFrame(e),t&&t()})}),[i]),(0,r.useLayoutEffect)((function(){N.has(O)&&_&&(T.current.innerHTML=_(l({isLoading:N.has(O),isLoaded:N.has(O),image:i},h)),null==p||p({wasCached:!0}),null==g||g({wasCached:!0}))}),[i]),(0,r.createElement)(n,l({},L,{style:l({},E,c,{backgroundColor:u}),className:x+(d?" "+d:""),ref:T,dangerouslySetInnerHTML:{__html:H},suppressHydrationWarning:!0}))},O=(0,r.memo)((function(e){return e.image?(0,r.createElement)(T,e):null}));O.propTypes=L,O.displayName="GatsbyImage";var H,I=["src","__imageData","__error","width","height","aspectRatio","tracedSVGOptions","placeholder","formats","quality","transformOptions","jpgOptions","pngOptions","webpOptions","avifOptions","blurredOptions","breakpoints","outputPixelDensities"],G=function(e,t){for(var a=arguments.length,r=new Array(a>2?a-2:0),n=2;n<a;n++)r[n-2]=arguments[n];return"fullWidth"!==e.layout||"width"!==t&&"height"!==t||!e[t]?i().number.apply(i(),[e,t].concat(r)):new Error('"'+t+'" '+e[t]+" may not be passed when layout is fullWidth.")},j=new Set(["fixed","fullWidth","constrained"]),z={src:i().string.isRequired,alt:x,width:G,height:G,sizes:i().string,layout:function(e){if(void 0!==e.layout&&!j.has(e.layout))return new Error("Invalid value "+e.layout+'" provided for prop "layout". Defaulting to "constrained". Valid values are "fixed", "fullWidth" or "constrained".')}},P=(H=O,function(e){var t=e.src,a=e.__imageData,n=e.__error,i=o(e,I);return n&&console.warn(n),a?r.createElement(H,l({image:a},i)):(console.warn("Image not loaded",t),null)});P.displayName="StaticImage",P.propTypes=z},7737:function(e,t,a){a.d(t,{Z:function(){return d}});var r=a(7294),n=a(1597);function i(){return r.createElement("div",{className:"footer-module--Background--l+dhd"},r.createElement("footer",{className:"footer-module--Footer---K+Td"},r.createElement("section",{className:"footer-module--Name--C3VaF"},r.createElement("h1",null,"Harry Dang"),r.createElement("p",null,"@harrydang9"),r.createElement(n.rU,{to:"/contact"},"Say hi!")),r.createElement("section",{className:"footer-module--Links--7lj81"},r.createElement("h1",null,"Links"),r.createElement("ul",null,r.createElement("li",null,r.createElement(n.rU,{to:"/"},"Home")),r.createElement("li",null,r.createElement(n.rU,{to:"/projects"},"Projects")),r.createElement("li",null,r.createElement(n.rU,{to:"/games"},"Games")),r.createElement("li",null,r.createElement(n.rU,{to:"/photos"},"Photos")),r.createElement("li",null,r.createElement(n.rU,{to:"/blogs"},"Blog")))),r.createElement("section",{className:"footer-module--Socials--rcOsN"},r.createElement("h1",null,"Social"),r.createElement("ul",null,r.createElement("li",null,r.createElement("a",{href:"https://www.instagram.com/harrydang9/",target:"_blank",rel:"noreferrer"},"Instagram")),r.createElement("li",null,r.createElement("a",{href:"https://twitter.com/HarryDang9",target:"_blank",rel:"noreferrer"},"Twitter")),r.createElement("li",null,r.createElement("a",{href:"https://www.linkedin.com/in/harry-dang-a3021621a/",target:"_blank",rel:"noreferrer"},"LinkedIn")),r.createElement("li",null,r.createElement("a",{href:"https://github.com/Harry-Dang",target:"_blank",rel:"noreferrer"},"Github")),r.createElement("li",null,r.createElement("a",{href:"https://www.behance.net/hadang9993375",target:"_blank",rel:"noreferrer"},"Behance"))))))}var l=a(3723),o="navbar-module--Logo--hKiCl",s="navbar-module--Social--9V7fe",c=a(1066);function u(e){var t=(0,r.useState)(!1),i=t[0],u=t[1];return r.createElement("nav",{className:"navbar-module--Navbar--kNEcG"},e.isHome?null:r.createElement("h1",null,r.createElement(n.rU,{to:"/"},"Harry Dang")),r.createElement("button",{className:"navbar-module--Menu--gpApc",onClick:function(){return u(!i)}},i?r.createElement(c.oHP,null):r.createElement(c.qTj,null)),r.createElement("ul",{className:i?"navbar-module--Show--ZsXHr":"navbar-module--Hidden--NuAyf"},r.createElement("li",null,r.createElement(n.rU,{to:"/projects"},"Projects")),r.createElement("li",null,r.createElement(n.rU,{to:"/games"},"Games")),r.createElement("li",null,r.createElement(n.rU,{to:"/photos"},"Photos")),r.createElement("li",null,r.createElement(n.rU,{to:"/blog"},"Blog")),r.createElement("li",{className:s},r.createElement("a",{href:"https://github.com/Harry-Dang",target:"_blank",rel:"noreferrer"},r.createElement(l.S,{src:"../images/Logos/GitHub-Mark-Light-120px-plus.png",className:o,__imageData:a(1096)}))),r.createElement("li",{className:s},r.createElement("a",{href:"https://twitter.com/HarryDang9",target:"_blank",rel:"noreferrer"},r.createElement(l.S,{src:"../images/Logos/2021 Twitter logo - white.png",className:o,__imageData:a(5289)}))),r.createElement("li",{className:s},r.createElement("a",{href:"https://www.instagram.com/harrydang9/",target:"_blank",rel:"noreferrer"},r.createElement(l.S,{src:"../images/Logos/Instagram_Glyph_White.png",className:o,__imageData:a(7375)})))))}function d(e){return r.createElement("div",null,r.createElement("div",{style:e.isHome?null:{background:"linear-gradient(197deg, rgba(46,48,70,1) 7%, rgba(53,54,74,1) 39%, rgba(63,63,81,1) 70%, rgba(118,111,117,1) 100%)"}},r.createElement(u,{isHome:e.isHome}),e.isHome||!e.title?null:r.createElement("div",{className:"Title"},e.title)),r.createElement("div",null,e.children),r.createElement(i,null))}},8461:function(e,t,a){a.d(t,{H:function(){return i}});var r=a(7294),n=a(1597);function i(e){var t=(0,n.K2)("1260291004").site.siteMetadata;return r.createElement(r.Fragment,null,r.createElement("title",null,e.title?e.title+" | "+t.title:t.title),r.createElement("meta",{name:"description",content:t.description}),r.createElement("meta",{name:"author",content:t.author}))}},7375:function(e){e.exports=JSON.parse('{"layout":"constrained","backgroundColor":"#f8f8f8","images":{"fallback":{"src":"/static/a7fb1f92dadb912f4b92045840c2d79f/900f1/Instagram_Glyph_White.png","srcSet":"/static/a7fb1f92dadb912f4b92045840c2d79f/34057/Instagram_Glyph_White.png 1081w,\\n/static/a7fb1f92dadb912f4b92045840c2d79f/6273f/Instagram_Glyph_White.png 2161w,\\n/static/a7fb1f92dadb912f4b92045840c2d79f/900f1/Instagram_Glyph_White.png 4322w","sizes":"(min-width: 4322px) 4322px, 100vw"},"sources":[{"srcSet":"/static/a7fb1f92dadb912f4b92045840c2d79f/314a8/Instagram_Glyph_White.webp 1081w,\\n/static/a7fb1f92dadb912f4b92045840c2d79f/65d55/Instagram_Glyph_White.webp 2161w,\\n/static/a7fb1f92dadb912f4b92045840c2d79f/d9905/Instagram_Glyph_White.webp 4322w","type":"image/webp","sizes":"(min-width: 4322px) 4322px, 100vw"}]},"width":4322,"height":4320}')},5289:function(e){e.exports=JSON.parse('{"layout":"constrained","backgroundColor":"#f8f8f8","images":{"fallback":{"src":"/static/1b41a5aecd05df78ba72ba5e9d1a48e8/585a7/2021%20Twitter%20logo%20-%20white.png","srcSet":"/static/1b41a5aecd05df78ba72ba5e9d1a48e8/5e855/2021%20Twitter%20logo%20-%20white.png 259w,\\n/static/1b41a5aecd05df78ba72ba5e9d1a48e8/e99da/2021%20Twitter%20logo%20-%20white.png 517w,\\n/static/1b41a5aecd05df78ba72ba5e9d1a48e8/585a7/2021%20Twitter%20logo%20-%20white.png 1034w","sizes":"(min-width: 1034px) 1034px, 100vw"},"sources":[{"srcSet":"/static/1b41a5aecd05df78ba72ba5e9d1a48e8/af1ff/2021%20Twitter%20logo%20-%20white.webp 259w,\\n/static/1b41a5aecd05df78ba72ba5e9d1a48e8/ab8aa/2021%20Twitter%20logo%20-%20white.webp 517w,\\n/static/1b41a5aecd05df78ba72ba5e9d1a48e8/7f289/2021%20Twitter%20logo%20-%20white.webp 1034w","type":"image/webp","sizes":"(min-width: 1034px) 1034px, 100vw"}]},"width":1034,"height":851}')},1096:function(e){e.exports=JSON.parse('{"layout":"constrained","backgroundColor":"#f8f8f8","images":{"fallback":{"src":"/static/472739dfb5857b1f659f4c4c6b4568d0/a8b52/GitHub-Mark-Light-120px-plus.png","srcSet":"/static/472739dfb5857b1f659f4c4c6b4568d0/53973/GitHub-Mark-Light-120px-plus.png 30w,\\n/static/472739dfb5857b1f659f4c4c6b4568d0/7ab40/GitHub-Mark-Light-120px-plus.png 60w,\\n/static/472739dfb5857b1f659f4c4c6b4568d0/a8b52/GitHub-Mark-Light-120px-plus.png 120w","sizes":"(min-width: 120px) 120px, 100vw"},"sources":[{"srcSet":"/static/472739dfb5857b1f659f4c4c6b4568d0/bde72/GitHub-Mark-Light-120px-plus.webp 30w,\\n/static/472739dfb5857b1f659f4c4c6b4568d0/927d1/GitHub-Mark-Light-120px-plus.webp 60w,\\n/static/472739dfb5857b1f659f4c4c6b4568d0/507b0/GitHub-Mark-Light-120px-plus.webp 120w","type":"image/webp","sizes":"(min-width: 120px) 120px, 100vw"}]},"width":120,"height":120}')}}]);
//# sourceMappingURL=commons-792417fff79be3d3e991.js.map