@stackshift-ui/header 6.0.6 → 6.0.7
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/chunk-35OWV2LA.mjs +89 -0
- package/dist/chunk-3SLHYG4E.mjs +33 -0
- package/dist/chunk-534QIB7N.mjs +65 -0
- package/dist/chunk-6DDP6YE5.mjs +54 -0
- package/dist/chunk-OIGPQF35.mjs +139 -0
- package/dist/chunk-QKD3MWOT.mjs +115 -0
- package/dist/header.js +572 -1
- package/dist/header.mjs +6 -1
- package/dist/header_a.js +174 -1
- package/dist/header_a.mjs +7 -1
- package/dist/header_b.js +150 -1
- package/dist/header_b.mjs +7 -1
- package/dist/header_c.js +90 -1
- package/dist/header_c.mjs +7 -1
- package/dist/header_d.js +124 -1
- package/dist/header_d.mjs +7 -1
- package/dist/header_e.js +89 -1
- package/dist/header_e.mjs +7 -1
- package/dist/index.js +591 -1
- package/dist/index.mjs +27 -1
- package/dist/types.js +18 -1
- package/package.json +6 -6
package/dist/header_a.js
CHANGED
|
@@ -1 +1,174 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
30
|
+
// src/header_a.tsx
|
|
31
|
+
var header_a_exports = {};
|
|
32
|
+
__export(header_a_exports, {
|
|
33
|
+
Header_A: () => Header_A,
|
|
34
|
+
default: () => Header_A
|
|
35
|
+
});
|
|
36
|
+
module.exports = __toCommonJS(header_a_exports);
|
|
37
|
+
var import_button = require("@stackshift-ui/button");
|
|
38
|
+
var import_container = require("@stackshift-ui/container");
|
|
39
|
+
var import_flex = require("@stackshift-ui/flex");
|
|
40
|
+
var import_heading = require("@stackshift-ui/heading");
|
|
41
|
+
var import_image = require("@stackshift-ui/image");
|
|
42
|
+
var import_section = require("@stackshift-ui/section");
|
|
43
|
+
var import_text = require("@stackshift-ui/text");
|
|
44
|
+
var import_react = __toESM(require("react"));
|
|
45
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
46
|
+
function Header_A({
|
|
47
|
+
mainImage,
|
|
48
|
+
title,
|
|
49
|
+
description,
|
|
50
|
+
primaryButton,
|
|
51
|
+
secondaryButton
|
|
52
|
+
}) {
|
|
53
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_section.Section, { className: "py-20 bg-background", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_container.Container, { maxWidth: 1280, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_flex.Flex, { align: "center", gap: 4, className: "flex-col lg:flex-row", children: [
|
|
54
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_flex.Flex, { align: "center", direction: "col", className: "w-full basis-1/2", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "max-w-md mx-auto text-center lg:text-left", children: [
|
|
55
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TitleAndDescription, { title, description }),
|
|
56
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Buttons, { primaryButton, secondaryButton })
|
|
57
|
+
] }) }),
|
|
58
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(MainImage, { mainImage })
|
|
59
|
+
] }) }) });
|
|
60
|
+
}
|
|
61
|
+
function TitleAndDescription({ title, description }) {
|
|
62
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react.default.Fragment, { children: [
|
|
63
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_heading.Heading, { fontSize: "3xl", className: "mb-3", children: title }),
|
|
64
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_text.Text, { muted: true, className: "my-6", children: description })
|
|
65
|
+
] });
|
|
66
|
+
}
|
|
67
|
+
function Buttons({
|
|
68
|
+
primaryButton,
|
|
69
|
+
secondaryButton
|
|
70
|
+
}) {
|
|
71
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
72
|
+
import_flex.Flex,
|
|
73
|
+
{
|
|
74
|
+
align: "center",
|
|
75
|
+
justify: "center",
|
|
76
|
+
gap: 2,
|
|
77
|
+
direction: "col",
|
|
78
|
+
className: "lg:justify-start md:flex-row",
|
|
79
|
+
children: [
|
|
80
|
+
(primaryButton == null ? void 0 : primaryButton.label) && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_button.Button, { as: "link", link: primaryButton, ariaLabel: primaryButton == null ? void 0 : primaryButton.label, children: primaryButton == null ? void 0 : primaryButton.label }),
|
|
81
|
+
(secondaryButton == null ? void 0 : secondaryButton.label) && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
82
|
+
import_button.Button,
|
|
83
|
+
{
|
|
84
|
+
as: "link",
|
|
85
|
+
link: secondaryButton,
|
|
86
|
+
className: "bg-secondary hover:bg-secondary/50 inline-block rounded-global font-bold transition duration-200 px-3 py-4",
|
|
87
|
+
ariaLabel: secondaryButton == null ? void 0 : secondaryButton.label,
|
|
88
|
+
children: secondaryButton == null ? void 0 : secondaryButton.label
|
|
89
|
+
}
|
|
90
|
+
)
|
|
91
|
+
]
|
|
92
|
+
}
|
|
93
|
+
);
|
|
94
|
+
}
|
|
95
|
+
function MainImage({ mainImage }) {
|
|
96
|
+
var _a;
|
|
97
|
+
if (!(mainImage == null ? void 0 : mainImage.image)) return null;
|
|
98
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "relative w-full max-w-md", children: [
|
|
99
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
100
|
+
import_image.Image,
|
|
101
|
+
{
|
|
102
|
+
className: "overflow-hidden rounded-md object-cover md:rounded-br-none lg:h-[448px] relative z-10",
|
|
103
|
+
src: `${mainImage.image}`,
|
|
104
|
+
sizes: "(min-width: 520px) 448px, 90vw",
|
|
105
|
+
width: 448,
|
|
106
|
+
height: 448,
|
|
107
|
+
alt: (_a = mainImage.alt) != null ? _a : "header-main-image"
|
|
108
|
+
}
|
|
109
|
+
),
|
|
110
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(DecorativeImages, {})
|
|
111
|
+
] });
|
|
112
|
+
}
|
|
113
|
+
function DecorativeImages() {
|
|
114
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
115
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
116
|
+
ImageElement,
|
|
117
|
+
{
|
|
118
|
+
src: "/assets/elements/webriq-blue-dark-up.png",
|
|
119
|
+
alt: "webriq-blue-dark-up-mainImage-element",
|
|
120
|
+
className: "absolute hidden md:block",
|
|
121
|
+
style: { top: "-2rem", right: "3rem", zIndex: 2 },
|
|
122
|
+
width: 112,
|
|
123
|
+
height: 112
|
|
124
|
+
}
|
|
125
|
+
),
|
|
126
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
127
|
+
ImageElement,
|
|
128
|
+
{
|
|
129
|
+
src: "/assets/elements/wing-webriq-blue-down.png",
|
|
130
|
+
alt: "wing-webriq-blue-down-mainImage-element",
|
|
131
|
+
className: "absolute hidden md:block",
|
|
132
|
+
style: { bottom: "-2rem", right: "-2rem", zIndex: 2 },
|
|
133
|
+
width: 144,
|
|
134
|
+
height: 144
|
|
135
|
+
}
|
|
136
|
+
),
|
|
137
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
138
|
+
ImageElement,
|
|
139
|
+
{
|
|
140
|
+
src: "/assets/elements/bullets-gray-right.svg",
|
|
141
|
+
alt: "bullets-gray-right-mainImage-element",
|
|
142
|
+
className: "absolute hidden md:block",
|
|
143
|
+
style: { top: "3rem", right: "-3rem", zIndex: 2 },
|
|
144
|
+
width: 115,
|
|
145
|
+
height: 157
|
|
146
|
+
}
|
|
147
|
+
),
|
|
148
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
149
|
+
ImageElement,
|
|
150
|
+
{
|
|
151
|
+
src: "/assets/elements/bullets-gray-left.svg",
|
|
152
|
+
alt: "bullets-gray-left-mainImage-element",
|
|
153
|
+
className: "absolute hidden md:block",
|
|
154
|
+
style: { bottom: "2.5rem", left: "-4.5rem", zIndex: 2 },
|
|
155
|
+
width: 157,
|
|
156
|
+
height: 115
|
|
157
|
+
}
|
|
158
|
+
)
|
|
159
|
+
] });
|
|
160
|
+
}
|
|
161
|
+
function ImageElement({
|
|
162
|
+
src,
|
|
163
|
+
alt,
|
|
164
|
+
className,
|
|
165
|
+
style,
|
|
166
|
+
width,
|
|
167
|
+
height
|
|
168
|
+
}) {
|
|
169
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_image.Image, { src, alt, className, style, width, height });
|
|
170
|
+
}
|
|
171
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
172
|
+
0 && (module.exports = {
|
|
173
|
+
Header_A
|
|
174
|
+
});
|
package/dist/header_a.mjs
CHANGED
package/dist/header_b.js
CHANGED
|
@@ -1 +1,150 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
30
|
+
// src/header_b.tsx
|
|
31
|
+
var header_b_exports = {};
|
|
32
|
+
__export(header_b_exports, {
|
|
33
|
+
Header_B: () => Header_B,
|
|
34
|
+
default: () => Header_B
|
|
35
|
+
});
|
|
36
|
+
module.exports = __toCommonJS(header_b_exports);
|
|
37
|
+
var import_button = require("@stackshift-ui/button");
|
|
38
|
+
var import_container = require("@stackshift-ui/container");
|
|
39
|
+
var import_flex = require("@stackshift-ui/flex");
|
|
40
|
+
var import_heading = require("@stackshift-ui/heading");
|
|
41
|
+
var import_image = require("@stackshift-ui/image");
|
|
42
|
+
var import_section = require("@stackshift-ui/section");
|
|
43
|
+
var import_text = require("@stackshift-ui/text");
|
|
44
|
+
var import_react = __toESM(require("react"));
|
|
45
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
46
|
+
function Header_B({
|
|
47
|
+
images,
|
|
48
|
+
title,
|
|
49
|
+
description,
|
|
50
|
+
primaryButton,
|
|
51
|
+
secondaryButton
|
|
52
|
+
}) {
|
|
53
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_section.Section, { className: "relative z-10 py-20 bg-background", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_container.Container, { maxWidth: 1280, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_flex.Flex, { align: "center", direction: "col", gap: 4, className: "lg:flex-row", children: [
|
|
54
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_flex.Flex, { align: "center", direction: "col", className: "w-full basis-1/2", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "max-w-md mx-auto text-center lg:text-left", children: [
|
|
55
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TitleAndDescription, { title, description }),
|
|
56
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Buttons, { primaryButton, secondaryButton })
|
|
57
|
+
] }) }),
|
|
58
|
+
images && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ImageGallery, { images })
|
|
59
|
+
] }) }) });
|
|
60
|
+
}
|
|
61
|
+
function TitleAndDescription({ title, description }) {
|
|
62
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react.default.Fragment, { children: [
|
|
63
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_heading.Heading, { fontSize: "3xl", className: "mb-3", children: title }),
|
|
64
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_text.Text, { muted: true, className: "my-6", children: description })
|
|
65
|
+
] });
|
|
66
|
+
}
|
|
67
|
+
function Buttons({
|
|
68
|
+
primaryButton,
|
|
69
|
+
secondaryButton
|
|
70
|
+
}) {
|
|
71
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
72
|
+
import_flex.Flex,
|
|
73
|
+
{
|
|
74
|
+
align: "center",
|
|
75
|
+
gap: 2,
|
|
76
|
+
className: "flex items-center justify-center lg:justify-start gap-2 flex-col md:flex-row",
|
|
77
|
+
children: [
|
|
78
|
+
(primaryButton == null ? void 0 : primaryButton.label) && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_button.Button, { as: "link", link: primaryButton, ariaLabel: primaryButton == null ? void 0 : primaryButton.label, children: primaryButton == null ? void 0 : primaryButton.label }),
|
|
79
|
+
(secondaryButton == null ? void 0 : secondaryButton.label) && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
80
|
+
import_button.Button,
|
|
81
|
+
{
|
|
82
|
+
as: "link",
|
|
83
|
+
link: secondaryButton,
|
|
84
|
+
className: "bg-secondary hover:bg-secondary/50 inline-block rounded-global font-bold transition duration-200 px-6 py-3",
|
|
85
|
+
ariaLabel: secondaryButton == null ? void 0 : secondaryButton.label,
|
|
86
|
+
children: secondaryButton == null ? void 0 : secondaryButton.label
|
|
87
|
+
}
|
|
88
|
+
)
|
|
89
|
+
]
|
|
90
|
+
}
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
function ImageGallery({ images }) {
|
|
94
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;
|
|
95
|
+
if (!images) return null;
|
|
96
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "w-full px-4 lg:w-1/2", children: [
|
|
97
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "mb-3 sm:flex lg:mb-4 lg:ml-6", children: [
|
|
98
|
+
((_a = images == null ? void 0 : images[0]) == null ? void 0 : _a.image) && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
99
|
+
import_image.Image,
|
|
100
|
+
{
|
|
101
|
+
className: "relative object-cover mb-3 mr-2 overflow-hidden rounded-xl sm:mb-0 sm:w-1/3 md:rounded-3xl lg:rounded-br-none",
|
|
102
|
+
sizes: "100vw",
|
|
103
|
+
src: `${(_b = images == null ? void 0 : images[0]) == null ? void 0 : _b.image}`,
|
|
104
|
+
width: 941,
|
|
105
|
+
height: 734,
|
|
106
|
+
alt: (_d = (_c = images == null ? void 0 : images[0]) == null ? void 0 : _c.alt) != null ? _d : "header-image-1"
|
|
107
|
+
}
|
|
108
|
+
),
|
|
109
|
+
((_e = images == null ? void 0 : images[1]) == null ? void 0 : _e.image) && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
110
|
+
import_image.Image,
|
|
111
|
+
{
|
|
112
|
+
className: "relative object-cover overflow-hidden rounded-xl sm:ml-2 sm:w-2/3 md:rounded-3xl lg:rounded-bl-none",
|
|
113
|
+
sizes: "100vw",
|
|
114
|
+
src: `${(_f = images == null ? void 0 : images[1]) == null ? void 0 : _f.image}`,
|
|
115
|
+
width: 1050,
|
|
116
|
+
height: 701,
|
|
117
|
+
alt: (_h = (_g = images == null ? void 0 : images[1]) == null ? void 0 : _g.alt) != null ? _h : "header-image-2"
|
|
118
|
+
}
|
|
119
|
+
)
|
|
120
|
+
] }),
|
|
121
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "mb-3 sm:flex lg:mb-4 lg:mr-6", children: [
|
|
122
|
+
((_i = images == null ? void 0 : images[2]) == null ? void 0 : _i.image) && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
123
|
+
import_image.Image,
|
|
124
|
+
{
|
|
125
|
+
className: "object-cover mb-3 mr-2 overflow-hidden rounded-xl sm:w-2/3 md:mb-0 md:rounded-3xl lg:rounded-br-none",
|
|
126
|
+
sizes: "100vw",
|
|
127
|
+
src: `${(_j = images == null ? void 0 : images[2]) == null ? void 0 : _j.image}`,
|
|
128
|
+
width: 1050,
|
|
129
|
+
height: 701,
|
|
130
|
+
alt: (_l = (_k = images == null ? void 0 : images[2]) == null ? void 0 : _k.alt) != null ? _l : "header-image-3"
|
|
131
|
+
}
|
|
132
|
+
),
|
|
133
|
+
((_m = images == null ? void 0 : images[3]) == null ? void 0 : _m.image) && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
134
|
+
import_image.Image,
|
|
135
|
+
{
|
|
136
|
+
className: "object-cover overflow-hidden rounded-xl sm:ml-2 sm:w-1/3 md:rounded-3xl lg:rounded-bl-none",
|
|
137
|
+
sizes: "100vw",
|
|
138
|
+
src: `${(_n = images == null ? void 0 : images[3]) == null ? void 0 : _n.image}`,
|
|
139
|
+
width: 941,
|
|
140
|
+
height: 734,
|
|
141
|
+
alt: (_p = (_o = images == null ? void 0 : images[3]) == null ? void 0 : _o.alt) != null ? _p : "header-image-4"
|
|
142
|
+
}
|
|
143
|
+
)
|
|
144
|
+
] })
|
|
145
|
+
] });
|
|
146
|
+
}
|
|
147
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
148
|
+
0 && (module.exports = {
|
|
149
|
+
Header_B
|
|
150
|
+
});
|
package/dist/header_b.mjs
CHANGED
package/dist/header_c.js
CHANGED
|
@@ -1 +1,90 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/header_c.tsx
|
|
21
|
+
var header_c_exports = {};
|
|
22
|
+
__export(header_c_exports, {
|
|
23
|
+
Header_C: () => Header_C,
|
|
24
|
+
default: () => Header_C
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(header_c_exports);
|
|
27
|
+
var import_button = require("@stackshift-ui/button");
|
|
28
|
+
var import_container = require("@stackshift-ui/container");
|
|
29
|
+
var import_flex = require("@stackshift-ui/flex");
|
|
30
|
+
var import_heading = require("@stackshift-ui/heading");
|
|
31
|
+
var import_section = require("@stackshift-ui/section");
|
|
32
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
33
|
+
function Header_C({
|
|
34
|
+
videoLink,
|
|
35
|
+
title,
|
|
36
|
+
primaryButton,
|
|
37
|
+
secondaryButton
|
|
38
|
+
}) {
|
|
39
|
+
let videoLinkId;
|
|
40
|
+
if (videoLink) {
|
|
41
|
+
if (videoLink.includes("embed")) {
|
|
42
|
+
videoLinkId = videoLink.split("/")[4];
|
|
43
|
+
} else {
|
|
44
|
+
videoLinkId = videoLink.split("/watch?v=")[1] || videoLink.split("/")[3];
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_section.Section, { className: "py-20 md:py-52 bg-background", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_container.Container, { maxWidth: 1280, children: [
|
|
48
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "max-w-2xl mx-auto mb-12 text-center md:mb-20", children: [
|
|
49
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_heading.Heading, { fontSize: "3xl", className: "mb-10", children: title }),
|
|
50
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Buttons, { primaryButton, secondaryButton })
|
|
51
|
+
] }),
|
|
52
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "md:mx-20 lg:mx-60 xl:mx-60", children: videoLinkId && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(VideoPlayer, { videoLinkId, title }) })
|
|
53
|
+
] }) });
|
|
54
|
+
}
|
|
55
|
+
function VideoPlayer({ videoLinkId, title }) {
|
|
56
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "aspect-video", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
57
|
+
"iframe",
|
|
58
|
+
{
|
|
59
|
+
"aria-label": "Show Video Frame",
|
|
60
|
+
className: "w-full h-full border-4 rounded-3xl border-primary",
|
|
61
|
+
src: `https://www.youtube.com/embed/${videoLinkId}`,
|
|
62
|
+
srcDoc: `<style>*{padding:0;margin:0;overflow:hidden;border-radius:24px}html,body{height:100%}img,span{position:absolute;width:100%;top:0;bottom:0;margin:auto}span{height:1.5em;text-align:center;font:48px/1.5 sans-serif;color:white;text-shadow:0 0 0.5em black}</style><a href=${`https://www.youtube.com/embed/${videoLinkId}`}><img src=${`https://i.ytimg.com/vi_webp/${videoLinkId}/maxresdefault.webp`} alt=${title} loading="lazy" /><span>\u25B6</span></a>`,
|
|
63
|
+
loading: "lazy",
|
|
64
|
+
allow: "accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",
|
|
65
|
+
allowFullScreen: true
|
|
66
|
+
}
|
|
67
|
+
) });
|
|
68
|
+
}
|
|
69
|
+
function Buttons({
|
|
70
|
+
primaryButton,
|
|
71
|
+
secondaryButton
|
|
72
|
+
}) {
|
|
73
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_flex.Flex, { align: "center", gap: 4, justify: "center", className: "flex-col lg:flex-row", children: [
|
|
74
|
+
(primaryButton == null ? void 0 : primaryButton.label) && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_button.Button, { as: "link", ariaLabel: primaryButton == null ? void 0 : primaryButton.label, link: primaryButton, children: primaryButton == null ? void 0 : primaryButton.label }),
|
|
75
|
+
(secondaryButton == null ? void 0 : secondaryButton.label) && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
76
|
+
import_button.Button,
|
|
77
|
+
{
|
|
78
|
+
as: "link",
|
|
79
|
+
ariaLabel: secondaryButton == null ? void 0 : secondaryButton.label,
|
|
80
|
+
link: secondaryButton,
|
|
81
|
+
className: "bg-secondary hover:bg-secondary/50 inline-block rounded-global font-bold transition duration-200 px-3 py-4",
|
|
82
|
+
children: secondaryButton == null ? void 0 : secondaryButton.label
|
|
83
|
+
}
|
|
84
|
+
)
|
|
85
|
+
] });
|
|
86
|
+
}
|
|
87
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
88
|
+
0 && (module.exports = {
|
|
89
|
+
Header_C
|
|
90
|
+
});
|
package/dist/header_c.mjs
CHANGED
package/dist/header_d.js
CHANGED
|
@@ -1 +1,124 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
30
|
+
// src/header_d.tsx
|
|
31
|
+
var header_d_exports = {};
|
|
32
|
+
__export(header_d_exports, {
|
|
33
|
+
Header_D: () => Header_D,
|
|
34
|
+
default: () => Header_D
|
|
35
|
+
});
|
|
36
|
+
module.exports = __toCommonJS(header_d_exports);
|
|
37
|
+
var import_button = require("@stackshift-ui/button");
|
|
38
|
+
var import_container = require("@stackshift-ui/container");
|
|
39
|
+
var import_flex = require("@stackshift-ui/flex");
|
|
40
|
+
var import_heading = require("@stackshift-ui/heading");
|
|
41
|
+
var import_image = require("@stackshift-ui/image");
|
|
42
|
+
var import_section = require("@stackshift-ui/section");
|
|
43
|
+
var import_text = require("@stackshift-ui/text");
|
|
44
|
+
var import_react = __toESM(require("react"));
|
|
45
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
46
|
+
function Header_D({
|
|
47
|
+
title,
|
|
48
|
+
description,
|
|
49
|
+
primaryButton,
|
|
50
|
+
secondaryButton,
|
|
51
|
+
mainImage
|
|
52
|
+
}) {
|
|
53
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_section.Section, { className: "py-20 bg-background", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_container.Container, { maxWidth: 1280, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_flex.Flex, { align: "center", className: "flex-col lg:flex-row", gap: 4, children: [
|
|
54
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_flex.Flex, { align: "center", className: "w-full basis-1/2", direction: "col", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_container.Container, { className: "mx-auto items-center text-center lg:text-left", maxWidth: "md", children: [
|
|
55
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TitleAndDescription, { title, description }),
|
|
56
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Buttons, { primaryButton, secondaryButton })
|
|
57
|
+
] }) }),
|
|
58
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(MainImage, { mainImage })
|
|
59
|
+
] }) }) });
|
|
60
|
+
}
|
|
61
|
+
function TitleAndDescription({ title, description }) {
|
|
62
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react.default.Fragment, { children: [
|
|
63
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_heading.Heading, { fontSize: "3xl", className: "mb-3", type: "h1", children: title }) : null,
|
|
64
|
+
description ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_text.Text, { className: "my-6", muted: true, children: description }) : null
|
|
65
|
+
] });
|
|
66
|
+
}
|
|
67
|
+
function Buttons({
|
|
68
|
+
primaryButton,
|
|
69
|
+
secondaryButton
|
|
70
|
+
}) {
|
|
71
|
+
var _a, _b;
|
|
72
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
73
|
+
import_flex.Flex,
|
|
74
|
+
{
|
|
75
|
+
align: "center",
|
|
76
|
+
className: "flex items-center justify-center lg:justify-start gap-2 flex-col md:flex-row",
|
|
77
|
+
gap: 2,
|
|
78
|
+
children: [
|
|
79
|
+
(primaryButton == null ? void 0 : primaryButton.label) ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
80
|
+
import_button.Button,
|
|
81
|
+
{
|
|
82
|
+
as: "link",
|
|
83
|
+
link: primaryButton,
|
|
84
|
+
ariaLabel: (_a = primaryButton == null ? void 0 : primaryButton.ariaLabel) != null ? _a : primaryButton == null ? void 0 : primaryButton.label,
|
|
85
|
+
variant: "solid",
|
|
86
|
+
className: "bg-primary hover:bg-primary/50 rounded-global px-6 py-3 text-white",
|
|
87
|
+
children: primaryButton.label
|
|
88
|
+
}
|
|
89
|
+
) : null,
|
|
90
|
+
(secondaryButton == null ? void 0 : secondaryButton.label) ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
91
|
+
import_button.Button,
|
|
92
|
+
{
|
|
93
|
+
as: "link",
|
|
94
|
+
link: secondaryButton,
|
|
95
|
+
ariaLabel: (_b = secondaryButton.ariaLabel) != null ? _b : secondaryButton == null ? void 0 : secondaryButton.label,
|
|
96
|
+
variant: "solid",
|
|
97
|
+
className: "bg-secondary hover:bg-secondary/50 rounded-global px-6 py-3",
|
|
98
|
+
children: secondaryButton.label
|
|
99
|
+
}
|
|
100
|
+
) : null
|
|
101
|
+
]
|
|
102
|
+
}
|
|
103
|
+
);
|
|
104
|
+
}
|
|
105
|
+
function MainImage({ mainImage }) {
|
|
106
|
+
var _a;
|
|
107
|
+
if (!(mainImage == null ? void 0 : mainImage.image)) return null;
|
|
108
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "w-full h-full", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
109
|
+
import_image.Image,
|
|
110
|
+
{
|
|
111
|
+
alt: (_a = mainImage.alt) != null ? _a : "header-main-image",
|
|
112
|
+
className: "rounded-md",
|
|
113
|
+
height: 700,
|
|
114
|
+
sizes: "100vw",
|
|
115
|
+
src: `${mainImage == null ? void 0 : mainImage.image}`,
|
|
116
|
+
style: { objectFit: "contain" },
|
|
117
|
+
width: 1050
|
|
118
|
+
}
|
|
119
|
+
) });
|
|
120
|
+
}
|
|
121
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
122
|
+
0 && (module.exports = {
|
|
123
|
+
Header_D
|
|
124
|
+
});
|