@neowhale/storefront 0.2.41 → 0.2.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2299,21 +2299,20 @@ function CollageHeroSection({ section, theme, tracking, onEvent }) {
2299
2299
  const c = section.content;
2300
2300
  const images = c.images || [];
2301
2301
  if (images.length === 0) return null;
2302
- const opacity = c.overlay_opacity ?? 0.45;
2303
- return /* @__PURE__ */ jsx("div", { style: { width: "100%", overflow: "hidden" }, children: /* @__PURE__ */ jsx("div", { style: {
2304
- display: "grid",
2305
- gridTemplateColumns: images.length >= 4 ? "1fr 1fr 1fr" : "1fr 1fr",
2306
- gridTemplateRows: images.length >= 4 ? "auto auto" : "auto",
2307
- gap: "3px"
2308
- }, children: images.slice(0, 6).map((img, i) => /* @__PURE__ */ jsxs("div", { style: {
2309
- position: "relative",
2310
- gridColumn: i === 0 && images.length >= 4 ? "1 / 3" : void 0,
2311
- gridRow: i === 0 && images.length >= 4 ? "1 / 3" : void 0,
2312
- aspectRatio: i === 0 ? "3/4" : images.length >= 4 && i <= 2 ? "1" : "3/4",
2313
- overflow: "hidden",
2314
- background: theme.surface
2315
- }, children: [
2316
- /* @__PURE__ */ jsx(
2302
+ c.overlay_opacity ?? 0.45;
2303
+ const count = Math.min(images.length, 5);
2304
+ return /* @__PURE__ */ jsxs("div", { style: { width: "100%", overflow: "hidden", position: "relative" }, children: [
2305
+ /* @__PURE__ */ jsx("div", { style: {
2306
+ display: "grid",
2307
+ gridTemplateColumns: count >= 4 ? "repeat(4, 1fr)" : "repeat(2, 1fr)",
2308
+ gridTemplateRows: count >= 4 ? "minmax(0, 28vh) minmax(0, 28vh)" : "minmax(0, 50vh)",
2309
+ gap: "2px"
2310
+ }, children: images.slice(0, count).map((img, i) => /* @__PURE__ */ jsx("div", { style: {
2311
+ gridColumn: i === 0 && count >= 4 ? "span 2" : void 0,
2312
+ gridRow: i === 0 && count >= 4 ? "span 2" : void 0,
2313
+ overflow: "hidden",
2314
+ background: theme.surface
2315
+ }, children: /* @__PURE__ */ jsx(
2317
2316
  "img",
2318
2317
  {
2319
2318
  src: img.url,
@@ -2321,41 +2320,40 @@ function CollageHeroSection({ section, theme, tracking, onEvent }) {
2321
2320
  loading: i < 3 ? "eager" : "lazy",
2322
2321
  style: { width: "100%", height: "100%", objectFit: "cover", display: "block" }
2323
2322
  }
2324
- ),
2325
- i === 0 && /* @__PURE__ */ jsxs(Fragment, { children: [
2326
- /* @__PURE__ */ jsx("div", { style: {
2327
- position: "absolute",
2328
- inset: 0,
2329
- background: `linear-gradient(to top, rgba(0,0,0,${opacity + 0.3}), rgba(0,0,0,${opacity * 0.3}))`
2330
- } }),
2331
- /* @__PURE__ */ jsxs("div", { style: {
2332
- position: "absolute",
2333
- bottom: 0,
2334
- left: 0,
2335
- right: 0,
2336
- padding: "clamp(1.5rem, 5vw, 3rem)",
2337
- zIndex: 1
2338
- }, children: [
2339
- c.title && /* @__PURE__ */ jsx("h1", { style: {
2340
- fontSize: "clamp(2rem, 8vw, 3.5rem)",
2341
- fontWeight: 300,
2342
- fontFamily: theme.fontDisplay || "inherit",
2343
- margin: 0,
2344
- lineHeight: 1.1,
2345
- letterSpacing: "-0.03em",
2346
- color: theme.fg
2347
- }, children: /* @__PURE__ */ jsx(AnimatedText, { text: c.title }) }),
2348
- c.subtitle && /* @__PURE__ */ jsx("p", { style: {
2349
- fontSize: "clamp(0.7rem, 2vw, 0.95rem)",
2350
- color: `${theme.fg}CC`,
2351
- margin: "0.75rem 0 0",
2352
- letterSpacing: "0.1em",
2353
- textTransform: "uppercase",
2354
- fontWeight: 400
2355
- }, children: c.subtitle })
2356
- ] })
2323
+ ) }, i)) }),
2324
+ /* @__PURE__ */ jsx("div", { style: {
2325
+ position: "absolute",
2326
+ inset: 0,
2327
+ background: "linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 40%, transparent 60%)",
2328
+ pointerEvents: "none"
2329
+ } }),
2330
+ /* @__PURE__ */ jsxs("div", { style: {
2331
+ position: "absolute",
2332
+ bottom: 0,
2333
+ left: 0,
2334
+ right: 0,
2335
+ padding: "clamp(1.25rem, 4vw, 2.5rem)",
2336
+ zIndex: 1
2337
+ }, children: [
2338
+ c.title && /* @__PURE__ */ jsx("h1", { style: {
2339
+ fontSize: "clamp(1.75rem, 7vw, 3rem)",
2340
+ fontWeight: 300,
2341
+ fontFamily: theme.fontDisplay || "inherit",
2342
+ margin: 0,
2343
+ lineHeight: 1.1,
2344
+ letterSpacing: "-0.03em",
2345
+ color: theme.fg
2346
+ }, children: /* @__PURE__ */ jsx(AnimatedText, { text: c.title }) }),
2347
+ c.subtitle && /* @__PURE__ */ jsx("p", { style: {
2348
+ fontSize: "clamp(0.65rem, 1.8vw, 0.85rem)",
2349
+ color: `${theme.fg}BB`,
2350
+ margin: "0.5rem 0 0",
2351
+ letterSpacing: "0.12em",
2352
+ textTransform: "uppercase",
2353
+ fontWeight: 400
2354
+ }, children: c.subtitle })
2357
2355
  ] })
2358
- ] }, i)) }) });
2356
+ ] });
2359
2357
  }
2360
2358
  function GallerySection({ section, theme }) {
2361
2359
  const { images } = section.content;