PageSourceSearch

https://www.cantierecreativo.net/_next/static/chunks/pages/blog-3cb050656532551b.js

js cantierecreativo.net collected 2026-09-25 21:03:15 UTC 9,982 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[195],{7286:function(e,l,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/blog",function(){return a(5372)}])},9490:function(e,l,a){"use strict";a.d(l,{Z:function(){return Pagination}});var s=a(5893),t=a(1664),r=a.n(t),n=a(9332),i=a(7294),c=a(899),o=a(1911);function Pagination(e){let{pages:l,currentPage:a,locale:t,currentView:d}=e,x=(0,n.usePathname)(),g=parseInt(a),[m,u]=(0,i.useState)(0),h="";d&&(h="f=".concat(d,"&")),(0,i.useEffect)(()=>{let handleResize=()=>{u(window.innerWidth)};return window.addEventListener("resize",handleResize),u(window.innerWidth),()=>window.removeEventListener("resize",handleResize)},[]);let p=m?m>0&&m<720?1==g?2+g:1+g:4+g:0,b=m?m>0&&m<720?1==g?g-1:g==l.length?g-3:g-2:g>5?g-5:0:0;return(0,s.jsx)("div",{className:"grid lg:grid-cols-12",children:(0,s.jsxs)("nav",{"aria-label":(0,c.Z)("pagination",t),className:"lg:col-start-2 lg:justify-center lg:col-span-10 content-start flex custom-border-top mt-8 flex-wrap gap-2 font-bold text-base py-8 lg:pt-16 justify-between items-center",children:[g>1?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{"aria-label":(0,c.Z)("pagination-back",t),className:"",children:(0,s.jsxs)(r(),{className:"group relative",href:"".concat(x,"?").concat(h,"page=").concat(g-1),children:[(0,s.jsx)("span",{className:"sr-only",children:(0,c.Z)("pagination-back",t)}),(0,s.jsx)(o.Z,{bg:"border",reverse:!0})]})}),b>0&&(0,s.jsx)("div",{"aria-hidden":"true",className:"hidden md:block",children:(0,s.jsx)("a",{className:"border-black border hover:border-blue py-2 px-4 cursor-pointer rounded-sm",children:"..."})})]}):(0,s.jsxs)("div",{"aria-hidden":"true",className:"opacity-20",children:[(0,s.jsx)("span",{className:"sr-only",children:(0,c.Z)("pagination-back",t)}),(0,s.jsx)(o.Z,{bg:"border",reverse:!0})]}),l.slice(b,p).map(e=>(0,s.jsx)(s.Fragment,{children:e!==a?(0,s.jsx)("div",{"aria-label":"page ".concat(e),children:(0,s.jsx)(r(),{className:"border-black border hover:border-blue py-2 px-4 rounded-sm after:-z-10 hover:text-white text-black duration-200 after:bg-blue after:absolute relative after:w-full after:top-0 after:bottom-full after:left-0 hover:after:bottom-0 after:duration-300 block",href:"".concat(x,"?").concat(h,"page=").concat(e),children:e},e)}):(0,s.jsx)("div",{"aria-label":(0,c.Z)("current-page",t),children:(0,s.jsx)("a",{className:"border-blue bg-blue text-white border py-2.5 2xl:py-2 px-4 rounded-sm",children:e})})})),g<l.length?(0,s.jsxs)(s.Fragment,{children:[p<l.length&&(0,s.jsx)("div",{"aria-hidden":"true",className:" hidden md:block",children:(0,s.jsx)("a",{className:"border-black border hover:border-blue py-2 px-4 cursor-pointer rounded-sm",children:"..."})}),(0,s.jsx)("div",{className:"",children:(0,s.jsxs)(r(),{className:"group relative",href:"".concat(x,"?").concat(h,"page=").concat(g+1),children:[(0,s.jsx)("span",{className:"sr-only",children:(0,c.Z)("pagination-forward",t)}),(0,s.jsx)(o.Z,{bg:"border"})]})})]}):(0,s.jsxs)("div",{"aria-hidden":"true",className:"opacity-20",children:[(0,s.jsx)("span",{className:"sr-only",children:(0,c.Z)("pagination-forward",t)}),(0,s.jsx)(o.Z,{bg:"border"})]})]})})}},300:function(e,l,a){"use strict";a.d(l,{$:function(){return BlogCard},Z:function(){return SectionBlog}});var s=a(5893),t=a(9838),r=a(1911),n=a(899),i=a(6955);function TitleButton(e){let{locale:l,title:a,text:c=null,element:o,titleClass:d}=e;return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{className:"grid gap-6 lg:grid-cols-12 lg:gap-x-0",children:[(0,s.jsxs)("div",{className:"grid gap-4 md:gap-6 lg:col-span-6 lg:col-start-2",children:[(0,s.jsx)("h2",{className:d||"text-3xl md:text-4xl xl:text-6xl max-w-prose font-bold",children:a}),c&&(0,s.jsx)("h3",{className:"text-lg max-w-prose xl:text-xl",children:(0,i.NN)(c)})]}),(0,s.jsx)("div",{className:"lg:col-span-4 lg:flex lg:justify-end lg:items-start lg:translate-y-2 xl:translate-y-7",children:(0,s.jsx)(t.Z,{element:o,locale:l,label:a,className:"group",children:(0,s.jsx)(r.Z,{bg:"blue",label:(0,n.Z)("more",l)})})})]})})}var c=a(5689);function BlogCard(e){var l;let{item:a,locale:r,containerClasses:n="",itemClasses:o="",imgClasses:d="",n:x}=e,g=a?(0,i.mC)(null==a?void 0:null===(l=a.cover)||void 0===l?void 0:l.filename):"";return(0,s.jsx)("div",{className:n,children:(0,s.jsx)(t.Z,{className:"group",element:a,locale:r,label:a.subtitle,children:(0,s.jsxs)("div",{className:"relative ".concat(o),children:[a.cover&&(0,s.jsx)("div",{className:"mb-5 ".concat(d),children:(0,s.jsx)(c.E,{className:"rounded-3xl",data:a.cover.responsiveImage,alt:a.cover.responsiveImage.alt||g,title:a.cover.responsiveImage.title||g,layout:""})}),(0,s.jsxs)("div",{className:"basis-[60%]",children:[(0,s.jsx)("h2",{className:"text-lg text-black md:text-xl mb-4 duration-400 lg:mb-4 font-bold group-hover:underline-offset-4 group-hover:underline",children:a.title}),(0,s.jsxs)("div",{className:"flex gap-2 flex-wrap lg:gap-y-1 text-sm capitalize",children:[a.tags.length>0&&(0,s.jsx)("div",{children:a.tags[0].title}),a.date&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{children:"|"}),(0,s.jsx)("div",{children:(0,i.p6)(a.date,r)}
1)]})]})]})]})})},a.id)}function SectionBlog(e){let{page:l,locale:a,site:t,articles:r,titleBlog:n,titleBlogClass:i}=e;return(0,s.jsxs)("section",{className:"vertical-spaces container",children:[(0,s.jsx)(TitleButton,{title:n,text:"",element:t.articlesIndex,locale:a,titleClass:i}),(0,s.jsx)("div",{className:"py-6 lg:pb-24 pb-16 xl:py-0 xl:pb-12",children:(0,s.jsx)("div",{className:"xl:container",children:(0,s.jsxs)("div",{className:"space-y-16 lg:space-y-0 lg:grid lg:grid-cols-2 lg:gap-8 lg:mx-[calc(100%/12)]",children:[(0,s.jsx)(BlogCard,{item:r[0],locale:a,imgClasses:"lg:overflow-hidden lg:max-h-[330px] xl:max-h-[382px] 3xl:max-h-[490px]"}),(0,s.jsx)("div",{className:"space-y-16 lg:space-y-6 w-full lg:gap-8",children:r.map((e,l)=>{if(0!==l)return(0,s.jsx)(BlogCard,{item:e,locale:a,containerClasses:"",itemClasses:"lg:flex lg:gap-x-5",imgClasses:"mb-0 basis-[40%] flex-none"},e.id)})})]})})})]})}a(827)},5517:function(e,l,a){"use strict";a.d(l,{Z:function(){return BlogTmp}});var s=a(5893),t=a(827),r=a(300),n=a(9443),i=a(9490),c=a(9332),o=a(7294),d=a(8263),x=a(56),g=a(6548),m=a(5675),u=a.n(m),h=a(1664),p=a.n(h);let b={default:2,767:1};function BlogTmp(e){var l;let{locale:a,page:m,items:h,pagination:v}=e,f=(0,c.useRouter)(),[j,N]=(0,o.useState)(null),[w,y]=(0,o.useState)([]),k=h.length,Z=Array.from({length:Math.ceil(k/24)},(e,l)=>(l+1).toString());(0,o.useEffect)(()=>{let e="1",l=new URLSearchParams(window.location.search),a=l.get("page");a&&h[a]&&(e=a);let s=24*e,t=s-24;y(h.slice(t,s)),N(e)},[f,h]);let{scrollY:C}=(0,d.v)(),_=(0,x.H)(C,[0,500],[0,-60]);return(0,s.jsxs)("div",{className:"overflow-hidden",children:[(0,s.jsxs)("header",{className:"z-10 relative overflow-hidden bg-gradient-to-b from-violet/50 to-white",children:[(0,s.jsx)(g.E.div,{style:{x:_},className:"absolute inset-0 w-full h-full pointer-events-none",children:(0,s.jsx)("div",{className:"absolute w-[150%] xl:w-[110%] h-[60vh] top-[35%] left-1/2 -translate-x-1/2",children:(0,s.jsx)(u(),{src:"/icons/stroke1Violet.svg",alt:"stroke1Violet",layout:"fill",objectFit:"cover",className:"w-full h-full"})})}),(0,s.jsx)("div",{className:"relative w-full h-[100vh] max-h-full z-20",children:(0,s.jsx)("div",{className:"h-[60%] w-full absolute z-20 flex flex-col justify-center items-center",children:(0,s.jsxs)(g.E.div,{className:"container px-8 lg:px-10 text-center space-y-4 xl:space-y-6",initial:{opacity:0}
1,animate:{opacity:1},transition:{duration:.5},children:[(0,s.jsx)("div",{className:"uppercase text-center font-bold tracking-wider",children:"Articoli"}),(0,s.jsx)("h1",{className:"xl:text-5xl text-black md:text-4xl font-bold max-w-prose lg:block lg:pr-0 z-20 text-2xl",children:m.title}),m.abstract&&(0,s.jsx)("h2",{className:"text-lg max-w-prose lg:block lg:pr-0 z-20 xl:text-xl mx-auto",children:renderHTML(m.abstract)}),684735==m.id&&(0,s.jsxs)("div",{className:"pt-4 md:flex md:items-center justify-center md:gap-8",children:[(0,s.jsx)("div",{className:"inline-block relative custom-select-contain",children:(0,s.jsxs)("select",{value:filter,onChange:handleFilterChange,className:"border border-black/10 p-2 appearance-none inline-block w-auto cursor-pointer px-6 pr-12 rounded-[24px] bg-white/80 backdrop-blur-sm uppercase font-bold text-sm",children:[(0,s.jsx)("option",{value:"",children:"Filtra i progetti per categoria"}),uniqueCategories.map(e=>(0,s.jsx)("option",{value:e.slug,children:e.title},e.id))]})}),(0,s.jsx)(p(),{className:"hidden md:block underline-offset-4 hover:underline rounded-[24px] bg-white/80 backdrop-blur-sm p-2 px-6 uppercase font-bold text-sm",title:"Cacella i filtri",href:"/portfolio",children:"Vedi Tutti"})]})]})})})]}),(0,s.jsxs)("div",{className:"container z-10 relative pt-8 pb-10 lg:pb-24 translate-y-[-40vh] mb-[-40vh]",children:[(0,s.jsx)("div",{className:"lg:grid lg:grid-cols-12",children:(0,s.jsx)("div",{className:"lg:col-span-10 lg:col-start-2",children:(0,s.jsx)(t.Z,{breakpointCols:b,className:"my-masonry-grid",columnClassName:"my-masonry-grid_column",children:j&&w.map((e,l)=>(0,s.jsx)(r.$,{item:e,n:l,locale:a,itemClasses:"".concat(e.previewLarge?"":"flex gap-4"),imgClasses:"".concat(e.previewLarge?"":"mb-0 basis-[40%] flex-none")},l))})})}),v&&Object.keys(h).length>1&&(0,s.jsx)(i.Z,{pages:Z,currentPage:j,locale:a})]}),(null===(l=m.blocks)||void 0===l?void 0:l.length)>0&&(0,s.jsx)(n.Z,{record:m.blocks[0],locale:a},m.blocks[0].id)]})}},5372:function(e,l,a){"use strict";a.r(l),a.d(l,{__N_SSG:function(){return n},default:function(){return ArticlesIndex}});var s=a(5893),t=a(6130),r=a(5517),n=!0;function ArticlesIndex(e){let{locale:l,site:a,page:n,items:i}=e;return(0,s.jsx)(t.Z,{site:a,locale:l,page:n,children:(0,s.jsx)(r.Z,{locale:l,items:i,page:n,pagination:!0})})}}},function(e){e.O(0,[120,9,536,675,751,130,353,443,774,888,179],function(){return e(e.s=7286)}),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.