@ttoss/landing-pages 0.12.49 → 0.12.51
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/esm/index.js +278 -306
- package/package.json +7 -7
package/dist/esm/index.js
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
/** Powered by @ttoss/config. https://ttoss.dev/docs/modules/packages/config/ */
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __name = (target, value) => __defProp(target, "name", {
|
|
5
|
+
value,
|
|
6
|
+
configurable: true
|
|
7
|
+
});
|
|
2
8
|
|
|
3
9
|
// src/Hero/Hero.tsx
|
|
4
10
|
import { Button, Flex, Heading, Image, Text } from "@ttoss/ui";
|
|
5
|
-
|
|
6
|
-
var Hero = ({
|
|
11
|
+
var Hero = /* @__PURE__ */__name(({
|
|
7
12
|
alignment,
|
|
8
13
|
headerText,
|
|
9
14
|
subHeaderText,
|
|
@@ -12,69 +17,61 @@ var Hero = ({
|
|
|
12
17
|
ctaLabel
|
|
13
18
|
}) => {
|
|
14
19
|
const isCentered = alignment === "center";
|
|
15
|
-
return /* @__PURE__ */
|
|
20
|
+
return /* @__PURE__ */React.createElement(Flex, {
|
|
16
21
|
sx: {
|
|
17
22
|
justifyContent: "space-between",
|
|
18
23
|
paddingY: "10vh",
|
|
19
24
|
paddingX: "186px"
|
|
25
|
+
}
|
|
26
|
+
}, /* @__PURE__ */React.createElement(Flex, {
|
|
27
|
+
sx: {
|
|
28
|
+
flexDirection: "column",
|
|
29
|
+
alignItems: isCentered ? "center" : "start",
|
|
30
|
+
backgroundImage: isCentered ? `url(${imageSrc})` : void 0,
|
|
31
|
+
width: isCentered ? "100%" : void 0,
|
|
32
|
+
minHeight: isCentered ? "80vh" : void 0,
|
|
33
|
+
justifyContent: isCentered ? "center" : void 0
|
|
34
|
+
}
|
|
35
|
+
}, /* @__PURE__ */React.createElement(Heading, {
|
|
36
|
+
sx: {
|
|
37
|
+
fontSize: "48px",
|
|
38
|
+
color: isCentered ? "white" : void 0
|
|
20
39
|
},
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}), /* @__PURE__ */jsx(Button, {
|
|
47
|
-
sx: {
|
|
48
|
-
background: isCentered ? "white" : "black",
|
|
49
|
-
color: isCentered ? "black" : void 0,
|
|
50
|
-
borderRadius: "10px",
|
|
51
|
-
fontSize: "16px"
|
|
52
|
-
},
|
|
53
|
-
children: ctaLabel
|
|
54
|
-
})]
|
|
55
|
-
}), !isCentered && /* @__PURE__ */jsx(Flex, {
|
|
56
|
-
children: /* @__PURE__ */jsx(Image, {
|
|
57
|
-
sx: {
|
|
58
|
-
maxWidth: "60vw",
|
|
59
|
-
maxHeight: "623px"
|
|
60
|
-
},
|
|
61
|
-
src: imageSrc,
|
|
62
|
-
alt: imageAlt
|
|
63
|
-
})
|
|
64
|
-
})]
|
|
65
|
-
});
|
|
66
|
-
};
|
|
40
|
+
as: "h1"
|
|
41
|
+
}, headerText), /* @__PURE__ */React.createElement(Text, {
|
|
42
|
+
sx: {
|
|
43
|
+
fontSize: "24px",
|
|
44
|
+
color: isCentered ? "white" : void 0,
|
|
45
|
+
marginTop: "54px",
|
|
46
|
+
marginBottom: "71px"
|
|
47
|
+
},
|
|
48
|
+
as: "h2"
|
|
49
|
+
}, subHeaderText), /* @__PURE__ */React.createElement(Button, {
|
|
50
|
+
sx: {
|
|
51
|
+
background: isCentered ? "white" : "black",
|
|
52
|
+
color: isCentered ? "black" : void 0,
|
|
53
|
+
borderRadius: "10px",
|
|
54
|
+
fontSize: "16px"
|
|
55
|
+
}
|
|
56
|
+
}, ctaLabel)), !isCentered && /* @__PURE__ */React.createElement(Flex, null, /* @__PURE__ */React.createElement(Image, {
|
|
57
|
+
sx: {
|
|
58
|
+
maxWidth: "60vw",
|
|
59
|
+
maxHeight: "623px"
|
|
60
|
+
},
|
|
61
|
+
src: imageSrc,
|
|
62
|
+
alt: imageAlt
|
|
63
|
+
})));
|
|
64
|
+
}, "Hero");
|
|
67
65
|
|
|
68
66
|
// src/HeroCarousel/HeroCarousel.tsx
|
|
69
|
-
import * as
|
|
67
|
+
import * as React2 from "react";
|
|
70
68
|
import { Box, Flex as Flex2, Image as Image2 } from "@ttoss/ui";
|
|
71
69
|
import { Icon } from "@ttoss/react-icons";
|
|
72
|
-
|
|
73
|
-
var HeroCarousel = ({
|
|
70
|
+
var HeroCarousel = /* @__PURE__ */__name(({
|
|
74
71
|
images = []
|
|
75
72
|
}) => {
|
|
76
|
-
const [selectedImage, setSelectedImage] =
|
|
77
|
-
const handleRight = () => {
|
|
73
|
+
const [selectedImage, setSelectedImage] = React2.useState(images[0].id);
|
|
74
|
+
const handleRight = /* @__PURE__ */__name(() => {
|
|
78
75
|
const currentIndex = images.findIndex(item => {
|
|
79
76
|
return item.id === selectedImage;
|
|
80
77
|
});
|
|
@@ -83,8 +80,8 @@ var HeroCarousel = ({
|
|
|
83
80
|
return setSelectedImage(images[0].id);
|
|
84
81
|
}
|
|
85
82
|
setSelectedImage(images[currentIndex + 1].id);
|
|
86
|
-
};
|
|
87
|
-
const handleLeft = () => {
|
|
83
|
+
}, "handleRight");
|
|
84
|
+
const handleLeft = /* @__PURE__ */__name(() => {
|
|
88
85
|
const currentIndex = images.findIndex(item => {
|
|
89
86
|
return item.id === selectedImage;
|
|
90
87
|
});
|
|
@@ -93,178 +90,166 @@ var HeroCarousel = ({
|
|
|
93
90
|
return setSelectedImage(images[images.length - 1].id);
|
|
94
91
|
}
|
|
95
92
|
setSelectedImage(images[currentIndex - 1].id);
|
|
96
|
-
};
|
|
97
|
-
const image =
|
|
93
|
+
}, "handleLeft");
|
|
94
|
+
const image = React2.useMemo(() => {
|
|
98
95
|
const result = images.find(item => {
|
|
99
96
|
return item.id === selectedImage;
|
|
100
97
|
});
|
|
101
98
|
return result;
|
|
102
99
|
}, [selectedImage, images]);
|
|
103
|
-
return /* @__PURE__ */
|
|
100
|
+
return /* @__PURE__ */React2.createElement(Flex2, {
|
|
104
101
|
sx: {
|
|
105
102
|
width: "100%",
|
|
106
103
|
height: "100%",
|
|
107
104
|
maxHeight: "70vh",
|
|
108
105
|
paddingX: 5
|
|
106
|
+
}
|
|
107
|
+
}, /* @__PURE__ */React2.createElement(Flex2, {
|
|
108
|
+
sx: {
|
|
109
|
+
width: "100%",
|
|
110
|
+
height: "50vw",
|
|
111
|
+
position: "relative",
|
|
112
|
+
flexDirection: "column"
|
|
113
|
+
}
|
|
114
|
+
}, /* @__PURE__ */React2.createElement(Flex2, {
|
|
115
|
+
sx: {
|
|
116
|
+
height: "100%",
|
|
117
|
+
alignItems: "center",
|
|
118
|
+
gap: 3
|
|
119
|
+
}
|
|
120
|
+
}, /* @__PURE__ */React2.createElement(Flex2, {
|
|
121
|
+
sx: {
|
|
122
|
+
cursor: "pointer",
|
|
123
|
+
height: "100%",
|
|
124
|
+
alignItems: "center"
|
|
125
|
+
},
|
|
126
|
+
onClick: handleLeft
|
|
127
|
+
}, /* @__PURE__ */React2.createElement(Icon, {
|
|
128
|
+
icon: "akar-icons:chevron-left"
|
|
129
|
+
})), image && /* @__PURE__ */React2.createElement(Image2, {
|
|
130
|
+
sx: {
|
|
131
|
+
height: "100%",
|
|
132
|
+
width: "100%"
|
|
109
133
|
},
|
|
110
|
-
|
|
134
|
+
src: image.src
|
|
135
|
+
}), /* @__PURE__ */React2.createElement(Flex2, {
|
|
136
|
+
sx: {
|
|
137
|
+
cursor: "pointer",
|
|
138
|
+
height: "100%",
|
|
139
|
+
alignItems: "center"
|
|
140
|
+
},
|
|
141
|
+
onClick: handleRight
|
|
142
|
+
}, /* @__PURE__ */React2.createElement(Icon, {
|
|
143
|
+
icon: "akar-icons:chevron-right"
|
|
144
|
+
}))), /* @__PURE__ */React2.createElement(Flex2, {
|
|
145
|
+
sx: {
|
|
146
|
+
marginTop: 2,
|
|
147
|
+
alignSelf: "center",
|
|
148
|
+
gap: 3
|
|
149
|
+
}
|
|
150
|
+
}, images.map(image2 => {
|
|
151
|
+
return /* @__PURE__ */React2.createElement(Box, {
|
|
152
|
+
key: image2.id,
|
|
153
|
+
role: "button",
|
|
154
|
+
onClick: /* @__PURE__ */__name(() => {
|
|
155
|
+
return setSelectedImage(image2.id);
|
|
156
|
+
}, "onClick"),
|
|
111
157
|
sx: {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
gap: 3
|
|
122
|
-
},
|
|
123
|
-
children: [/* @__PURE__ */jsx2(Flex2, {
|
|
124
|
-
sx: {
|
|
125
|
-
cursor: "pointer",
|
|
126
|
-
height: "100%",
|
|
127
|
-
alignItems: "center"
|
|
128
|
-
},
|
|
129
|
-
onClick: handleLeft,
|
|
130
|
-
children: /* @__PURE__ */jsx2(Icon, {
|
|
131
|
-
icon: "akar-icons:chevron-left"
|
|
132
|
-
})
|
|
133
|
-
}), image && /* @__PURE__ */jsx2(Image2, {
|
|
134
|
-
sx: {
|
|
135
|
-
height: "100%",
|
|
136
|
-
width: "100%"
|
|
137
|
-
},
|
|
138
|
-
src: image.src
|
|
139
|
-
}), /* @__PURE__ */jsx2(Flex2, {
|
|
140
|
-
sx: {
|
|
141
|
-
cursor: "pointer",
|
|
142
|
-
height: "100%",
|
|
143
|
-
alignItems: "center"
|
|
144
|
-
},
|
|
145
|
-
onClick: handleRight,
|
|
146
|
-
children: /* @__PURE__ */jsx2(Icon, {
|
|
147
|
-
icon: "akar-icons:chevron-right"
|
|
148
|
-
})
|
|
149
|
-
})]
|
|
150
|
-
}), /* @__PURE__ */jsx2(Flex2, {
|
|
151
|
-
sx: {
|
|
152
|
-
marginTop: 2,
|
|
153
|
-
alignSelf: "center",
|
|
154
|
-
gap: 3
|
|
155
|
-
},
|
|
156
|
-
children: images.map(image2 => {
|
|
157
|
-
return /* @__PURE__ */jsx2(Box, {
|
|
158
|
-
role: "button",
|
|
159
|
-
onClick: () => {
|
|
160
|
-
return setSelectedImage(image2.id);
|
|
161
|
-
},
|
|
162
|
-
sx: {
|
|
163
|
-
background: image2.id === selectedImage ? "gray" : "black",
|
|
164
|
-
width: 10,
|
|
165
|
-
height: 10,
|
|
166
|
-
borderRadius: "50%",
|
|
167
|
-
cursor: "pointer"
|
|
168
|
-
}
|
|
169
|
-
}, image2.id);
|
|
170
|
-
})
|
|
171
|
-
})]
|
|
172
|
-
})
|
|
173
|
-
});
|
|
174
|
-
};
|
|
158
|
+
background: image2.id === selectedImage ? "gray" : "black",
|
|
159
|
+
width: 10,
|
|
160
|
+
height: 10,
|
|
161
|
+
borderRadius: "50%",
|
|
162
|
+
cursor: "pointer"
|
|
163
|
+
}
|
|
164
|
+
});
|
|
165
|
+
}))));
|
|
166
|
+
}, "HeroCarousel");
|
|
175
167
|
|
|
176
168
|
// src/Footer/Footer.tsx
|
|
177
169
|
import { Flex as Flex3, Grid, Image as Image3, Link, Text as Text2 } from "@ttoss/ui";
|
|
178
170
|
import { Icon as Icon2 } from "@ttoss/react-icons";
|
|
179
|
-
|
|
180
|
-
var Footer = ({
|
|
171
|
+
var Footer = /* @__PURE__ */__name(({
|
|
181
172
|
links,
|
|
182
173
|
logo,
|
|
183
174
|
socialMedia,
|
|
184
175
|
reserved
|
|
185
176
|
}) => {
|
|
186
|
-
return /* @__PURE__ */
|
|
177
|
+
return /* @__PURE__ */React.createElement(Flex3, {
|
|
187
178
|
sx: {
|
|
188
179
|
flexDirection: "column",
|
|
189
180
|
paddingY: "40px"
|
|
181
|
+
}
|
|
182
|
+
}, /* @__PURE__ */React.createElement(Image3, {
|
|
183
|
+
sx: {
|
|
184
|
+
maxWidth: ["90px", "212px"],
|
|
185
|
+
alignSelf: "center",
|
|
186
|
+
marginBottom: [3, 4]
|
|
190
187
|
},
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
sx: {
|
|
206
|
-
justifyContent: "center",
|
|
207
|
-
gridTemplateColumns: ["6fr 3fr 3fr", "1fr 1fr 1fr"]
|
|
208
|
-
},
|
|
209
|
-
children: links.map((link, idx) => {
|
|
210
|
-
return /* @__PURE__ */jsx3(Link, {
|
|
211
|
-
sx: {
|
|
212
|
-
fontSize: "xs",
|
|
213
|
-
fontFamily: "body",
|
|
214
|
-
textDecorationLine: "none"
|
|
215
|
-
},
|
|
216
|
-
href: link.href,
|
|
217
|
-
children: link.label
|
|
218
|
-
}, `link-${link.label}-${idx}`);
|
|
219
|
-
})
|
|
220
|
-
}), /* @__PURE__ */jsx3(Flex3, {
|
|
221
|
-
sx: {
|
|
222
|
-
marginTop: [3],
|
|
223
|
-
gap: [4],
|
|
224
|
-
justifyContent: "center"
|
|
225
|
-
},
|
|
226
|
-
children: socialMedia.map(social => {
|
|
227
|
-
return /* @__PURE__ */jsx3(Link, {
|
|
228
|
-
href: social.href,
|
|
229
|
-
children: /* @__PURE__ */jsx3(Icon2, {
|
|
230
|
-
icon: social.icon
|
|
231
|
-
})
|
|
232
|
-
}, `social-media-${social.icon}`);
|
|
233
|
-
})
|
|
234
|
-
})]
|
|
235
|
-
}), /* @__PURE__ */jsx3(Text2, {
|
|
188
|
+
src: logo
|
|
189
|
+
}), /* @__PURE__ */React.createElement(Flex3, {
|
|
190
|
+
sx: {
|
|
191
|
+
flexDirection: ["column", "row"],
|
|
192
|
+
justifyContent: ["unset", "center"],
|
|
193
|
+
paddingX: 3
|
|
194
|
+
}
|
|
195
|
+
}, /* @__PURE__ */React.createElement(Grid, {
|
|
196
|
+
sx: {
|
|
197
|
+
justifyContent: "center",
|
|
198
|
+
gridTemplateColumns: ["6fr 3fr 3fr", "1fr 1fr 1fr"]
|
|
199
|
+
}
|
|
200
|
+
}, links.map((link, idx) => {
|
|
201
|
+
return /* @__PURE__ */React.createElement(Link, {
|
|
236
202
|
sx: {
|
|
237
|
-
fontSize: "
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
textAlign: "center",
|
|
241
|
-
lineHeight: "1.5",
|
|
242
|
-
marginTop: [3, 4]
|
|
203
|
+
fontSize: "xs",
|
|
204
|
+
fontFamily: "body",
|
|
205
|
+
textDecorationLine: "none"
|
|
243
206
|
},
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
}
|
|
207
|
+
key: `link-${link.label}-${idx}`,
|
|
208
|
+
href: link.href
|
|
209
|
+
}, link.label);
|
|
210
|
+
})), /* @__PURE__ */React.createElement(Flex3, {
|
|
211
|
+
sx: {
|
|
212
|
+
marginTop: [3],
|
|
213
|
+
gap: [4],
|
|
214
|
+
justifyContent: "center"
|
|
215
|
+
}
|
|
216
|
+
}, socialMedia.map(social => {
|
|
217
|
+
return /* @__PURE__ */React.createElement(Link, {
|
|
218
|
+
href: social.href,
|
|
219
|
+
key: `social-media-${social.icon}`
|
|
220
|
+
}, /* @__PURE__ */React.createElement(Icon2, {
|
|
221
|
+
icon: social.icon
|
|
222
|
+
}));
|
|
223
|
+
}))), /* @__PURE__ */React.createElement(Text2, {
|
|
224
|
+
sx: {
|
|
225
|
+
fontSize: "xxs",
|
|
226
|
+
color: "gray",
|
|
227
|
+
fontFamily: "heading",
|
|
228
|
+
textAlign: "center",
|
|
229
|
+
lineHeight: "1.5",
|
|
230
|
+
marginTop: [3, 4]
|
|
231
|
+
}
|
|
232
|
+
}, reserved));
|
|
233
|
+
}, "Footer");
|
|
248
234
|
|
|
249
235
|
// src/Navbar/Navbar.tsx
|
|
250
|
-
import * as
|
|
236
|
+
import * as React3 from "react";
|
|
251
237
|
import { Collapse } from "react-collapse";
|
|
252
238
|
import { Flex as Flex4, Grid as Grid2, Image as Image4, Link as Link2, Text as Text3 } from "@ttoss/ui";
|
|
253
239
|
import { Icon as Icon3 } from "@ttoss/react-icons";
|
|
254
|
-
|
|
255
|
-
var Navbar = ({
|
|
240
|
+
var Navbar = /* @__PURE__ */__name(({
|
|
256
241
|
links,
|
|
257
242
|
logo,
|
|
258
243
|
cta,
|
|
259
244
|
type = "1"
|
|
260
245
|
}) => {
|
|
261
|
-
const [isMenuOpen, setIsMenuOpen] =
|
|
246
|
+
const [isMenuOpen, setIsMenuOpen] = React3.useState(false);
|
|
262
247
|
const {
|
|
263
248
|
gridTemplateAreas,
|
|
264
249
|
heightLogo,
|
|
265
250
|
gridTemplateColumns,
|
|
266
251
|
justifySelfLogo
|
|
267
|
-
} =
|
|
252
|
+
} = React3.useMemo(() => {
|
|
268
253
|
if (type === "1") {
|
|
269
254
|
return {
|
|
270
255
|
gridTemplateAreas: '"logo links cta"',
|
|
@@ -280,128 +265,115 @@ var Navbar = ({
|
|
|
280
265
|
justifySelfLogo: "center"
|
|
281
266
|
};
|
|
282
267
|
}, [type]);
|
|
283
|
-
return /* @__PURE__ */
|
|
284
|
-
|
|
268
|
+
return /* @__PURE__ */React3.createElement(React3.Fragment, null, /* @__PURE__ */React3.createElement(Flex4, {
|
|
269
|
+
sx: {
|
|
270
|
+
flexDirection: "column",
|
|
271
|
+
display: ["flex", "none"]
|
|
272
|
+
}
|
|
273
|
+
}, /* @__PURE__ */React3.createElement(Grid2, {
|
|
274
|
+
sx: {
|
|
275
|
+
justifyContent: "space-between",
|
|
276
|
+
alignItems: "center",
|
|
277
|
+
gridTemplateColumns: "1fr 1fr 1fr"
|
|
278
|
+
}
|
|
279
|
+
}, /* @__PURE__ */React3.createElement(Text3, {
|
|
280
|
+
sx: {
|
|
281
|
+
cursor: "pointer",
|
|
282
|
+
justifySelf: "start",
|
|
283
|
+
fontSize: "3xl"
|
|
284
|
+
}
|
|
285
|
+
}, /* @__PURE__ */React3.createElement(Icon3, {
|
|
286
|
+
onClick: /* @__PURE__ */__name(() => {
|
|
287
|
+
setIsMenuOpen(prev => {
|
|
288
|
+
return !prev;
|
|
289
|
+
});
|
|
290
|
+
}, "onClick"),
|
|
291
|
+
icon: isMenuOpen ? "ic:outline-menu-open" : "ic:outline-menu"
|
|
292
|
+
})), /* @__PURE__ */React3.createElement(Image4, {
|
|
293
|
+
src: logo,
|
|
294
|
+
sx: {
|
|
295
|
+
maxWidth: "112px"
|
|
296
|
+
}
|
|
297
|
+
}), /* @__PURE__ */React3.createElement(Flex4, {
|
|
298
|
+
sx: {
|
|
299
|
+
justifyContent: "end",
|
|
300
|
+
width: "100%",
|
|
301
|
+
alignItems: "center"
|
|
302
|
+
}
|
|
303
|
+
}, cta && /* @__PURE__ */React3.createElement(Link2, {
|
|
304
|
+
sx: {
|
|
305
|
+
fontSize: "xs"
|
|
306
|
+
},
|
|
307
|
+
href: cta.href
|
|
308
|
+
}, cta.label))), /* @__PURE__ */React3.createElement(Collapse, {
|
|
309
|
+
isOpened: isMenuOpen,
|
|
310
|
+
initialStyle: {
|
|
311
|
+
height: 0,
|
|
312
|
+
overflow: "hidden"
|
|
313
|
+
}
|
|
314
|
+
}, /* @__PURE__ */React3.createElement(Flex4, {
|
|
315
|
+
sx: {
|
|
316
|
+
flexDirection: "column",
|
|
317
|
+
width: "100%",
|
|
318
|
+
gap: 3,
|
|
319
|
+
paddingY: 3,
|
|
320
|
+
paddingLeft: 3
|
|
321
|
+
}
|
|
322
|
+
}, links.map(link => {
|
|
323
|
+
return /* @__PURE__ */React3.createElement(Link2, {
|
|
285
324
|
sx: {
|
|
286
|
-
|
|
287
|
-
display: ["flex", "none"]
|
|
325
|
+
fontSize: "xs"
|
|
288
326
|
},
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
sx: {
|
|
316
|
-
justifyContent: "end",
|
|
317
|
-
width: "100%",
|
|
318
|
-
alignItems: "center"
|
|
319
|
-
},
|
|
320
|
-
children: cta && /* @__PURE__ */jsx4(Link2, {
|
|
321
|
-
sx: {
|
|
322
|
-
fontSize: "xs"
|
|
323
|
-
},
|
|
324
|
-
href: cta.href,
|
|
325
|
-
children: cta.label
|
|
326
|
-
})
|
|
327
|
-
})]
|
|
328
|
-
}), /* @__PURE__ */jsx4(Collapse, {
|
|
329
|
-
isOpened: isMenuOpen,
|
|
330
|
-
initialStyle: {
|
|
331
|
-
height: 0,
|
|
332
|
-
overflow: "hidden"
|
|
333
|
-
},
|
|
334
|
-
children: /* @__PURE__ */jsx4(Flex4, {
|
|
335
|
-
sx: {
|
|
336
|
-
flexDirection: "column",
|
|
337
|
-
width: "100%",
|
|
338
|
-
gap: 3,
|
|
339
|
-
paddingY: 3,
|
|
340
|
-
paddingLeft: 3
|
|
341
|
-
},
|
|
342
|
-
children: links.map(link => {
|
|
343
|
-
return /* @__PURE__ */jsx4(Link2, {
|
|
344
|
-
sx: {
|
|
345
|
-
fontSize: "xs"
|
|
346
|
-
},
|
|
347
|
-
href: link.href,
|
|
348
|
-
children: link.label
|
|
349
|
-
}, link.label);
|
|
350
|
-
})
|
|
351
|
-
})
|
|
352
|
-
})]
|
|
353
|
-
}), /* @__PURE__ */jsxs4(Grid2, {
|
|
327
|
+
key: link.label,
|
|
328
|
+
href: link.href
|
|
329
|
+
}, link.label);
|
|
330
|
+
})))), /* @__PURE__ */React3.createElement(Grid2, {
|
|
331
|
+
sx: {
|
|
332
|
+
display: ["none", "grid"],
|
|
333
|
+
gridTemplateAreas,
|
|
334
|
+
gridTemplateColumns,
|
|
335
|
+
alignItems: "center",
|
|
336
|
+
paddingX: 6,
|
|
337
|
+
paddingY: 4
|
|
338
|
+
}
|
|
339
|
+
}, /* @__PURE__ */React3.createElement(Image4, {
|
|
340
|
+
sx: {
|
|
341
|
+
gridArea: "logo",
|
|
342
|
+
height: heightLogo,
|
|
343
|
+
justifySelf: justifySelfLogo
|
|
344
|
+
},
|
|
345
|
+
src: logo
|
|
346
|
+
}), /* @__PURE__ */React3.createElement(Flex4, {
|
|
347
|
+
sx: {
|
|
348
|
+
gridArea: "links",
|
|
349
|
+
justifyContent: "space-around"
|
|
350
|
+
}
|
|
351
|
+
}, links.map(link => {
|
|
352
|
+
return /* @__PURE__ */React3.createElement(Link2, {
|
|
354
353
|
sx: {
|
|
355
|
-
|
|
356
|
-
gridTemplateAreas,
|
|
357
|
-
gridTemplateColumns,
|
|
358
|
-
alignItems: "center",
|
|
359
|
-
paddingX: 6,
|
|
360
|
-
paddingY: 4
|
|
354
|
+
fontSize: "2xl"
|
|
361
355
|
},
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
gridArea: "cta",
|
|
386
|
-
justifyContent: "end"
|
|
387
|
-
},
|
|
388
|
-
children: cta && /* @__PURE__ */jsx4(Link2, {
|
|
389
|
-
href: cta.href,
|
|
390
|
-
sx: {
|
|
391
|
-
backgroundColor: "background",
|
|
392
|
-
borderColor: "text",
|
|
393
|
-
color: "text",
|
|
394
|
-
borderRadius: "10px",
|
|
395
|
-
fontSize: "base",
|
|
396
|
-
textDecorationLine: "none",
|
|
397
|
-
paddingX: 3,
|
|
398
|
-
paddingY: 2
|
|
399
|
-
},
|
|
400
|
-
as: "button",
|
|
401
|
-
children: cta.label
|
|
402
|
-
})
|
|
403
|
-
})]
|
|
404
|
-
})]
|
|
405
|
-
});
|
|
406
|
-
};
|
|
356
|
+
key: link.label,
|
|
357
|
+
href: link.href
|
|
358
|
+
}, link.label);
|
|
359
|
+
})), /* @__PURE__ */React3.createElement(Flex4, {
|
|
360
|
+
sx: {
|
|
361
|
+
gridArea: "cta",
|
|
362
|
+
justifyContent: "end"
|
|
363
|
+
}
|
|
364
|
+
}, cta && /* @__PURE__ */React3.createElement(Link2, {
|
|
365
|
+
href: cta.href,
|
|
366
|
+
sx: {
|
|
367
|
+
backgroundColor: "background",
|
|
368
|
+
borderColor: "text",
|
|
369
|
+
color: "text",
|
|
370
|
+
borderRadius: "10px",
|
|
371
|
+
fontSize: "base",
|
|
372
|
+
textDecorationLine: "none",
|
|
373
|
+
paddingX: 3,
|
|
374
|
+
paddingY: 2
|
|
375
|
+
},
|
|
376
|
+
as: "button"
|
|
377
|
+
}, cta.label))));
|
|
378
|
+
}, "Navbar");
|
|
407
379
|
export { Footer, Hero, HeroCarousel, Navbar };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ttoss/landing-pages",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.51",
|
|
4
4
|
"description": "Package for creating landing pages.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "ttoss",
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"react": ">=16.8.0",
|
|
31
|
-
"@ttoss/react-icons": "^0.4.
|
|
32
|
-
"@ttoss/ui": "^5.10.
|
|
31
|
+
"@ttoss/react-icons": "^0.4.17",
|
|
32
|
+
"@ttoss/ui": "^5.10.2"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@types/jest": "^30.0.0",
|
|
@@ -37,10 +37,10 @@
|
|
|
37
37
|
"@types/react-collapse": "^5.0.4",
|
|
38
38
|
"jest": "^30.0.4",
|
|
39
39
|
"tsup": "^8.5.0",
|
|
40
|
-
"@ttoss/config": "^1.35.
|
|
41
|
-
"@ttoss/test-utils": "^2.1.
|
|
42
|
-
"@ttoss/
|
|
43
|
-
"@ttoss/
|
|
40
|
+
"@ttoss/config": "^1.35.8",
|
|
41
|
+
"@ttoss/test-utils": "^2.1.28",
|
|
42
|
+
"@ttoss/react-icons": "^0.4.17",
|
|
43
|
+
"@ttoss/ui": "^5.10.2"
|
|
44
44
|
},
|
|
45
45
|
"keywords": [
|
|
46
46
|
"React",
|