-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcomponent---src-pages-templates-blog-by-author-tsx-4ddf29869f605a100d94.js
More file actions
2 lines (2 loc) · 6.92 KB
/
component---src-pages-templates-blog-by-author-tsx-4ddf29869f605a100d94.js
File metadata and controls
2 lines (2 loc) · 6.92 KB
1
2
(self.webpackChunkcode_cave=self.webpackChunkcode_cave||[]).push([[711],{1421:function(e,t,a){var l=a(6540);function r(e){return l.createElement("svg",e,[l.createElement("line",{width:"800",height:"8",stroke:"#242326",strokeWidth:"8",strokeDasharray:"8 8",x1:"0",x2:"100%",y1:"4",y2:"4",key:0}),l.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,a){var l=a(5972).k5;e.exports.Q=function(e){return l({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)}},3609:function(e,t,a){"use strict";var l=a(6540),r=a(5588),s=a(1421),o=a.n(s),n=a(5471),i=a(7437);t.A=e=>{let{heightClass:t="lg:min-h-[396px]",title:a,className:s,borderBottom:c,borderTop:u,image:m,titleBlockClassName:d,childrenBlockClassName:f,children:h}=e;const{0:p,1:g}=(0,l.useState)("translate-y-full");return(0,l.useEffect)(()=>{g("translate-y-0")},[]),(0,i.Y)("div",{className:`w-full flex items-center relative lg:overflow-hidden ${t} ${s}`},u?(0,i.Y)(o(),{className:"absolute top-0 left-0 right-0 w-full"}):null,(0,i.Y)(n.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,i.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,i.Y)("h1",{className:"overflow-hidden w-full"},(0,i.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:`${a}`}}))),m?(0,i.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,i.Y)(r.G,{image:m,alt:"cover",className:"object-contain aspect-square"})):null,h?(0,i.Y)("div",{className:`w-full lg:h-full flex justify-center lg:justify-start items-center ${f}`},h):null),c?(0,i.Y)(o(),{className:"absolute bottom-0 left-0 right-0 w-full"}):null)}},5980:function(e,t,a){"use strict";a.r(t),a.d(t,{Head:function(){return d}});var l=a(6540),r=a(9585),s=a(3609),o=a(5471),n=a(6525),i=a(9039),c=a(6696),u=a(7324),m=a(7437);t.default=e=>{let{data:t,pageContext:a}=e;const c=t.posts.nodes,{authorAlias:d,author:f,authorPhoto:h,authorPosition:p,authorDescription:g}=t.author.frontmatter,{currentPage:x,pagesQuantity:N,markupData:v,lang:y}=a;return(0,m.Y)(l.Fragment,null,(0,m.Y)(s.A,{heightClass:"lg:h-99",titleBlockClassName:"lg:w-72 shrink-0 lg:mr-28",title:v.blogByAuthorBannerTitle.toUpperCase(),borderBottom:!0},(0,m.Y)("div",{className:"text-secondary-30 text-lg"},(0,m.Y)(u.A,{authorAlias:d,author:f,authorPhoto:h,authorPosition:p}),(0,m.Y)("p",{className:"w-full"},g))),(0,m.Y)(o.A,{className:"flex-col items-center p-6 md:p-12 gap-14"},c?c.map(e=>(0,m.Y)(n.A,{theme:r.S.dark,key:e.id,post:e,markupData:v,lang:y})):null,(0,m.Y)(i.A,{section:`blog/${d.split(" ").join("-").toLowerCase()}`,pagesQuantity:N,currentPage:x,nextPageTitle:a.pagination.next})))};const d=e=>{let{pageContext:{markupData:t,currentPage:a,site:l,lang:r},data:{author:{frontmatter:{author:s}}},location:o}=e;return(0,m.Y)(c.c,{title:`${t.head} | ${s} | ${a}`,description:l.description,siteUrl:l.siteUrl,path:o.pathname,lang:r})}},6525:function(e,t,a){"use strict";var l=a(4810),r=a(3510),s=a(9585),o=a(5588),n=a(7437);t.A=e=>{let{post:t,theme:a,className:i,markupData:c,lang:u}=e;const{date:m,title:d,text:f}=t.frontmatter,h=Math.floor(t.wordCount.words/200),p=h||1,g=a===s.S.light?"text-main-100":"text-secondary-100",x=a===s.S.light?"text-main-70":"text-secondary-70",N=a===s.S.light?"hover:text-main-10":"hover:text-secondary-10",v=(0,o.c)(t.frontmatter.cover);return(0,n.Y)(l.N_,{to:`/blog/${t.id}`,className:`flex flex-col sm:flex-row w-full justify-center gap-5 md:gap-14 ${g} ${N} ${i}`,itemScope:!0,itemType:"https://schema.org/Article"},v&&(0,n.Y)("div",{className:"mr-3.5"},(0,n.Y)(o.G,{image:v,alt:"",className:"object-cover rounded-full w-full aspect-square"})),(0,n.Y)("div",{className:"flex flex-col w-full max-w-[400px] gap-2.5"},(0,n.Y)("p",{itemProp:"dateCreated",className:`text-lg ${x}`},m),(0,n.Y)("h2",{itemProp:"headline",className:`text-3xl font-semibold ${g}`},d)),(0,n.Y)("div",{className:"flex flex-col w-full max-w-[500px] gap-5"},(0,n.Y)("p",{className:`font-normal text-base ${g}`,itemProp:"abstract"},f.split(" ").slice(0,70).join(" "),"..."),(0,n.Y)("div",{className:"flex w-full items-center justify-between"},(0,n.Y)("div",{className:"flex items-center gap-3 text-sm font-bold"},(0,n.Y)("span",null,null==c?void 0:c.readPostLink),(0,n.Y)(r.Q,{size:14})),(0,n.Y)("p",{className:`text-sm ${x}`},`${p} ${null==c?void 0:c.readingTimeUnits} ${null==c?void 0:c.readingTimeTitle}`))))}},7324:function(e,t,a){"use strict";var l=a(4810),r=a(5588),s=a(7437);t.A=e=>{let{authorAlias:t,author:a,authorPosition:o,authorPhoto:n}=e;const i=(0,r.c)(n);return(0,s.Y)(l.N_,{to:`/blog/${t.split(" ").join("-").toLowerCase()}`,title:`${a}'s blog`,itemProp:"author",itemScope:!0,itemType:"https://schema.org/Person",className:"flex items-center gap-4 mb-8 sm:mb-12 text-secondary-100 text-lg"},i?(0,s.Y)(r.G,{image:i,alt:"avatar",itemProp:"image",className:"object-contain aspect-square rounded-full w-16 grayscale"}):null,(0,s.Y)("div",{className:"flex-1 w-max"},(0,s.Y)("p",{itemProp:"name",className:"font-semibold whitespace-nowrap"},a),(0,s.Y)("p",{itemProp:"jobTitle",className:"text-secondary-30"},o)))}},7859:function(e,t,a){"use strict";var l=a(8168),r=a(9585),s=a(7437);t.A=e=>{const{theme:t,onClick:a,className:o,children:n,border:i,...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,l.A)({onClick:a,className:`flex min-w-10 items-center justify-center rounded-full border-solid ${i?"border":""} ${u} ${o}`},c),n)}},9039:function(e,t,a){"use strict";var l=a(4810),r=a(9585),s=a(7859),o=a(7437);t.A=e=>{let{section:t,pagesQuantity:a,currentPage:n,nextPageTitle:i,className:c}=e;const u=Array.from({length:a},(e,t)=>t+1),m=n+1;return(0,o.Y)("div",{className:`flex justify-center w-full gap-6 ${c}`},n<a?(0,o.Y)(l.N_,{to:`/${t}/page/${m}`,className:"w-max shrink-0"},(0,o.Y)(s.A,{theme:r.S.dark,border:!0,"aria-label":null!=i?i:"Next page",className:"whitespace-nowrap h-10 px-5 font-bold"},null!=i?i:"Next page")):null,(0,o.Y)("nav",{className:"shrink-0 flex gap-2"},a>1?u.map(e=>(0,o.Y)(l.N_,{key:`pagination-link-${e}`,to:`/${t}/page/${e}`},(0,o.Y)(s.A,{theme:r.S.dark,border:e===n,"aria-label":"view page",className:"h-10 font-bold"},e))):null))}}}]);
//# sourceMappingURL=component---src-pages-templates-blog-by-author-tsx-4ddf29869f605a100d94.js.map