(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{8553:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return n(4998)}])},9346:function(t,e,n){"use strict";n.d(e,{Z:function(){return l}});var r=n(2774),i=(n(7304),n(2888)),a={hidden:{opacity:0,x:-200,y:0},enter:{opacity:1,x:0,y:0},exit:{opacity:0,x:0,y:-100}};function l(t){var e=t.children;return(0,r.tZ)("div",{children:(0,r.tZ)(i.E.main,{initial:"hidden",animate:"enter",exit:"exit",variants:a,transition:{type:"linear"},children:e})})}},9752:function(t,e,n){"use strict";n.d(e,{TQ:function(){return d},$t:function(){return m},Uy:function(){return u}});var r=n(2774),i=n(6237),a=n(1212),l=n(5679),c=n.n(l),o=n(3213),s=function(t){var e=t.title,n=t.description,l=t.ogType,o=(t.ogImage,t.twImage,(0,a.useRouter)());return(0,r.BX)(i.default,{children:[(0,r.tZ)("title",{children:e}),(0,r.tZ)("meta",{name:"robots",content:"follow, index"}),(0,r.tZ)("meta",{name:"description",content:n}),(0,r.tZ)("meta",{name:"description",content:"Senior Full-Stack Engineer in NZ"}),(0,r.tZ)("meta",{property:"og:url",content:"".concat(c().siteUrl).concat(o.asPath)}),(0,r.tZ)("meta",{property:"og:type",content:l}),(0,r.tZ)("meta",{property:"og:site_name",content:c().title}),(0,r.tZ)("meta",{property:"og:description",content:n}),(0,r.tZ)("meta",{property:"og:description",content:"Senior Full-Stack Engineer in NZ"}),(0,r.tZ)("meta",{property:"og:title",content:e}),(0,r.tZ)("meta",{name:"twitter:site",content:c().twitter}),(0,r.tZ)("meta",{name:"twitter:title",content:e}),(0,r.tZ)("meta",{name:"twitter:description",content:n}),(0,r.tZ)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,r.tZ)("meta",{name:"twitter:card",content:"summary_large_image"})]})},d=function(t){var e=t.title,n=t.description,i=c().siteUrl+c().socialBanner,a=c().siteUrl+c().socialBanner;return(0,r.tZ)(s,{title:e,description:n,ogType:"website",ogImage:i,twImage:a})},m=function(t){var e=t.title,n=t.description,l=c().siteUrl+c().socialBanner,o=c().siteUrl+c().socialBanner,d=(0,a.useRouter)();return(0,r.BX)(r.HY,{children:[(0,r.tZ)(s,{title:e,description:n,ogType:"website",ogImage:l,twImage:o}),(0,r.tZ)(i.default,{children:(0,r.tZ)("link",{rel:"alternate",type:"application/rss+xml",title:"".concat(n," - RSS feed"),href:"".concat(c().siteUrl).concat(d.asPath,"/feed.xml")})})]})},u=function(t){var e=t.authorDetails,n=t.title,l=t.summary,d=t.date,m=t.lastmod,u=t.url,p=t.images,g=void 0===p?[]:p,h=(0,a.useRouter)(),f=new Date(d).toISOString(),y=new Date(m||d).toISOString(),Z=(0===g.length?[c().socialBanner]:"string"===typeof g?[g]:g).map((function(t){return{"@type":"ImageObject",url:"".concat(c().siteUrl).concat(t)}})),x={"@context":"https://schema.org","@type":"Article",mainEntityOfPage:{"@type":"WebPage","@id":u},headline:n,image:Z,datePublished:f,dateModified:y,author:e?e.map((function(t){return{"@type":"Person",name:t.name}})):{"@type":"Person",name:c().author},publisher:{"@type":"Organization",name:c().author,logo:{"@type":"ImageObject",url:"".concat(c().siteUrl).concat(c().siteLogo)}},description:l},b=Z[0].url;return(0,r.BX)(r.HY,{children:[(0,r.tZ)(o.default,{id:"seo-script",type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(x,null,2)}}),(0,r.tZ)(s,{title:n,description:l,ogType:"article",ogImage:Z,twImage:b}),(0,r.BX)(i.default,{children:[d&&(0,r.tZ)("meta",{property:"article:published_time",content:f}),m&&(0,r.tZ)("meta",{property:"article:modified_time",content:y}),(0,r.tZ)("link",{rel:"canonical",href:"".concat(c().siteUrl).concat(h.asPath)})]})]})}},9248:function(t,e,n){"use strict";var r=n(5679),i=n.n(r);e.Z=function(t){return new Date(t).toLocaleDateString(i().locale,{year:"numeric",month:"long",day:"numeric"})}},4998:function(t,e,n){"use strict";n.r(e),n.d(e,{__N_SSG:function(){return h},default:function(){return f}});var r=n(2774),i=n(3948),a=n(9752),l=n(5679),c=n.n(l),o=(n(7304),function(t){return(0,r.tZ)("span",{className:"emoji",role:"img","aria-label":t.label?t.label:"","aria-hidden":t.label?"false":"true",children:t.symbol})}),s=n(9248),d=n(6291),m=n(3068);function u(t){var e=t.title,n=t.slug,i=t.index,a=t.date;return(0,r.tZ)(d.default,{href:"".concat(n),children:(0,r.tZ)("div",{onClick:function(){return(0,m.K)("click","blogPost","title",e)},className:"w-full border-b border-gray-200 dark:border-gray-700 py-3 transform hover:scale-[1.01] transition-all cursor-pointer",children:(0,r.BX)("div",{className:"flex flex-col sm:flex-row justify-between sm:items-center",children:[(0,r.BX)("div",{className:"flex items-center",children:[(0,r.tZ)("div",{className:"text-gray-800 dark:text-gray-400 text-left mr-6",children:i}),(0,r.tZ)("h4",{className:"text-base sm:text-lg font-medium w-full text-gray-800 dark:text-gray-100",children:e})]}),(0,r.tZ)("div",{className:"flex items-center mt-2 sm:mt-0 justify-between",children:(0,r.tZ)("p",{className:"text-gray-900 text-sm dark:text-gray-400 text-left sm:text-right md:mb-0 mr-2 ml-8 sm:ml-0",children:(0,r.tZ)("time",{dateTime:a,children:(0,s.Z)(a)})})})]})})})}function p(t){var e=t.heading,n=t.content,i=t.contentType;return(0,r.BX)("div",{className:"divide-y divide-gray-200 dark:divide-gray-700",children:[(n.length||0===!n.length)&&(0,r.tZ)("div",{className:"pt-6 pb-4 space-y-2 md:space-y-5",children:(0,r.tZ)("h3",{className:"font-bold text-2xl md:text-3xl tracking-tight text-black dark:text-white",children:e})}),(0,r.BX)("div",{className:"mb-6",children:[(!n.length||0===n.length)&&(0,r.tZ)(r.HY,{}),n.filter((function(t,e){return!!t.featured})).slice(0,5).map((function(t,e){var n=t.slug,a=t.title,l=t.date;return(0,r.tZ)(u,{date:l,index:e+1,title:a,slug:"/".concat(i,"/").concat(n)},"/".concat(i,"/").concat(n))}))]})]})}var g=n(9346),h=!0;function f(t){var e=t.blogs,n=t.snippets;return(0,r.BX)(g.Z,{children:[(0,r.tZ)(a.TQ,{title:c().title+" - Developer, Writer",description:c().description}),(0,r.BX)("div",{children:[(0,r.tZ)("h3",{className:"font-bold text-2xl mt-4 md:text-3xl tracking-tight text-black dark:text-white",children:"Hi \ud83d\udd90\ud83c\udffb"}),(0,r.BX)("p",{className:"text-lg leading-7 text-gray-500 dark:text-white",children:["Welcome to my corner of internet. Beyond this point you may find my thoughts"," ",(0,r.tZ)(o,{symbol:"\ud83d\udc7e",label:"sheep"})]})]}),(0,r.tZ)(p,{content:e,heading:"Featured blogs",contentType:"blog"}),(0,r.tZ)(p,{content:n,heading:"Featured Snippets",contentType:"snippet"}),(0,r.tZ)("div",{className:"flex justify-end font-medium leading-6 mb-6",children:(0,r.tZ)(i.Z,{href:"/blog",className:"text-black dark:text-white hover:text-primary-600 dark:hover:text-primary-400 cursor-pointer ","aria-label":"blog posts",children:"All Posts \u2192"})})]})}}},function(t){t.O(0,[996,888,179],(function(){return e=8553,t(t.s=e);var e}));var e=t.O();_N_E=e}]);