-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcomponent---src-pages-templates-blog-tsx-bb4cde335ad2d6d5828c.js
More file actions
2 lines (2 loc) · 5.87 KB
/
component---src-pages-templates-blog-tsx-bb4cde335ad2d6d5828c.js
File metadata and controls
2 lines (2 loc) · 5.87 KB
1
2
(self.webpackChunkcode_cave=self.webpackChunkcode_cave||[]).push([[849],{1421:function(e,t,l){var a=l(6540);function r(e){return a.createElement("svg",e,[a.createElement("line",{width:"800",height:"8",stroke:"#242326",strokeWidth:"8",strokeDasharray:"8 8",x1:"0",x2:"100%",y1:"4",y2:"4",key:0}),a.createElement("line",{width:"800",height:"8",stroke:"#111111",strokeOpacity:"0",strokeWidth:"8",strokeDasharray:"8 8",x1:"8",x2:"100%",y1:"4",y2:"4",key:1})])}r.defaultProps={height:"8"},e.exports=r,r.default=r},3510:function(e,t,l){var a=l(5972).k5;e.exports.Q=function(e){return a({tag:"svg",attr:{viewBox:"0 0 16 16",fill:"currentColor"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M6.5 4a.5.5 0 01.5-.5h5a.5.5 0 01.5.5v5a.5.5 0 01-1 0V4.5H7a.5.5 0 01-.5-.5z",clipRule:"evenodd"}},{tag:"path",attr:{fillRule:"evenodd",d:"M12.354 3.646a.5.5 0 010 .708l-9 9a.5.5 0 01-.708-.708l9-9a.5.5 0 01.708 0z",clipRule:"evenodd"}}]})(e)}},3522:function(e,t,l){"use strict";l.r(t),l.d(t,{Head:function(){return m}});var a=l(6540),r=l(9585),s=l(3609),n=l(5471),i=l(6525),o=l(9039),c=l(6696),u=l(7437);t.default=e=>{let{data:t,pageContext:l}=e;const c=t.allMarkdownRemark.nodes,{currentPage:m,pagesQuantity:d,markupData:f,lang:g}=l;return(0,u.Y)(a.Fragment,null,(0,u.Y)(s.A,{heightClass:"lg:h-32",titleBlockClassName:"w-full",title:f.bannerTitle.toUpperCase()}),(0,u.Y)(n.A,{className:"flex-col items-center p-6 md:p-12 gap-14"},c?c.map(e=>(0,u.Y)(i.A,{theme:r.S.dark,key:e.id,post:e,markupData:f,lang:g})):null,(0,u.Y)(o.A,{section:"blog",pagesQuantity:d,currentPage:m,nextPageTitle:l.pagination.next})))};const m=e=>{let{pageContext:{markupData:t,currentPage:l,site:a,lang:r},location:s}=e;return(0,u.Y)(c.c,{title:`${t.head} | ${t.bannerTitle.toUpperCase()} | ${l}`,description:a.description,siteUrl:a.siteUrl,path:s.pathname,lang:r})}},3609:function(e,t,l){"use strict";var a=l(6540),r=l(5588),s=l(1421),n=l.n(s),i=l(5471),o=l(7437);t.A=e=>{let{heightClass:t="lg:min-h-[396px]",title:l,className:s,borderBottom:c,borderTop:u,image:m,titleBlockClassName:d,childrenBlockClassName:f,children:g}=e;const{0:p,1:h}=(0,a.useState)("translate-y-full");return(0,a.useEffect)(()=>{h("translate-y-0")},[]),(0,o.Y)("div",{className:`w-full flex items-center relative lg:overflow-hidden ${t} ${s}`},u?(0,o.Y)(n(),{className:"absolute top-0 left-0 right-0 w-full"}):null,(0,o.Y)(i.A,{className:"h-full flex flex-col lg:flex-row py-12 lg:py-0 items-center justify-between text-secondary-100 flex-grow gap-y-8"},(0,o.Y)("div",{className:`flex flex-col overflow-hidden items-left h-full justify-center text-secondary-100 h-full w-full ${d||"lg:w-1/2"}`},(0,o.Y)("h1",{className:"overflow-hidden w-full"},(0,o.Y)("span",{className:`banner-title inline-block text-3xl lg:text-4xl w-full text-center transition-all duration-1000 font-light ${p}`,dangerouslySetInnerHTML:{__html:`${l}`}}))),m?(0,o.Y)("div",{className:"w-[220px] lg:w-1/2 lg:h-full flex justify-center lg:justify-end items-center -order-1 lg:order-none"},(0,o.Y)(r.G,{image:m,alt:"cover",className:"object-contain aspect-square"})):null,g?(0,o.Y)("div",{className:`w-full lg:h-full flex justify-center lg:justify-start items-center ${f}`},g):null),c?(0,o.Y)(n(),{className:"absolute bottom-0 left-0 right-0 w-full"}):null)}},6525:function(e,t,l){"use strict";var a=l(4810),r=l(3510),s=l(9585),n=l(5588),i=l(7437);t.A=e=>{let{post:t,theme:l,className:o,markupData:c,lang:u}=e;const{date:m,title:d,text:f}=t.frontmatter,g=Math.floor(t.wordCount.words/200),p=g||1,h=l===s.S.light?"text-main-100":"text-secondary-100",x=l===s.S.light?"text-main-70":"text-secondary-70",v=l===s.S.light?"hover:text-main-10":"hover:text-secondary-10",y=(0,n.c)(t.frontmatter.cover);return(0,i.Y)(a.N_,{to:`/blog/${t.id}`,className:`flex flex-col sm:flex-row w-full justify-center gap-5 md:gap-14 ${h} ${v} ${o}`,itemScope:!0,itemType:"https://schema.org/Article"},y&&(0,i.Y)("div",{className:"mr-3.5"},(0,i.Y)(n.G,{image:y,alt:"",className:"object-cover rounded-full w-full aspect-square"})),(0,i.Y)("div",{className:"flex flex-col w-full max-w-[400px] gap-2.5"},(0,i.Y)("p",{itemProp:"dateCreated",className:`text-lg ${x}`},m),(0,i.Y)("h2",{itemProp:"headline",className:`text-3xl font-semibold ${h}`},d)),(0,i.Y)("div",{className:"flex flex-col w-full max-w-[500px] gap-5"},(0,i.Y)("p",{className:`font-normal text-base ${h}`,itemProp:"abstract"},f.split(" ").slice(0,70).join(" "),"..."),(0,i.Y)("div",{className:"flex w-full items-center justify-between"},(0,i.Y)("div",{className:"flex items-center gap-3 text-sm font-bold"},(0,i.Y)("span",null,null==c?void 0:c.readPostLink),(0,i.Y)(r.Q,{size:14})),(0,i.Y)("p",{className:`text-sm ${x}`},`${p} ${null==c?void 0:c.readingTimeUnits} ${null==c?void 0:c.readingTimeTitle}`))))}},7859:function(e,t,l){"use strict";var a=l(8168),r=l(9585),s=l(7437);t.A=e=>{const{theme:t,onClick:l,className:n,children:i,border:o,...c}=e,u=""+(t===r.S.dark?"bg-primary-70 text-secondary-100 hover:text-main-30":"bg-secondary-100 text-main-100 border-main-100 hover:bg-secondary-30");return(0,s.Y)("button",(0,a.A)({onClick:l,className:`flex min-w-10 items-center justify-center rounded-full border-solid ${o?"border":""} ${u} ${n}`},c),i)}},9039:function(e,t,l){"use strict";var a=l(4810),r=l(9585),s=l(7859),n=l(7437);t.A=e=>{let{section:t,pagesQuantity:l,currentPage:i,nextPageTitle:o,className:c}=e;const u=Array.from({length:l},(e,t)=>t+1),m=i+1;return(0,n.Y)("div",{className:`flex justify-center w-full gap-6 ${c}`},i<l?(0,n.Y)(a.N_,{to:`/${t}/page/${m}`,className:"w-max shrink-0"},(0,n.Y)(s.A,{theme:r.S.dark,border:!0,"aria-label":null!=o?o:"Next page",className:"whitespace-nowrap h-10 px-5 font-bold"},null!=o?o:"Next page")):null,(0,n.Y)("nav",{className:"shrink-0 flex gap-2"},l>1?u.map(e=>(0,n.Y)(a.N_,{key:`pagination-link-${e}`,to:`/${t}/page/${e}`},(0,n.Y)(s.A,{theme:r.S.dark,border:e===i,"aria-label":"view page",className:"h-10 font-bold"},e))):null))}}}]);
//# sourceMappingURL=component---src-pages-templates-blog-tsx-bb4cde335ad2d6d5828c.js.map