1 line
5.4 KiB
JavaScript
1 line
5.4 KiB
JavaScript
try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="725622f5-b39d-447b-838a-e3dc22131da5",e._sentryDebugIdIdentifier="sentry-dbid-725622f5-b39d-447b-838a-e3dc22131da5")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3831],{29706:(e,t,a)=>{"use strict";a.d(t,{default:()=>i});var s=a(95155),n=a(66766),r=a(12115);function i(e){let{src:t,alt:a="Image",placeholderText:i="Image Coming Soon",placeholderSize:o,...l}=e,[c,d]=(0,r.useState)(!1),{width:m,height:u,fill:x,sizes:h}=l,p=(0,r.useMemo)(()=>{let e="number"==typeof m?m:(null==o?void 0:o.width)||1200,t="number"==typeof u?u:(null==o?void 0:o.height)||(x?675:800),a=encodeURIComponent(i);return"https://placehold.co/".concat(e,"x").concat(t,"/111113/CCCCCC.png?text=").concat(a)},[m,u,x,o,i]),f=!t||""===t.trim()||c?p:t,g="string"==typeof f&&f.includes("placehold.co"),v="string"==typeof f&&f.startsWith("/images/");return(0,s.jsx)(n.default,{...l,src:f,alt:a,sizes:null!=h?h:x?"(max-width: 640px) 100vw, (max-width: 1024px) 50vw, 33vw":void 0,unoptimized:g||v,onError:()=>d(!0)})}},35518:(e,t,a)=>{Promise.resolve().then(a.t.bind(a,6874,23)),Promise.resolve().then(a.bind(a,60930)),Promise.resolve().then(a.bind(a,64672)),Promise.resolve().then(a.bind(a,29706))},60930:(e,t,a)=>{"use strict";a.d(t,{BlogCard:()=>l});var s=a(95155),n=a(6874),r=a.n(n),i=a(29706),o=a(1633);function l(e){let{post:t,delay:a=0}=e;return(0,s.jsx)(o.P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:a},whileHover:{y:-4},className:"group",children:(0,s.jsx)(r(),{href:"/blog/".concat(t.id),className:"block h-full",children:(0,s.jsxs)("article",{className:"card h-full transition-all duration-300 hover:border-surface-400 hover:shadow-lg hover:shadow-surface-900/20",children:[(0,s.jsxs)("div",{className:"aspect-photo relative overflow-hidden rounded-lg mb-4",children:[(0,s.jsx)(i.default,{src:t.featuredImage||"",alt:t.title,fill:!0,className:"object-cover transition-transform duration-700 group-hover:scale-105",placeholderText:"Blog Cover"}),(0,s.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-surface-900/60 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-300"})]}),(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 text-xs text-text-muted",children:[(0,s.jsx)("time",{className:"font-medium",children:new Date(t.date).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})}),(0,s.jsx)("span",{children:"•"}),(0,s.jsx)("span",{className:"font-medium",children:t.author})]}),(0,s.jsx)("h3",{className:"text-xl font-semibold text-white group-hover:text-accent transition-colors duration-300 line-clamp-2",children:t.title}),(0,s.jsx)("p",{className:"text-text-secondary text-sm line-clamp-3 leading-relaxed",children:t.excerpt}),(0,s.jsx)("div",{className:"flex flex-wrap gap-1.5",children:t.tags.slice(0,3).map(e=>(0,s.jsx)("span",{className:"inline-flex items-center px-2 py-1 text-xs font-medium rounded-full bg-surface-600/50 text-text-muted border border-surface-500 group-hover:border-accent/30 transition-colors",children:e},e))})]})]})})})}},64672:(e,t,a)=>{"use strict";a.d(t,{default:()=>l});var s=a(95155),n=a(6874),r=a.n(n),i=a(29706),o=a(1633);function l(e){var t;let{post:a}=e;return a?(0,s.jsx)(o.P.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8,ease:"easeOut"},className:"mb-16",children:(0,s.jsx)(r(),{href:"/blog/".concat(a.slug),className:"group",children:(0,s.jsxs)("article",{className:"grid md:grid-cols-2 gap-8 items-center",children:[(0,s.jsxs)("div",{className:"relative aspect-[16/10] overflow-hidden rounded-lg bg-surface-700",children:[(0,s.jsx)(i.default,{src:a.featuredImage||"",alt:a.title,fill:!0,className:"object-cover group-hover:scale-105 transition-transform duration-700",placeholderText:"Featured Post"}),(0,s.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/60 via-transparent to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-500"})]}),(0,s.jsxs)("div",{className:"py-4",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3 text-xs text-text-muted mb-3",children:[(0,s.jsx)("span",{className:"text-accent font-medium",children:"LATEST POST"}),(0,s.jsx)("span",{className:"opacity-50",children:"•"}),(0,s.jsx)("time",{children:a.publishedAt?new Date(a.publishedAt).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"}):"Unknown date"})]}),(0,s.jsx)("h2",{className:"text-3xl font-medium text-white mb-3 group-hover:text-accent transition-colors",children:a.title}),(0,s.jsx)("p",{className:"text-text-secondary mb-4 leading-relaxed",children:a.excerpt}),(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)("span",{className:"text-sm text-text-muted",children:(null==(t=a.author)?void 0:t.name)||"Unknown Author"}),(0,s.jsxs)("span",{className:"text-sm text-accent group-hover:translate-x-1 transition-transform inline-flex items-center gap-1",children:["Read article",(0,s.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]})]})]})]})})}):null}a(12115)}},e=>{e.O(0,[6874,6766,1633,4850,8441,2691,7358],()=>e(e.s=35518)),_N_E=e.O()}]); |