@levo-so/blocks 0.1.2 → 0.1.52
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/package.json +2 -2
- package/src/blocks/about-us/about-us-1.schema.ts +26 -12
- package/src/blocks/about-us/about-us-2.schema.ts +269 -0
- package/src/blocks/about-us/about-us-2.tsx +47 -0
- package/src/blocks/blogs/blog-listing-1.schema.ts +64 -10
- package/src/blocks/blogs/blog-listing-1.tsx +79 -56
- package/src/blocks/blogs/blog-listing-2.schema.ts +3141 -31
- package/src/blocks/blogs/blog-listing-2.tsx +16 -11
- package/src/blocks/blogs/blog-listing-3.schema.ts +2476 -0
- package/src/blocks/blogs/blog-listing-3.tsx +84 -0
- package/src/blocks/blogs/blog-post-1.schema.ts +17 -9
- package/src/blocks/blogs/blog-post-2.schema.ts +13 -56
- package/src/blocks/blogs/blog-post-3.schema.ts +284 -0
- package/src/blocks/blogs/blog-post-3.tsx +58 -0
- package/src/blocks/cards/cards-10.schema.ts +579 -0
- package/src/blocks/cards/cards-10.tsx +2 -0
- package/src/blocks/cards/cards-11.schema.ts +514 -36
- package/src/blocks/cards/cards-13.schema.ts +615 -0
- package/src/blocks/cards/cards-13.tsx +67 -0
- package/src/blocks/cards/cards-2.schema.ts +14 -17
- package/src/blocks/cards/cards-3.schema.ts +15 -25
- package/src/blocks/cards/cards-4.schema.ts +22 -44
- package/src/blocks/cards/cards-4.tsx +39 -39
- package/src/blocks/cards/cards-5.schema.ts +15 -34
- package/src/blocks/cards/cards-6.schema.ts +1500 -0
- package/src/blocks/cards/cards-6.tsx +11 -7
- package/src/blocks/cards/cards-7.schema.ts +1772 -27
- package/src/blocks/cards/cards-7.tsx +32 -0
- package/src/blocks/cards/cards-8.schema.ts +9 -9
- package/src/blocks/contact-us/contact-us-1.schema.ts +13 -6
- package/src/blocks/contact-us/contact-us-2.schema.ts +43 -43
- package/src/blocks/content/content-1.schema.ts +45 -67
- package/src/blocks/content/content-2.schema.ts +14 -11
- package/src/blocks/content/content-3.schema.ts +17 -115
- package/src/blocks/content/content-3.tsx +1 -0
- package/src/blocks/content/content-5.tsx +1 -0
- package/src/blocks/content/content-6.tsx +1 -0
- package/src/blocks/content/content-7.schema.ts +723 -0
- package/src/blocks/content/content-7.tsx +53 -0
- package/src/blocks/cta/cta-1.schema.ts +18 -26
- package/src/blocks/cta/cta-3.schema.ts +60 -0
- package/src/blocks/event/event-details.schema.ts +30 -35
- package/src/blocks/event/event-details.tsx +74 -79
- package/src/blocks/event/event-listing-2.schema.ts +85 -26
- package/src/blocks/event/event-listing-2.tsx +76 -52
- package/src/blocks/event/event-listing-3.schema.ts +58 -42
- package/src/blocks/event/event-listing-3.tsx +4 -9
- package/src/blocks/event/event-listing-4.schema.ts +3528 -0
- package/src/blocks/event/event-listing-4.tsx +97 -0
- package/src/blocks/event/event-listing.schema.ts +81 -86
- package/src/blocks/event/event-listing.tsx +1 -3
- package/src/blocks/faq/faq-1.schema.ts +13 -10
- package/src/blocks/faq/faq-2.schema.ts +12 -10
- package/src/blocks/features/features-1/variants/default.ts +12 -3
- package/src/blocks/features/features-2.schema.ts +192 -59
- package/src/blocks/features/features-3.schema.ts +11 -25
- package/src/blocks/features/features-4.schema.ts +20 -35
- package/src/blocks/features/features-5.schema.ts +18 -37
- package/src/blocks/footer/footer-1.schema.ts +28 -5
- package/src/blocks/footer/footer-2.schema.ts +18 -3
- package/src/blocks/footer/footer-3.schema.ts +85 -160
- package/src/blocks/footer/footer-3.tsx +1 -2
- package/src/blocks/footer/footer-4.schema.ts +10 -5
- package/src/blocks/footer/footer-4.tsx +1 -1
- package/src/blocks/footer/footer-5.schema.ts +10 -0
- package/src/blocks/footer/footer-5.tsx +11 -3
- package/src/blocks/footer/footer-6.schema.ts +730 -0
- package/src/blocks/footer/footer-6.tsx +100 -0
- package/src/blocks/hero/hero-1.schema.ts +165 -185
- package/src/blocks/hero/hero-10.schema.ts +175 -0
- package/src/blocks/hero/hero-10.tsx +35 -0
- package/src/blocks/hero/hero-2.schema.ts +60 -104
- package/src/blocks/hero/hero-2.tsx +11 -3
- package/src/blocks/hero/hero-3.schema.ts +68 -64
- package/src/blocks/hero/hero-4.schema.ts +148 -48
- package/src/blocks/hero/hero-5.schema.ts +29 -23
- package/src/blocks/hero/hero-6.schema.ts +28 -66
- package/src/blocks/hero/hero-7.schema.ts +34 -37
- package/src/blocks/hero/hero-8.schema.ts +5 -1
- package/src/blocks/index.ts +11 -0
- package/src/blocks/logos/logos-1.schema.ts +10 -4
- package/src/blocks/navbar/navbar-1.schema.ts +3 -5
- package/src/blocks/navbar/navbar-1.tsx +5 -19
- package/src/blocks/navbar/navbar-2.schema.ts +2 -4
- package/src/blocks/navbar/navbar-2.tsx +4 -18
- package/src/blocks/navbar/navbar-3.schema.ts +6834 -0
- package/src/blocks/navbar/navbar-3.tsx +551 -0
- package/src/blocks/pricing/pricing-1.schema.ts +23 -37
- package/src/blocks/products/products-listing-1.schema.ts +73 -76
- package/src/blocks/profile/profile-1.schema.ts +399 -0
- package/src/blocks/profile/profile-1.tsx +64 -0
- package/src/blocks/stats/stats-1.schema.ts +34 -3
- package/src/blocks/stats/variants/default.ts +0 -1
- package/src/blocks/stats/variants/hero.ts +2 -13
- package/src/blocks/team/team-1.schema.ts +50 -22
- package/src/blocks/team/team-1.tsx +9 -3
- package/src/blocks/team/team-2.schema.ts +96 -167
- package/src/blocks/team/team-3.schema.ts +32 -49
- package/src/blocks/team/team-4.schema.ts +551 -0
- package/src/blocks/team/team-4.tsx +59 -0
- package/src/blocks/termsAndPrivacy/terms-and-conditions-1.schema.ts +10 -20
- package/src/blocks/testimonial/testimonial-1.schema.ts +14 -8
- package/src/blocks/testimonial/testimonial-2.schema.ts +2 -2
- package/src/blocks/testimonial/testimonial-3.schema.ts +12 -18
- package/src/blocks/testimonial/testimonial-4.schema.ts +131 -126
- package/src/blocks/testimonial/testimonial-5/variants/default.ts +510 -0
- package/src/blocks/testimonial/testimonial-5/variants/index.ts +4 -0
- package/src/blocks/testimonial/testimonial-5/variants/testimonialWithLogo.ts +887 -0
- package/src/blocks/testimonial/testimonial-5/variants/testimonialWithRatings.ts +923 -0
- package/src/blocks/testimonial/testimonial-5.schema.ts +62 -246
- package/src/blocks/testimonial/testimonial-5.tsx +32 -8
- package/src/blocks/testimonial/testimonial-6.schema.ts +986 -23
- package/src/blocks/testimonial/testimonial-6.tsx +107 -57
- package/src/schemas/blocks.ts +22 -0
- package/src/schemas/categories.ts +6 -0
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import type { IBlock } from "@levo-so/studio";
|
|
2
|
+
|
|
3
|
+
const DEFAULT_CONTENT = {
|
|
4
|
+
layout: null,
|
|
5
|
+
container: null,
|
|
6
|
+
content_wrapper: null,
|
|
7
|
+
title: "Building Systems for Better Businesses",
|
|
8
|
+
description:
|
|
9
|
+
"<p>Over 25 years of ERP expertise, delivering 500+ successful implementations worldwide.</p>",
|
|
10
|
+
hero_ctas: [
|
|
11
|
+
{
|
|
12
|
+
button: "Get Started",
|
|
13
|
+
},
|
|
14
|
+
],
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export type IHero10Content = typeof DEFAULT_CONTENT;
|
|
18
|
+
|
|
19
|
+
export const Hero10: IBlock = {
|
|
20
|
+
category_id: "hero",
|
|
21
|
+
title: "Hero 10",
|
|
22
|
+
key: "hero-10",
|
|
23
|
+
version: "v1",
|
|
24
|
+
prompt_description:
|
|
25
|
+
"Simple hero with heading, description and CTA button in a flex container",
|
|
26
|
+
content_schema: [
|
|
27
|
+
{
|
|
28
|
+
key: "layout",
|
|
29
|
+
label: "Layout",
|
|
30
|
+
field_interface: "LayoutWidget",
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
key: "container",
|
|
34
|
+
label: "Container",
|
|
35
|
+
field_interface: "ContainerWidget",
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
key: "content_wrapper",
|
|
39
|
+
label: "Content Wrapper",
|
|
40
|
+
field_interface: "BoxWidget",
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
key: "title",
|
|
44
|
+
label: "Title",
|
|
45
|
+
field_interface: "HeadingWidget",
|
|
46
|
+
hint: {
|
|
47
|
+
prompt_description: "Main heading for the hero section",
|
|
48
|
+
min_characters: 24,
|
|
49
|
+
max_characters: 48,
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
key: "text_cta_container",
|
|
54
|
+
label: "Text CTA Container",
|
|
55
|
+
field_interface: "BoxWidget",
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
key: "description",
|
|
59
|
+
label: "Description",
|
|
60
|
+
field_interface: "TypographyWidget",
|
|
61
|
+
hint: {
|
|
62
|
+
prompt_description: "Supporting description text",
|
|
63
|
+
min_characters: 80,
|
|
64
|
+
max_characters: 180,
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
key: "hero_ctas",
|
|
69
|
+
label: "Call to Action",
|
|
70
|
+
kind: "group",
|
|
71
|
+
field_interface: "BoxWidget",
|
|
72
|
+
fields: [
|
|
73
|
+
{
|
|
74
|
+
key: "button",
|
|
75
|
+
label: "Button",
|
|
76
|
+
field_interface: "ButtonWidget",
|
|
77
|
+
hint: {
|
|
78
|
+
prompt_description: "Call-to-action button",
|
|
79
|
+
min_characters: 8,
|
|
80
|
+
max_characters: 18,
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
],
|
|
84
|
+
},
|
|
85
|
+
],
|
|
86
|
+
|
|
87
|
+
layouts: [
|
|
88
|
+
{
|
|
89
|
+
title: "Default",
|
|
90
|
+
key: "default",
|
|
91
|
+
styles: {
|
|
92
|
+
layout: {
|
|
93
|
+
width: "100%",
|
|
94
|
+
"padding-top": "3xl",
|
|
95
|
+
"padding-right": "4xl",
|
|
96
|
+
"padding-bottom": "3xl",
|
|
97
|
+
"padding-left": "4xl",
|
|
98
|
+
tablet: {
|
|
99
|
+
"padding-top": "2xl",
|
|
100
|
+
"padding-right": "2xl",
|
|
101
|
+
"padding-bottom": "2xl",
|
|
102
|
+
"padding-left": "2xl",
|
|
103
|
+
},
|
|
104
|
+
},
|
|
105
|
+
container: {
|
|
106
|
+
"margin-left": "auto",
|
|
107
|
+
"margin-right": "auto",
|
|
108
|
+
display: "flex",
|
|
109
|
+
flex: "1",
|
|
110
|
+
"max-width": "auto",
|
|
111
|
+
"padding-left": "none",
|
|
112
|
+
"padding-right": "none",
|
|
113
|
+
},
|
|
114
|
+
content_wrapper: {
|
|
115
|
+
display: "flex",
|
|
116
|
+
"flex-direction": "row",
|
|
117
|
+
"align-items": "center",
|
|
118
|
+
"justify-content": "space-between",
|
|
119
|
+
"row-gap": "lg",
|
|
120
|
+
width: "100%",
|
|
121
|
+
},
|
|
122
|
+
title: {
|
|
123
|
+
color: "text-1",
|
|
124
|
+
"font-size": "5xl",
|
|
125
|
+
"font-weight": "700",
|
|
126
|
+
mobile: {
|
|
127
|
+
"font-size": "3xl",
|
|
128
|
+
},
|
|
129
|
+
width: "100%",
|
|
130
|
+
"max-width": "400px",
|
|
131
|
+
},
|
|
132
|
+
text_cta_container: {
|
|
133
|
+
display: "flex",
|
|
134
|
+
width: "fit-content",
|
|
135
|
+
"align-items": "start",
|
|
136
|
+
"justify-content": "start",
|
|
137
|
+
"row-gap": "lg",
|
|
138
|
+
"column-gap": "lg",
|
|
139
|
+
mobile: {
|
|
140
|
+
"flex-direction": "column",
|
|
141
|
+
"align-items": "start",
|
|
142
|
+
"justify-content": "flex-start",
|
|
143
|
+
},
|
|
144
|
+
"flex-direction": "column",
|
|
145
|
+
},
|
|
146
|
+
description: {
|
|
147
|
+
color: "text-2",
|
|
148
|
+
"font-size": "lg",
|
|
149
|
+
flex: "1",
|
|
150
|
+
"max-width": "400px",
|
|
151
|
+
},
|
|
152
|
+
hero_ctas_levoGroup: {
|
|
153
|
+
display: "flex",
|
|
154
|
+
"flex-shrink": "0",
|
|
155
|
+
},
|
|
156
|
+
hero_ctas: [
|
|
157
|
+
{
|
|
158
|
+
button: {},
|
|
159
|
+
},
|
|
160
|
+
],
|
|
161
|
+
},
|
|
162
|
+
content: DEFAULT_CONTENT,
|
|
163
|
+
config: {
|
|
164
|
+
title: {
|
|
165
|
+
heading: {
|
|
166
|
+
level: 1,
|
|
167
|
+
},
|
|
168
|
+
selectedVariants: {
|
|
169
|
+
Heading_Level: "H1",
|
|
170
|
+
},
|
|
171
|
+
},
|
|
172
|
+
},
|
|
173
|
+
},
|
|
174
|
+
],
|
|
175
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import {
|
|
2
|
+
type ILevoBlockBaseProps,
|
|
3
|
+
Button,
|
|
4
|
+
Heading,
|
|
5
|
+
Typography,
|
|
6
|
+
Container,
|
|
7
|
+
Section,
|
|
8
|
+
Box,
|
|
9
|
+
} from "@levo-so/studio";
|
|
10
|
+
|
|
11
|
+
import type { IHero10Content } from "./hero-10.schema";
|
|
12
|
+
|
|
13
|
+
const Hero10: React.FC<ILevoBlockBaseProps<IHero10Content>> = ({ content }) => (
|
|
14
|
+
<Section elementKey="layout">
|
|
15
|
+
<Container elementKey="container">
|
|
16
|
+
<Box elementKey="content_wrapper">
|
|
17
|
+
<Heading elementKey="title" />
|
|
18
|
+
<Box elementKey="text_cta_container">
|
|
19
|
+
<Typography elementKey="description" />
|
|
20
|
+
<Box elementKey="hero_ctas_levoGroup" data-levo_group>
|
|
21
|
+
{(content?.hero_ctas || [])?.map((_, index) => (
|
|
22
|
+
<Button
|
|
23
|
+
elementKey={`hero_ctas.${index}.button`}
|
|
24
|
+
key={`hero-10-cta-${index}`}
|
|
25
|
+
data-levo_group_item
|
|
26
|
+
/>
|
|
27
|
+
))}
|
|
28
|
+
</Box>
|
|
29
|
+
</Box>
|
|
30
|
+
</Box>
|
|
31
|
+
</Container>
|
|
32
|
+
</Section>
|
|
33
|
+
);
|
|
34
|
+
|
|
35
|
+
export default Hero10;
|
|
@@ -2,7 +2,6 @@ import type { IBlock } from "@levo-so/studio";
|
|
|
2
2
|
|
|
3
3
|
const DEFAULT_CONTENT = {
|
|
4
4
|
layout: null,
|
|
5
|
-
container: null,
|
|
6
5
|
content_wrapper: null,
|
|
7
6
|
title: "Where Freshers Prepare and Land Their First Job",
|
|
8
7
|
accent_heading: "India's Largest Career Network Platform",
|
|
@@ -12,49 +11,49 @@ const DEFAULT_CONTENT = {
|
|
|
12
11
|
image_desktop: {
|
|
13
12
|
id: "QsAs4Om9TjJX",
|
|
14
13
|
location:
|
|
15
|
-
"https://
|
|
14
|
+
"https://static.levostg.online/WZZKMUBH/image-qW3YQ1Uv4K2dy-jfwQp72ZrINX.png",
|
|
16
15
|
mimetype: "image/png",
|
|
17
16
|
kind: "image",
|
|
18
17
|
srcset: {
|
|
19
18
|
"1080w":
|
|
20
|
-
"https://
|
|
19
|
+
"https://static.levostg.online/WZZKMUBH/image-qW3YQ1Uv4K2dy-jfwQp72ZrINX-1080w.webp",
|
|
21
20
|
"1200w":
|
|
22
|
-
"https://
|
|
21
|
+
"https://static.levostg.online/WZZKMUBH/image-qW3YQ1Uv4K2dy-jfwQp72ZrINX-1200w.webp",
|
|
23
22
|
"1920w":
|
|
24
|
-
"https://
|
|
23
|
+
"https://static.levostg.online/WZZKMUBH/image-qW3YQ1Uv4K2dy-jfwQp72ZrINX-1920w.webp",
|
|
25
24
|
"320w":
|
|
26
|
-
"https://
|
|
25
|
+
"https://static.levostg.online/WZZKMUBH/image-qW3YQ1Uv4K2dy-jfwQp72ZrINX-320w.webp",
|
|
27
26
|
"640w":
|
|
28
|
-
"https://
|
|
27
|
+
"https://static.levostg.online/WZZKMUBH/image-qW3YQ1Uv4K2dy-jfwQp72ZrINX-640w.webp",
|
|
29
28
|
"750w":
|
|
30
|
-
"https://
|
|
29
|
+
"https://static.levostg.online/WZZKMUBH/image-qW3YQ1Uv4K2dy-jfwQp72ZrINX-750w.webp",
|
|
31
30
|
"828w":
|
|
32
|
-
"https://
|
|
33
|
-
path: "https://
|
|
31
|
+
"https://static.levostg.online/WZZKMUBH/image-qW3YQ1Uv4K2dy-jfwQp72ZrINX-828w.webp",
|
|
32
|
+
path: "https://static.levostg.online/WZZKMUBH/image-qW3YQ1Uv4K2dy-jfwQp72ZrINX-1920w.webp 1920w, https://static.levostg.online/WZZKMUBH/image-qW3YQ1Uv4K2dy-jfwQp72ZrINX-320w.webp 320w, https://static.levostg.online/WZZKMUBH/image-qW3YQ1Uv4K2dy-jfwQp72ZrINX-640w.webp 640w, https://static.levostg.online/WZZKMUBH/image-qW3YQ1Uv4K2dy-jfwQp72ZrINX-750w.webp 750w, https://static.levostg.online/WZZKMUBH/image-qW3YQ1Uv4K2dy-jfwQp72ZrINX-828w.webp 828w, https://static.levostg.online/WZZKMUBH/image-qW3YQ1Uv4K2dy-jfwQp72ZrINX-1080w.webp 1080w, https://static.levostg.online/WZZKMUBH/image-qW3YQ1Uv4K2dy-jfwQp72ZrINX-1200w.webp 1200w",
|
|
34
33
|
},
|
|
35
34
|
},
|
|
36
35
|
image_mobile: {
|
|
37
36
|
id: "QsAs4Om9TjJX",
|
|
38
37
|
location:
|
|
39
|
-
"https://
|
|
38
|
+
"https://static.levostg.online/WZZKMUBH/image-qW3YQ1Uv4K2dy-jfwQp72ZrINX.png",
|
|
40
39
|
mimetype: "image/png",
|
|
41
40
|
kind: "image",
|
|
42
41
|
srcset: {
|
|
43
42
|
"1080w":
|
|
44
|
-
"https://
|
|
43
|
+
"https://static.levostg.online/WZZKMUBH/image-qW3YQ1Uv4K2dy-jfwQp72ZrINX-1080w.webp",
|
|
45
44
|
"1200w":
|
|
46
|
-
"https://
|
|
45
|
+
"https://static.levostg.online/WZZKMUBH/image-qW3YQ1Uv4K2dy-jfwQp72ZrINX-1200w.webp",
|
|
47
46
|
"1920w":
|
|
48
|
-
"https://
|
|
47
|
+
"https://static.levostg.online/WZZKMUBH/image-qW3YQ1Uv4K2dy-jfwQp72ZrINX-1920w.webp",
|
|
49
48
|
"320w":
|
|
50
|
-
"https://
|
|
49
|
+
"https://static.levostg.online/WZZKMUBH/image-qW3YQ1Uv4K2dy-jfwQp72ZrINX-320w.webp",
|
|
51
50
|
"640w":
|
|
52
|
-
"https://
|
|
51
|
+
"https://static.levostg.online/WZZKMUBH/image-qW3YQ1Uv4K2dy-jfwQp72ZrINX-640w.webp",
|
|
53
52
|
"750w":
|
|
54
|
-
"https://
|
|
53
|
+
"https://static.levostg.online/WZZKMUBH/image-qW3YQ1Uv4K2dy-jfwQp72ZrINX-750w.webp",
|
|
55
54
|
"828w":
|
|
56
|
-
"https://
|
|
57
|
-
path: "https://
|
|
55
|
+
"https://static.levostg.online/WZZKMUBH/image-qW3YQ1Uv4K2dy-jfwQp72ZrINX-828w.webp",
|
|
56
|
+
path: "https://static.levostg.online/WZZKMUBH/image-qW3YQ1Uv4K2dy-jfwQp72ZrINX-1920w.webp 1920w, https://static.levostg.online/WZZKMUBH/image-qW3YQ1Uv4K2dy-jfwQp72ZrINX-320w.webp 320w, https://static.levostg.online/WZZKMUBH/image-qW3YQ1Uv4K2dy-jfwQp72ZrINX-640w.webp 640w, https://static.levostg.online/WZZKMUBH/image-qW3YQ1Uv4K2dy-jfwQp72ZrINX-750w.webp 750w, https://static.levostg.online/WZZKMUBH/image-qW3YQ1Uv4K2dy-jfwQp72ZrINX-828w.webp 828w, https://static.levostg.online/WZZKMUBH/image-qW3YQ1Uv4K2dy-jfwQp72ZrINX-1080w.webp 1080w, https://static.levostg.online/WZZKMUBH/image-qW3YQ1Uv4K2dy-jfwQp72ZrINX-1200w.webp 1200w",
|
|
58
57
|
},
|
|
59
58
|
},
|
|
60
59
|
};
|
|
@@ -140,6 +139,24 @@ export const Hero2: IBlock = {
|
|
|
140
139
|
max_characters: 32,
|
|
141
140
|
},
|
|
142
141
|
},
|
|
142
|
+
{
|
|
143
|
+
key: "hero_ctas",
|
|
144
|
+
label: "CTA Group",
|
|
145
|
+
kind: "group",
|
|
146
|
+
field_interface: "BoxWidget",
|
|
147
|
+
fields: [
|
|
148
|
+
{
|
|
149
|
+
key: "button",
|
|
150
|
+
label: "Button",
|
|
151
|
+
field_interface: "ButtonWidget",
|
|
152
|
+
hint: {
|
|
153
|
+
prompt_description: "Call-to-action button",
|
|
154
|
+
min_characters: 8,
|
|
155
|
+
max_characters: 18,
|
|
156
|
+
},
|
|
157
|
+
},
|
|
158
|
+
],
|
|
159
|
+
},
|
|
143
160
|
{
|
|
144
161
|
key: "spacer",
|
|
145
162
|
label: "Spacer",
|
|
@@ -188,129 +205,68 @@ export const Hero2: IBlock = {
|
|
|
188
205
|
title: "Default",
|
|
189
206
|
key: "default",
|
|
190
207
|
styles: {
|
|
191
|
-
layout: {
|
|
192
|
-
width: "100%",
|
|
193
|
-
"padding-bottom": "13xl",
|
|
194
|
-
"background-color": "white",
|
|
195
|
-
},
|
|
208
|
+
layout: {},
|
|
196
209
|
container: {
|
|
197
|
-
"margin-left": "auto",
|
|
198
|
-
"margin-right": "auto",
|
|
199
|
-
width: "100%",
|
|
200
|
-
position: "relative",
|
|
201
|
-
"background-color": "brand",
|
|
202
210
|
"padding-top": "11xl",
|
|
203
|
-
"padding-bottom": "
|
|
211
|
+
"padding-bottom": "10xl",
|
|
204
212
|
"media:max:768px": {
|
|
205
213
|
"padding-top": "3xl",
|
|
206
|
-
"padding-bottom": "
|
|
207
|
-
},
|
|
208
|
-
"media:max:480px": {
|
|
209
|
-
"padding-top": "3xl",
|
|
210
|
-
"padding-bottom": "15xl",
|
|
211
|
-
"max-width": "none",
|
|
212
|
-
"object-fit": "none",
|
|
213
|
-
"padding-left": "md",
|
|
214
|
-
"padding-right": "md",
|
|
214
|
+
"padding-bottom": "6xl",
|
|
215
215
|
},
|
|
216
216
|
},
|
|
217
217
|
content_wrapper: {
|
|
218
|
-
position: "relative",
|
|
219
218
|
display: "flex",
|
|
220
219
|
"flex-direction": "column",
|
|
221
220
|
"align-items": "center",
|
|
222
221
|
"justify-content": "center",
|
|
223
|
-
"row-gap": "
|
|
224
|
-
"column-gap": "
|
|
222
|
+
"row-gap": "lg",
|
|
223
|
+
"column-gap": "lg",
|
|
225
224
|
},
|
|
226
225
|
accent_heading: {
|
|
227
226
|
"text-align": "center",
|
|
228
|
-
"font-size": "base",
|
|
229
|
-
"font-weight": 700,
|
|
230
227
|
"text-transform": "uppercase",
|
|
231
|
-
"
|
|
232
|
-
color: "brandSecondary",
|
|
228
|
+
color: "text-2",
|
|
233
229
|
},
|
|
234
230
|
title: {
|
|
235
|
-
"max-width": "66rem",
|
|
236
|
-
"margin-left": "auto",
|
|
237
|
-
"margin-right": "auto",
|
|
238
231
|
"text-align": "center",
|
|
239
|
-
"font-size": "6xl",
|
|
240
|
-
"font-weight": 700,
|
|
241
|
-
"line-height": 1.5,
|
|
242
|
-
color: "brandForeground",
|
|
243
|
-
"media:max:480px": {
|
|
244
|
-
"font-size": "4xl",
|
|
245
|
-
"line-height": 1.5,
|
|
246
|
-
},
|
|
247
232
|
},
|
|
248
233
|
sub_title: {
|
|
249
|
-
"max-width": "
|
|
250
|
-
"margin-left": "auto",
|
|
251
|
-
"margin-right": "auto",
|
|
252
|
-
"padding-left": "5xs",
|
|
253
|
-
"padding-right": "5xs",
|
|
234
|
+
"max-width": "600px",
|
|
254
235
|
"text-align": "center",
|
|
255
|
-
"font-size": "lg",
|
|
256
|
-
"font-weight": 400,
|
|
257
236
|
"line-height": 1.625,
|
|
258
|
-
color: "brandForeground",
|
|
259
|
-
},
|
|
260
|
-
button: {
|
|
261
|
-
"z-index": "10",
|
|
262
|
-
"border-radius": "3xl",
|
|
263
|
-
"padding-top": "base",
|
|
264
|
-
"padding-right": "4xl",
|
|
265
|
-
"padding-bottom": "base",
|
|
266
|
-
"padding-left": "4xl",
|
|
267
|
-
"text-align": "center",
|
|
268
|
-
"font-size": "base",
|
|
269
|
-
"font-weight": 600,
|
|
270
|
-
"line-height": 1.625,
|
|
271
|
-
"background-color": "brandSecondary",
|
|
272
|
-
color: "brandSecondaryForeground",
|
|
273
|
-
_hover: {
|
|
274
|
-
opacity: 0.85,
|
|
275
|
-
},
|
|
276
|
-
},
|
|
277
|
-
spacer: {
|
|
278
|
-
width: "100%",
|
|
279
|
-
height: "50%",
|
|
280
|
-
},
|
|
281
|
-
image_wrapper: {
|
|
282
|
-
position: "absolute",
|
|
283
|
-
"z-index": "0",
|
|
284
|
-
top: "100%",
|
|
285
|
-
display: "flex",
|
|
286
|
-
"align-items": "center",
|
|
287
|
-
"justify-content": "center",
|
|
288
|
-
"media:min:1024px": {
|
|
289
|
-
top: "80%",
|
|
290
|
-
},
|
|
291
237
|
},
|
|
238
|
+
button: {},
|
|
239
|
+
spacer: {},
|
|
240
|
+
image_wrapper: {},
|
|
292
241
|
image_desktop: {
|
|
293
242
|
"object-fit": "contain",
|
|
294
243
|
display: "block",
|
|
295
|
-
"
|
|
244
|
+
"border-radius": "base",
|
|
245
|
+
tablet: {
|
|
296
246
|
display: "block",
|
|
297
247
|
},
|
|
298
|
-
|
|
248
|
+
mobile: {
|
|
299
249
|
display: "none",
|
|
300
250
|
},
|
|
301
|
-
width: "100%",
|
|
302
|
-
height: "auto",
|
|
303
251
|
},
|
|
304
252
|
image_mobile: {
|
|
305
253
|
"object-fit": "contain",
|
|
306
|
-
display: "
|
|
307
|
-
"
|
|
254
|
+
display: "none",
|
|
255
|
+
"border-radius": "base",
|
|
256
|
+
tablet: {
|
|
308
257
|
display: "none",
|
|
309
258
|
},
|
|
259
|
+
mobile: {},
|
|
310
260
|
},
|
|
311
261
|
},
|
|
312
262
|
content: DEFAULT_CONTENT,
|
|
313
|
-
config: {
|
|
263
|
+
config: {
|
|
264
|
+
title: {
|
|
265
|
+
selectedVariants: {
|
|
266
|
+
Heading_Level: "H1",
|
|
267
|
+
},
|
|
268
|
+
},
|
|
269
|
+
},
|
|
314
270
|
},
|
|
315
271
|
],
|
|
316
272
|
};
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
|
|
12
12
|
import type { IHero2Content } from "./hero-2.schema";
|
|
13
13
|
|
|
14
|
-
const Hero2: React.FC<ILevoBlockBaseProps<IHero2Content>> = () => (
|
|
14
|
+
const Hero2: React.FC<ILevoBlockBaseProps<IHero2Content>> = ({ content }) => (
|
|
15
15
|
<Section elementKey="layout">
|
|
16
16
|
{/* <Box elementKey="background"> */}
|
|
17
17
|
<Container elementKey="container">
|
|
@@ -23,8 +23,16 @@ const Hero2: React.FC<ILevoBlockBaseProps<IHero2Content>> = () => (
|
|
|
23
23
|
<Typography elementKey="sub_title" />
|
|
24
24
|
|
|
25
25
|
<Button elementKey="button" />
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
<Box elementKey="hero_ctas_levoGroup" data-levo_group>
|
|
27
|
+
{(content?.hero_ctas || [])?.map((_: any, index: any) => (
|
|
28
|
+
<Button
|
|
29
|
+
elementKey={`hero_ctas.${index}.button`}
|
|
30
|
+
key={`hero-10-cta-${index}`}
|
|
31
|
+
data-levo_group_item
|
|
32
|
+
/>
|
|
33
|
+
))}
|
|
34
|
+
</Box>
|
|
35
|
+
{/* <Box elementKey="spacer" /> */}
|
|
28
36
|
|
|
29
37
|
<Box elementKey="image_wrapper">
|
|
30
38
|
<Image
|