-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomponent---src-pages-templates-projects-tsx-05e1354e259380d8d7ed.js
2 lines (2 loc) · 4.17 KB
/
component---src-pages-templates-projects-tsx-05e1354e259380d8d7ed.js
1
2
(self.webpackChunkcode_cave=self.webpackChunkcode_cave||[]).push([[650],{6488:function(e,t,a){var r=a(9720).w_;e.exports.p=function(e){return r({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)}},1434:function(e,t,a){"use strict";var r=a(7462),l=a(8322),n=a(917);t.Z=e=>{const{theme:t,onClick:a,className:s,children:o,border:i,...c}=e,d=""+(t===l.Q.dark?"bg-main-100 text-secondary-100 border-secondary-100 hover:bg-main-70":"bg-secondary-100 text-main-100 border-main-100 hover:bg-secondary-30");return(0,n.tZ)("button",(0,r.Z)({onClick:a,className:`flex min-w-10 items-center justify-center rounded-lg border-solid ${i?"border":""} ${d} ${s}`},c),o)}},4568:function(e,t,a){"use strict";var r=a(4160),l=a(8322),n=a(1434),s=a(917);t.Z=e=>{let{section:t,pagesQuantity:a,currentPage:o,nextPageTitle:i,className:c}=e;const d=Array.from({length:a},((e,t)=>t+1)),u=o+1;return(0,s.tZ)("div",{className:`flex justify-center w-full gap-6 ${c}`},o<a?(0,s.tZ)(r.rU,{to:`/${t}/page/${u}`,className:"w-max shrink-0"},(0,s.tZ)(n.Z,{theme:l.Q.light,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,s.tZ)("nav",{className:"shrink-0 flex gap-2"},a>1?d.map((e=>(0,s.tZ)(r.rU,{key:`pagination-link-${e}`,to:`/${t}/page/${e}`},(0,s.tZ)(n.Z,{theme:l.Q.light,border:e===o,"aria-label":"view page",className:"h-10 font-bold"},e)))):null))}},6745:function(e,t,a){"use strict";var r=a(4160),l=a(8032),n=a(8322),s=a(6488),o=a(9165),i=a(917);t.Z=e=>{let{project:t,className:a,theme:c,lang:d}=e;const u=(0,l.c)(t.frontmatter.cover),{title:m,teamSize:p,duration:g}=t.frontmatter,h=c===n.Q.light?"text-main-100":"text-secondary-100",f=c===n.Q.light?"bg-secondary-100 hover:bg-secondary-100":"bg-main-100 hover:bg-main-100";return(0,i.tZ)(r.rU,{to:`/projects/${t.id}`,className:`${f} ${h} flex flex-col justify-between rounded-2xl p-2.5 gap-2.5 ${a}`,itemScope:!0,itemType:"https://schema.org/CreativeWork"},(0,i.tZ)("div",{className:"group flex-1 relative"},u?(0,i.tZ)("div",{className:"w-full rounded-[10px] overflow-hidden"},(0,i.tZ)(l.G,{image:u,alt:"cover",itemProp:"image",className:"object-contain w-full rounded-[10px] grayscale transition-all group-hover:scale-[1.05]"})):null,(0,i.tZ)("div",{className:"absolute left-2 bottom-2 flex items-center gap-2.5 z-10"},(0,i.tZ)("p",{className:"backdrop-blur-sm backdrop-brightness-75 text-secondary-100 px-5 h-10 flex items-center rounded-lg"},g),(0,i.tZ)("p",{className:"backdrop-blur-sm backdrop-brightness-75 text-secondary-100 px-5 h-10 flex items-center rounded-lg"},p))),(0,i.tZ)("div",{className:"flex px-2.5 py-1 items-center grow"},(0,i.tZ)("h2",{className:"text-base grow font-medium h-full",itemProp:"description"},m),(0,i.tZ)(s.p,{size:20})),(0,i.tZ)(o.Lx,{itemProp:"author",lang:d}))}},3997:function(e,t,a){"use strict";a.r(t),a.d(t,{Head:function(){return c}});var r=a(8322),l=a(1164),n=a(6745),s=a(4568),o=a(9165),i=a(917);t.default=e=>{let{data:t,pageContext:a}=e;const o=t.allMarkdownRemark.nodes,{currentPage:c,pagesQuantity:d,lang:u,markupData:m}=a;return(0,i.tZ)("div",{className:"flex w-full justify-center bg-main-100"},(0,i.tZ)("h1",{className:"hidden"},m.head),(0,i.tZ)(l.Z,{maxWidthClass:"max-w-4.5xl",className:"flex-col py-16"},(0,i.tZ)("div",{className:"w-full grid grid-cols-1 sm:grid-cols-2 gap-x-14 gap-y-8"},o?o.map((e=>(0,i.tZ)(n.Z,{key:e.id,project:e,lang:u,theme:r.Q.light}))):null),d>1?(0,i.tZ)(s.Z,{section:"projects",pagesQuantity:d,currentPage:c,nextPageTitle:a.pagination.next}):null))};const c=e=>{let{pageContext:{markupData:t,site:a,lang:r},location:l}=e;return(0,i.tZ)(o.Ag,{title:`${t.head} | ${t.bannerTitle.toUpperCase()}`,siteUrl:a.siteUrl,description:a.description,path:l.pathname,lang:r})}},8322:function(e,t,a){"use strict";a.d(t,{Q:function(){return r}});let r=function(e){return e.dark="dark",e.light="light",e}({})}}]);
//# sourceMappingURL=component---src-pages-templates-projects-tsx-05e1354e259380d8d7ed.js.map