@neowhale/storefront 0.2.41 → 0.2.43
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.
- package/dist/landing.global.js +47 -49
- package/dist/react/index.cjs +47 -49
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.js +47 -49
- package/dist/react/index.js.map +1 -1
- package/package.json +1 -1
package/dist/react/index.js
CHANGED
|
@@ -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
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
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
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
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
|
-
] }
|
|
2356
|
+
] });
|
|
2359
2357
|
}
|
|
2360
2358
|
function GallerySection({ section, theme }) {
|
|
2361
2359
|
const { images } = section.content;
|