PageSourceSearch

https://stafholt-reimagined-site.lovable.app/assets/offers._slug-CJFyOjn9.js

js stafholt-reimagined-site.lovable.app collected 2026-10-03 03:36:24 UTC 3,500 bytes, 2 lines download raw bytes

1import{y as n,u as o,j as e,L as c}from"./index-dnYTdE-t.js";import{A as m}from"./arrow-left-D99ey-1d.js";import{C as x}from"./check-CcbzTf0S.js";import{A as d}from"./arrow-right-D2NYb14U.js";function l(s){if(!s)return;const t=1100,i=750,a=Math.round((window.screen.width-t)/2),r=Math.round((window.screen.height-i)/2);window.open(s,"hotelstafholt-booking",`width=${t},height=${i},left=${a},top=${r},resizable=yes,scrollbars=yes,toolbar=no,menubar=no,location=no,status=no`)}function u(){const{offer:s}=n.useLoaderData(),t=o(),i=a=>t(a.en,a.is);return e.jsxs(e.Fragment,{children:[e.jsxs("section",{className:"relative min-h-[85vh] w-full overflow-hidden bg-ink text-cream",children:[e.jsx("img",{src:s.img,alt:i(s.title),className:"absolute inset-0 h-full w-full object-cover"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-ink/85 via-ink/50 to-transparent"}),e.jsx("div",{className:"relative mx-auto flex min-h-[85vh] max-w-7xl items-center px-6 pt-32 pb-20 lg:px-10",children:e.jsxs("div",{className:"max-w-xl",children:[e.jsxs(c,{to:"/offers",className:"inline-flex items-center gap-2 text-xs uppercase tracking-[0.22em] text-cream/70 hover:text-cream",children:[e.jsx(m,{size:12})," ",t("All offers","Öll tilboð")]}),e.jsx("h1",{className:"mt-8 font-display text-5xl italic md:text-7xl",children:i(s.title)}),e.jsx("p",{className:"mt-8 text-base leading-relaxed text-cream/85 md:text-lg",children:i(s.intro)}),e.jsx("p",{className:"mt-10 text-xs uppercase tracking-[0.28em] text-cream/80",children:i(s.price)}),s.bookingUrl&&e.jsx("button",{onClick:()=>l(s.bookingUrl),className:"mt-8 inline-flex cursor-pointer items-center justify-center gap-2 bg-ember px-10 py-4 text-xs uppercase tracking-[0.28em] text-cream transition-colors hover:bg-ember/90",children:t("Book stay & offer","Bóka mat & gistingu")})]})})]}),e.jsx("section",{className:"bg-background",children:e.jsxs("div",{className:"mx-auto max-w-6xl px-6 py-24 lg:px-10 lg:py-32",children:[e.jsxs("div",{className:"grid gap-16 md:grid-cols-2 md:gap-20",children:[e.jsxs("div",{children:[e.jsx("p",{className:"eyebrow",children:t("Validity","Gildistími")}),e.jsx("p",{className:"mt-4 font-display text-2xl leading-snug md:text-3xl",children:i(s.validity)}),s.note&&e.jsx("div",{className:"mt-8 space-y-2",children:i(s.note).split(`
2`).map(a=>a.trim()).filter(Boolean).map((a,r)=>e.jsx("p",{className:"text-xs leading-relaxed text-muted-foreground",children:a},r))})]}),e.jsxs("div",{children:[e.jsx("p",{className:"eyebrow",children:t("Included","Innifalið")}),e.jsx("ul",{className:"mt-4 divide-y divide-border",children:s.includes.map((a,r)=>e.jsxs("li",{className:"flex items-start gap-3 py-4 text-sm",children:[e.jsx(x,{size:16,className:"mt-0.5 flex-shrink-0 text-ember"}),e.jsx("span",{children:i(a)})]},r))})]})]}),s.slug!=="christmas-buffet"&&s.slug!=="gift-card"&&e.jsxs("div",{className:"mt-20 flex flex-wrap items-center justify-between gap-6 border-t border-border pt-12",children:[e.jsxs("div",{children:[e.jsx("p",{className:"eyebrow",children:t("Price","Verð")}),e.jsx("p",{className:"mt-2 font-display text-3xl md:text-4xl",children:i(s.price)})]}),e.jsxs("div",{className:"flex flex-wrap gap-4",children:[e.jsx("span",{className:"btn-ghost",children:t("Book now","Bóka núna")}),s.bookingUrl&&e.jsxs("button",{onClick:()=>l(s.bookingUrl),className:"btn-primary cursor-pointer",children:[t("Book this offer","Bóka þetta tilboð")," ",e.jsx(d,{size:14})]})]})]})]})})]})}export{u as component};

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.