5 lines
9.7 KiB
JavaScript
5 lines
9.7 KiB
JavaScript
;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="f66c6acb-c3fb-7af7-1ced-414a0f535649")}catch(e){}}();
|
|
module.exports=[193695,(a,b,c)=>{b.exports=a.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},994367,a=>{a.n(a.i(216893))},298936,a=>{a.n(a.i(55385))},711681,a=>{a.n(a.i(539051))},153884,a=>{a.n(a.i(932922))},727894,a=>{a.n(a.i(787368))},530419,a=>{a.n(a.i(627641))},999040,a=>{a.n(a.i(144505))},727501,a=>{a.n(a.i(825138))},738690,a=>{a.n(a.i(868139))},915229,a=>{"use strict";a.s(["BlogPaginationKeyboardObserver",()=>b]);let b=(0,a.i(860211).registerClientReference)(function(){throw Error("Attempted to call BlogPaginationKeyboardObserver() from the server but BlogPaginationKeyboardObserver is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/blog/BlogPaginationKeyboardObserver.tsx <module evaluation>","BlogPaginationKeyboardObserver")},43482,a=>{"use strict";a.s(["BlogPaginationKeyboardObserver",()=>b]);let b=(0,a.i(860211).registerClientReference)(function(){throw Error("Attempted to call BlogPaginationKeyboardObserver() from the server but BlogPaginationKeyboardObserver is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/blog/BlogPaginationKeyboardObserver.tsx","BlogPaginationKeyboardObserver")},223509,a=>{"use strict";a.i(915229);var b=a.i(43482);a.n(b)},469984,a=>a.a(async(b,c)=>{try{var d=a.i(998511),e=a.i(892858),f=a.i(122490),g=a.i(709144);a.i(280896);var h=a.i(14826),i=a.i(873035),j=a.i(277870),k=a.i(291511),l=a.i(14906),m=a.i(401719),n=a.i(473270),o=a.i(183751),p=a.i(838742),q=a.i(630035),r=a.i(223509),s=b([g]);async function t({params:a}){let{locale:b}=await a,c=await (0,o.getTranslations)({locale:b,namespace:"Blog.meta"});return{title:c("title"),description:c("description"),alternates:{canonical:`${q.SITE_URL}/${b}/blog`,languages:{de:`${q.SITE_URL}/de/blog`,en:`${q.SITE_URL}/en/blog`,"x-default":`${q.SITE_URL}/en/blog`}},openGraph:{title:`${c("title")} | E-TIB`,description:c("description"),url:`${q.SITE_URL}/${b}/blog`},twitter:{card:"summary_large_image",title:`${c("title")} | E-TIB`,description:c("description")}}}async function u({params:a}){let{locale:b}=await a;(0,p.setRequestLocale)(b);let c=await (0,o.getTranslations)("Blog"),q=[...await (0,g.getAllPosts)(b)].sort((a,b)=>new Date(b.frontmatter.date).getTime()-new Date(a.frontmatter.date).getTime()),s=q[0],t=q.slice(1);return(0,d.jsxs)("div",{className:"bg-neutral-light min-h-screen",children:[(0,d.jsx)(n.default,{children:(0,d.jsxs)("article",{className:"relative h-[50vh] md:h-[70vh] min-h-[400px] md:min-h-[600px] flex items-center overflow-hidden bg-primary-dark",children:[s&&s.frontmatter.featuredImage&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(f.default,{src:s.frontmatter.featuredImage.split("?")[0],alt:s.frontmatter.title,fill:!0,className:"absolute inset-0 w-full h-full object-cover opacity-40 md:opacity-60",style:{objectPosition:`${s.frontmatter.focalX??50}% ${s.frontmatter.focalY??50}%`},sizes:"100vw",priority:!0}),(0,d.jsx)("div",{className:"absolute inset-0 bg-neutral-dark/20"})]}),(0,d.jsx)(i.Container,{className:"relative z-10",children:(0,d.jsxs)("div",{className:"max-w-4xl",children:[(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-3 mb-4 md:mb-6",children:[(0,d.jsx)(l.Badge,{variant:"saturated",children:c("featuredPost")}),s&&(new Date(s.frontmatter.date)>new Date||!1===s.frontmatter.public)&&(0,d.jsx)("span",{className:"px-2 py-0.5 border border-white/40 text-white/80 rounded uppercase tracking-widest text-[10px] md:text-xs font-bold",children:"Draft Preview"})]}),s&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(j.Heading,{level:1,className:"text-white mb-4 md:mb-8",children:s.frontmatter.title}),(0,d.jsx)("p",{className:"text-base md:text-xl text-white/80 mb-6 md:mb-10 line-clamp-3 md:line-clamp-4 max-w-2xl",children:s.frontmatter.excerpt}),(0,d.jsxs)(m.Button,{href:`/${b}/blog/${s.slug}`,variant:"accent",size:"lg",className:"group w-full md:w-auto md:h-16 md:px-10 md:text-xl",children:[c("readFullArticle"),(0,d.jsx)("span",{className:"ml-3 transition-transform group-hover:translate-x-2",children:"→"})]})]})]})})]})}),(0,d.jsx)(h.Section,{className:"bg-neutral-light py-12 md:py-28",children:(0,d.jsxs)(i.Container,{children:[(0,d.jsx)(n.default,{children:(0,d.jsxs)("div",{className:"flex flex-col md:flex-row items-start md:items-end justify-between mb-8 md:mb-16 gap-4 md:gap-6",children:[(0,d.jsx)(j.Heading,{level:2,subtitle:c("latestNews"),className:"mb-0",children:c("allArticles")}),(0,d.jsxs)("div",{className:"flex flex-wrap gap-2 md:gap-4",children:[(0,d.jsx)(l.Badge,{variant:"primary",className:"cursor-pointer hover:bg-primary hover:text-white transition-colors touch-target px-3 md:px-4",children:c("categories.all")}),(0,d.jsx)(l.Badge,{variant:"neutral",className:"cursor-pointer hover:bg-primary hover:text-white transition-colors touch-target px-3 md:px-4",children:c("categories.industry")}),(0,d.jsx)(l.Badge,{variant:"neutral",className:"cursor-pointer hover:bg-primary hover:text-white transition-colors touch-target px-3 md:px-4",children:c("categories.technical")}),(0,d.jsx)(l.Badge,{variant:"neutral",className:"cursor-pointer hover:bg-primary hover:text-white transition-colors touch-target px-3 md:px-4",children:c("categories.sustainability")})]})]})}),(0,d.jsx)("div",{className:"grid grid-cols-1 gap-12",children:t.map((a,g)=>(0,d.jsx)(n.default,{delay:50*g,children:(0,d.jsx)(e.default,{href:`/${b}/blog/${a.slug}`,className:"group block focus:outline-none",children:(0,d.jsxs)(k.Card,{tag:"article",className:"relative flex flex-col justify-end border-none shadow-lg hover:shadow-2xl transition-all duration-500 rounded-3xl overflow-hidden min-h-[450px] md:min-h-[500px]",children:[a.frontmatter.featuredImage&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(f.default,{src:a.frontmatter.featuredImage.split("?")[0],alt:a.frontmatter.title,fill:!0,className:"absolute inset-0 w-full h-full object-cover transition-transform duration-1000 group-hover:scale-105",style:{objectPosition:`${a.frontmatter.focalX??50}% ${a.frontmatter.focalY??50}%`},sizes:"(max-width: 768px) 100vw, 100vw",loading:"lazy"}),(0,d.jsx)("div",{className:"absolute inset-0 bg-neutral-dark/10 group-hover:bg-neutral-dark/5 transition-colors duration-500"})]}),(0,d.jsxs)("div",{className:"relative z-10 w-full p-6 md:p-10 bg-gradient-to-t from-neutral-dark/95 via-neutral-dark/70 to-transparent flex flex-col pt-40",children:[(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-4 mb-4",children:[a.frontmatter.category&&(0,d.jsx)(l.Badge,{variant:"accent",className:"shadow-md",children:a.frontmatter.category}),(new Date(a.frontmatter.date)>new Date||!1===a.frontmatter.public)&&(0,d.jsx)("span",{className:"px-2 py-0.5 border border-white/40 text-white/90 rounded uppercase tracking-widest text-[10px] md:text-xs font-bold bg-neutral-dark/40 shadow-sm",children:"Draft Preview"})]}),(0,d.jsx)("div",{className:"flex items-center gap-3 text-xs md:text-sm font-bold text-white/80 mb-3 tracking-widest uppercase",children:(0,d.jsx)("time",{dateTime:a.frontmatter.date,suppressHydrationWarning:!0,children:new Date(a.frontmatter.date).toLocaleDateString(b||"de",{year:"numeric",month:"long",day:"numeric"})})}),(0,d.jsx)("h3",{className:"text-xl md:text-3xl font-bold text-white mb-4 group-hover:text-accent transition-colors drop-shadow-md leading-tight max-w-4xl",children:a.frontmatter.title}),a.frontmatter.excerpt&&(0,d.jsx)("p",{className:"text-white/90 text-sm md:text-lg line-clamp-3 mb-6 max-w-4xl drop-shadow-sm leading-relaxed",children:a.frontmatter.excerpt}),(0,d.jsxs)("div",{className:"mt-auto flex items-center justify-between border-t border-white/20 pt-6",children:[(0,d.jsx)("span",{className:"text-accent text-sm md:text-base font-extrabold group-hover:text-white transition-colors",children:c("readMore")}),(0,d.jsx)("div",{className:"w-10 h-10 rounded-full bg-white/10 flex items-center justify-center text-accent group-hover:bg-accent group-hover:text-primary-dark transition-all duration-300 backdrop-blur-sm border border-white/20",children:(0,d.jsx)("svg",{className:"w-5 h-5 transition-transform group-hover:translate-x-1",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M17 8l4 4m0 0l-4 4m4-4H3"})})})]})]})]})})},a.slug))}),(0,d.jsxs)("div",{className:"mt-12 md:mt-24 flex justify-center gap-2 md:gap-4",children:[(0,d.jsx)(m.Button,{href:"#",variant:"outline",size:"sm",className:"md:h-11 md:px-6 md:text-base pointer-events-none opacity-50","aria-disabled":"true","aria-keyshortcuts":"ArrowLeft",tabIndex:-1,children:c("prev")}),(0,d.jsx)(m.Button,{href:`/${b}/blog?page=1`,variant:"primary",size:"sm",className:"md:h-11 md:px-6 md:text-base","aria-current":"page",children:"1"}),(0,d.jsx)(m.Button,{href:`/${b}/blog?page=2`,variant:"outline",size:"sm",className:"md:h-11 md:px-6 md:text-base",children:"2"}),(0,d.jsx)(m.Button,{href:`/${b}/blog?page=2`,variant:"outline",size:"sm",className:"md:h-11 md:px-6 md:text-base","aria-keyshortcuts":"ArrowRight",children:c("next")})]}),(0,d.jsx)(r.BlogPaginationKeyboardObserver,{currentPage:1,totalPages:2,locale:b})]})})]})}[g]=s.then?(await s)():s,a.s(["default",()=>u,"generateMetadata",()=>t]),c()}catch(a){c(a)}},!1)];
|
|
|
|
//# debugId=f66c6acb-c3fb-7af7-1ced-414a0f535649
|
|
//# sourceMappingURL=%5Broot-of-the-server%5D__14867916._.js.map
|