-
Notifications
You must be signed in to change notification settings - Fork 0
/
component---src-pages-index-tsx-03236534a2411fb6b0fa.js
2 lines (2 loc) · 13.8 KB
/
component---src-pages-index-tsx-03236534a2411fb6b0fa.js
1
2
"use strict";(self.webpackChunkgatsby_starter_default=self.webpackChunkgatsby_starter_default||[]).push([[691],{2978:function(e,t,r){r.r(t),r.d(t,{default:function(){return ce}});var n={};r.r(n),r.d(n,{exclude:function(){return ie},extract:function(){return ee},parse:function(){return te},parseUrl:function(){return ne},pick:function(){return ae},stringify:function(){return re},stringifyUrl:function(){return oe}});var o=r(7294),a=r(4316),i=r(8032),s=r(917);const l=(0,a.Z)(i.G,{target:"e1n1u3tj0"})({name:"1on2x4e",styles:"width:120px;height:120px;margin-bottom:30px;border-radius:50%;@media (max-width: 768px){width:80px;height:80px;}"});var c=e=>{let{profileImage:t}=e;return(0,s.tZ)(l,{image:t,alt:"Profile Image"})},p=r(982),u=r(9417),f=r(3024);const d=(0,a.Z)("div",{target:"e160b017"})({name:"15wqemn",styles:"width:100%;color:#ffffff"}),m=(0,a.Z)("div",{target:"e160b016"})({name:"tbo1bn",styles:"display:flex;flex-direction:row;align-items:center;justify-content:center;width:768px;height:350px;margin:0 auto;@media (max-width: 768px){width:95%;height:250px;padding:0 15px;}"}),g=(0,a.Z)("div",{target:"e160b015"})({name:"veifob",styles:"display:flex;flex-direction:column;width:40%;align-items:center;@media (max-width: 768px){width:50%;}"}),y=(0,a.Z)("div",{target:"e160b014"})({name:"6sxrm0",styles:"display:flex;flex-direction:column;height:55%;justify-content:flex-start;color:rgba(255, 255, 255, 0.88);padding-left:40px"}),x=(0,a.Z)("div",{target:"e160b013"})({name:"1h8u8jj",styles:"font-size:20px;font-weight:400;@media (max-width: 768px){font-size:15px;}"}),h=(0,a.Z)("div",{target:"e160b012"})({name:"l47o2a",styles:"margin-top:5px;font-size:35px;font-weight:700;@media (max-width: 768px){font-size:20px;}"}),b=(0,a.Z)("a",{target:"e160b011"})({name:"t571va",styles:"display:flex;flex-direction:row;align-items:center;font-size:18px;margin-top:15px;position:relative;color:#ffffff;text-decoration:none;width:fit-content;@media (max-width: 768px){font-size:14px;width:100%;}&::after{content:'';position:absolute;width:100%;transform:scaleX(0);height:2px;bottom:0;left:0;background-color:rgba(255, 255, 255, 0.88);transform-origin:bottom right;transition:transform 0.25s ease-out;}&:hover::after{transform:scaleX(1);transform-origin:bottom left;}"}),w=(0,a.Z)(p.G,{target:"e160b010"})({name:"1693thf",styles:"margin-right:5px"});var k=e=>{let{profileImage:t}=e;return(0,s.tZ)(d,null,(0,s.tZ)(m,null,(0,s.tZ)(g,null,(0,s.tZ)(c,{profileImage:t}),(0,s.tZ)("div",null,(0,s.tZ)(x,null,"Junior Developer"),(0,s.tZ)(h,null,"Daeyeon Kim"))),(0,s.tZ)(y,null,(0,s.tZ)(b,{href:"mailto:[email protected]"},(0,s.tZ)(w,{icon:u.FU$}),(0,s.tZ)("div",null,"[email protected]")),(0,s.tZ)(b,{href:"https://github.com/shaqok",target:"_blank"},(0,s.tZ)(w,{icon:f.zhw}),(0,s.tZ)("div",null,"shaqok")),(0,s.tZ)(b,{href:"https://www.linkedin.com/in/daniel-daeyeon-kim",target:"_blank"},(0,s.tZ)(w,{icon:f.D9H}),(0,s.tZ)("div",null,"Daniel Daeyeon Kim")))))},v=r(1883);const Z=(0,a.Z)("div",{target:"e1kn8q5k1"})({name:"1c76e3f",styles:"display:flex;flex-wrap:wrap;width:768px;margin:100px auto 0;color:var(--text-color);@media (max-width: 768px){width:100%;margin-top:50px;padding:0 20px;}"}),j=(0,a.Z)((e=>{let{active:t,...r}=e;return(0,s.tZ)(v.rU,r)}),{target:"e1kn8q5k0"})("margin-right:20px;padding:5px 0;font-size:18px;font-weight:",(e=>{let{active:t}=e;return t?"800":"400"}),";cursor:pointer;position:relative;text-decoration:none;width:fit-content;&:last-of-type{margin-right:0;}@media (max-width: 768px){font-size:15px;}&::after{content:'';position:absolute;width:100%;transform:scaleX(0);height:2px;bottom:0;left:0;background-color:rgba(255, 255, 255, 0.88);transform-origin:bottom right;transition:transform 0.25s ease-out;}&:hover::after{transform:scaleX(1);transform-origin:bottom left;}");var I=e=>{let{selectedCategory:t,categoryList:r}=e;return(0,s.tZ)(Z,null,Object.entries(r).map((e=>{let[r,n]=e;return(0,s.tZ)(j,{to:"/?category="+r,active:r===t,key:r},"#",r,"(",n,")")})))},F=r(7462);const O=(0,a.Z)(v.rU,{target:"e1eg5kak7"})({name:"8ptlka",styles:"display:flex;flex-direction:column;border-radius:10px;box-shadow:0 0 8px rgba(0, 0, 0, 0.15);transition:0.3s box-shadow;cursor:pointer;color:var(--text-color);&:hover{color:var(--text-color);box-shadow:0 0 10px var(--shadow-color);}"}),S=(0,a.Z)(i.G,{target:"e1eg5kak6"})({name:"1axbq5h",styles:"width:100%;height:200px;border-radius:10px 10px 0 0"}),E=(0,a.Z)("div",{target:"e1eg5kak5"})({name:"1do7u82",styles:"flex:1;display:flex;flex-direction:column;padding:15px"}),C=(0,a.Z)("div",{target:"e1eg5kak4"})({name:"kw2b4d",styles:"display:-webkit-box;overflow:hidden;margin-bottom:3px;text-overflow:ellipsis;white-space:normal;overflow-wrap:break-word;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:20px;font-weight:700"}),R=(0,a.Z)("div",{target:"e1eg5kak3"})({name:"xm5j9w",styles:"font-size:14px;font-weight:400;opacity:0.7"}),U=(0,a.Z)("div",{target:"e1eg5kak2"})({name:"1bobky6",styles:"display:flex;flex-wrap:wrap;margin-top:10px;margin:10px -5px"}),A=(0,a.Z)("div",{target:"e1eg5kak1"})({name:"1bzcbme",styles:"margin:2.5px 5px;padding:3px 5px;border-radius:3px;background:black;font-size:14px;font-weight:700;color:white"}),N=(0,a.Z)("div",{target:"e1eg5kak0"})({name:"1wehmme",styles:"display:-webkit-box;overflow:hidden;margin-top:auto;text-overflow:ellipsis;white-space:normal;overflow-wrap:break-word;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:16px;opacity:0.8"});var $=function(e){let{title:t,date:r,categories:n,summary:o,thumbnail:{childImageSharp:{gatsbyImageData:a}},link:i}=e;return(0,s.tZ)(O,{to:i},(0,s.tZ)(S,{image:a,alt:"Post Item Image"}),(0,s.tZ)(E,null,(0,s.tZ)(C,null,t),(0,s.tZ)(R,null,r),(0,s.tZ)(U,null,n.map((e=>(0,s.tZ)(A,{key:e},e)))),(0,s.tZ)(N,null,o)))};var z=(e,t)=>{const r=(0,o.useRef)(null),n=(0,o.useRef)(null),{0:a,1:i}=(0,o.useState)(1),s=(0,o.useMemo)((()=>t.filter((t=>{let{node:{frontmatter:{categories:r}}}=t;return"All"===e||r.includes(e)}))),[e]);return(0,o.useEffect)((()=>{n.current=new IntersectionObserver(((e,t)=>{e[0].isIntersecting&&(i((e=>e+1)),t.unobserve(e[0].target))}))}),[]),(0,o.useEffect)((()=>i(1)),[e]),(0,o.useEffect)((()=>{10*a>=s.length||null===r.current||0===r.current.children.length||null===n.current||n.current.observe(r.current.children[r.current.children.length-1])}),[a,e]),{containerRef:r,postList:s.slice(0,10*a)}};const q=(0,a.Z)("div",{target:"es8e92y0"})({name:"11grurp",styles:"display:grid;grid-template-columns:1fr 1fr;grid-gap:20px;width:768px;margin:0 auto;padding:50px 0 100px;@media (max-width: 768px){grid-template-columns:1fr;width:100%;padding:50px 20px;}"});var L=e=>{let{selectedCategory:t,posts:r}=e;const{containerRef:n,postList:o}=z(t,r);return(0,s.tZ)(q,{ref:n},o.map((e=>{let{node:{id:t,fields:{slug:r},frontmatter:n}}=e;return(0,s.tZ)($,(0,F.Z)({},n,{link:r,key:t}))})))};const D="%[a-f0-9]{2}",P=new RegExp("("+D+")|([^%]+?)","gi"),_=new RegExp("("+D+")+","gi");function T(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(1===e.length)return e;t=t||1;const r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],T(r),T(n))}function M(e){try{return decodeURIComponent(e)}catch{let t=e.match(P)||[];for(let r=1;r<t.length;r++)t=(e=T(t,r).join("")).match(P)||[];return e}}function X(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return decodeURIComponent(e)}catch{return function(e){const t={"%FE%FF":"��","%FF%FE":"��"};let r=_.exec(e);for(;r;){try{t[r[0]]=decodeURIComponent(r[0])}catch{const e=M(r[0]);e!==r[0]&&(t[r[0]]=e)}r=_.exec(e)}t["%C2"]="�";const n=Object.keys(t);for(const o of n)e=e.replace(new RegExp(o,"g"),t[o]);return e}(e)}}function B(e,t){if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===e||""===t)return[];const r=e.indexOf(t);return-1===r?[]:[e.slice(0,r),e.slice(r+t.length)]}function G(e,t){const r={};if(Array.isArray(t))for(const n of t){const t=Object.getOwnPropertyDescriptor(e,n);t?.enumerable&&Object.defineProperty(r,n,t)}else for(const n of Reflect.ownKeys(e)){const o=Object.getOwnPropertyDescriptor(e,n);if(o.enumerable){t(n,e[n],e)&&Object.defineProperty(r,n,o)}}return r}const K=Symbol("encodeFragmentIdentifier");function H(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function J(e,t){return t.encode?t.strict?encodeURIComponent(e).replace(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)):encodeURIComponent(e):e}function Q(e,t){return t.decode?X(e):e}function V(e){return Array.isArray(e)?e.sort():"object"==typeof e?V(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function W(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function Y(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function ee(e){const t=(e=W(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function te(e,t){H((t={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,...t}).arrayFormatSeparator);const r=function(e){let t;switch(e.arrayFormat){case"index":return(e,r,n)=>{t=/\[(\d*)]$/.exec(e),e=e.replace(/\[\d*]$/,""),t?(void 0===n[e]&&(n[e]={}),n[e][t[1]]=r):n[e]=r};case"bracket":return(e,r,n)=>{t=/(\[])$/.exec(e),e=e.replace(/\[]$/,""),t?void 0!==n[e]?n[e]=[...n[e],r]:n[e]=[r]:n[e]=r};case"colon-list-separator":return(e,r,n)=>{t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==n[e]?n[e]=[...n[e],r]:n[e]=[r]:n[e]=r};case"comma":case"separator":return(t,r,n)=>{const o="string"==typeof r&&r.includes(e.arrayFormatSeparator),a="string"==typeof r&&!o&&Q(r,e).includes(e.arrayFormatSeparator);r=a?Q(r,e):r;const i=o||a?r.split(e.arrayFormatSeparator).map((t=>Q(t,e))):null===r?r:Q(r,e);n[t]=i};case"bracket-separator":return(t,r,n)=>{const o=/(\[])$/.test(t);if(t=t.replace(/\[]$/,""),!o)return void(n[t]=r?Q(r,e):r);const a=null===r?[]:r.split(e.arrayFormatSeparator).map((t=>Q(t,e)));void 0!==n[t]?n[t]=[...n[t],...a]:n[t]=a};default:return(e,t,r)=>{void 0!==r[e]?r[e]=[...[r[e]].flat(),t]:r[e]=t}}}(t),n=Object.create(null);if("string"!=typeof e)return n;if(!(e=e.trim().replace(/^[?#&]/,"")))return n;for(const o of e.split("&")){if(""===o)continue;const e=t.decode?o.replace(/\+/g," "):o;let[a,i]=B(e,"=");void 0===a&&(a=e),i=void 0===i?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?i:Q(i,t),r(Q(a,t),i,n)}for(const[o,a]of Object.entries(n))if("object"==typeof a&&null!==a)for(const[e,r]of Object.entries(a))a[e]=Y(r,t);else n[o]=Y(a,t);return!1===t.sort?n:(!0===t.sort?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce(((e,t)=>{const r=n[t];return Boolean(r)&&"object"==typeof r&&!Array.isArray(r)?e[t]=V(r):e[t]=r,e}),Object.create(null))}function re(e,t){if(!e)return"";H((t={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...t}).arrayFormatSeparator);const r=r=>t.skipNull&&null==e[r]||t.skipEmptyString&&""===e[r],n=function(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{const o=r.length;return void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[J(t,e),"[",o,"]"].join("")]:[...r,[J(t,e),"[",J(o,e),"]=",J(n,e)].join("")]};case"bracket":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[J(t,e),"[]"].join("")]:[...r,[J(t,e),"[]=",J(n,e)].join("")];case"colon-list-separator":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[J(t,e),":list="].join("")]:[...r,[J(t,e),":list=",J(n,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return r=>(n,o)=>void 0===o||e.skipNull&&null===o||e.skipEmptyString&&""===o?n:(o=null===o?"":o,0===n.length?[[J(r,e),t,J(o,e)].join("")]:[[n,J(o,e)].join(e.arrayFormatSeparator)])}default:return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,J(t,e)]:[...r,[J(t,e),"=",J(n,e)].join("")]}}(t),o={};for(const[i,s]of Object.entries(e))r(i)||(o[i]=s);const a=Object.keys(o);return!1!==t.sort&&a.sort(t.sort),a.map((r=>{const o=e[r];return void 0===o?"":null===o?J(r,t):Array.isArray(o)?0===o.length&&"bracket-separator"===t.arrayFormat?J(r,t)+"[]":o.reduce(n(r),[]).join("&"):J(r,t)+"="+J(o,t)})).filter((e=>e.length>0)).join("&")}function ne(e,t){t={decode:!0,...t};let[r,n]=B(e,"#");return void 0===r&&(r=e),{url:r?.split("?")?.[0]??"",query:te(ee(e),t),...t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:Q(n,t)}:{}}}function oe(e,t){t={encode:!0,strict:!0,[K]:!0,...t};const r=W(e.url).split("?")[0]||"";let n=re({...te(ee(e.url),{sort:!1}),...e.query},t);n&&(n=`?${n}`);let o=function(e){let t="";const r=e.indexOf("#");return-1!==r&&(t=e.slice(r)),t}(e.url);if(e.fragmentIdentifier){const n=new URL(r);n.hash=e.fragmentIdentifier,o=t[K]?n.hash:`#${e.fragmentIdentifier}`}return`${r}${n}${o}`}function ae(e,t,r){r={parseFragmentIdentifier:!0,[K]:!1,...r};const{url:n,query:o,fragmentIdentifier:a}=ne(e,r);return oe({url:n,query:G(o,t),fragmentIdentifier:a},r)}function ie(e,t,r){return ae(e,Array.isArray(t)?e=>!t.includes(e):(e,r)=>!t(e,r),r)}var se=n,le=r(9364);var ce=e=>{let{location:{search:t},data:{site:{siteMetadata:{siteTitle:r,description:n,siteUrl:a,menuLinks:i}},allMarkdownRemark:{edges:l},file:{childImageSharp:{gatsbyImageData:c},publicURL:p}}}=e;const u=se.parse(t),f="string"==typeof u.category&&u.category?u.category:"All",d=(0,o.useMemo)((()=>l.reduce(((e,t)=>{let{node:{frontmatter:{categories:r}}}=t;return r.forEach((t=>{void 0===e[t]?e[t]=1:e[t]++})),e.All++,e}),{All:0})),[]);return(0,s.tZ)(le.Z,{siteTitle:r,title:r,description:n,siteUrl:a,image:p,menuLinks:i},(0,s.tZ)(k,{profileImage:c}),(0,s.tZ)(I,{selectedCategory:f,categoryList:d}),(0,s.tZ)(L,{selectedCategory:f,posts:l}))}}}]);
//# sourceMappingURL=component---src-pages-index-tsx-03236534a2411fb6b0fa.js.map