@levo-so/blocks 0.1.2 → 0.1.54
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 +4 -4
- 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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@levo-so/blocks",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.54",
|
|
4
4
|
"author": "Levo Engineering <devs@theinternetfolks.com>",
|
|
5
5
|
"description": "Set of blocks for Levo studio",
|
|
6
6
|
"type": "module",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"dayjs": "1.11.12",
|
|
28
|
-
"embla-carousel-auto-scroll": "8.
|
|
29
|
-
"embla-carousel-react": "8.
|
|
28
|
+
"embla-carousel-auto-scroll": "8.6.0",
|
|
29
|
+
"embla-carousel-react": "8.6.0",
|
|
30
30
|
"lucide-react": "0.424.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@levo/ts-config": "workspace:*",
|
|
35
35
|
"@types/react": "19.1.8",
|
|
36
36
|
"@types/react-dom": "19.1.6",
|
|
37
|
-
"typescript": "5.8.
|
|
37
|
+
"typescript": "5.8.3"
|
|
38
38
|
},
|
|
39
39
|
"main": "./src/index.ts",
|
|
40
40
|
"exports": {
|
|
@@ -353,23 +353,21 @@ export const AboutUs1: IBlock = {
|
|
|
353
353
|
"justify-content": "center",
|
|
354
354
|
},
|
|
355
355
|
label: {
|
|
356
|
-
"
|
|
356
|
+
color: "text-2",
|
|
357
357
|
"margin-bottom": "xs",
|
|
358
|
-
"font-size": "sm",
|
|
359
358
|
mobile: {
|
|
360
359
|
"margin-bottom": "3xs",
|
|
361
360
|
},
|
|
362
361
|
},
|
|
363
362
|
title: {
|
|
364
|
-
|
|
363
|
+
color: "text-1",
|
|
365
364
|
"margin-bottom": "md",
|
|
366
365
|
mobile: {
|
|
367
|
-
"font-size": "3xl",
|
|
368
366
|
"margin-bottom": "xs",
|
|
369
367
|
},
|
|
370
368
|
},
|
|
371
369
|
description: {
|
|
372
|
-
|
|
370
|
+
color: "text-2",
|
|
373
371
|
"margin-bottom": "md",
|
|
374
372
|
mobile: {
|
|
375
373
|
"margin-bottom": "xs",
|
|
@@ -389,7 +387,16 @@ export const AboutUs1: IBlock = {
|
|
|
389
387
|
},
|
|
390
388
|
},
|
|
391
389
|
content: DEFAULT_CONTENT,
|
|
392
|
-
config: {
|
|
390
|
+
config: {
|
|
391
|
+
title: {
|
|
392
|
+
heading: {
|
|
393
|
+
level: 2,
|
|
394
|
+
},
|
|
395
|
+
selectedVariants: {
|
|
396
|
+
Heading_Level: "H2",
|
|
397
|
+
},
|
|
398
|
+
},
|
|
399
|
+
},
|
|
393
400
|
},
|
|
394
401
|
{
|
|
395
402
|
key: "cards",
|
|
@@ -520,23 +527,21 @@ export const AboutUs1: IBlock = {
|
|
|
520
527
|
filter: "none",
|
|
521
528
|
},
|
|
522
529
|
label: {
|
|
523
|
-
"
|
|
530
|
+
color: "text-2",
|
|
524
531
|
"margin-bottom": "xs",
|
|
525
|
-
"font-size": "sm",
|
|
526
532
|
mobile: {
|
|
527
533
|
"margin-bottom": "3xs",
|
|
528
534
|
},
|
|
529
535
|
},
|
|
530
536
|
title: {
|
|
531
|
-
|
|
537
|
+
color: "text-1",
|
|
532
538
|
"margin-bottom": "md",
|
|
533
539
|
mobile: {
|
|
534
|
-
"font-size": "3xl",
|
|
535
540
|
"margin-bottom": "xs",
|
|
536
541
|
},
|
|
537
542
|
},
|
|
538
543
|
description: {
|
|
539
|
-
|
|
544
|
+
color: "text-2",
|
|
540
545
|
"margin-bottom": "md",
|
|
541
546
|
mobile: {
|
|
542
547
|
"margin-bottom": "xs",
|
|
@@ -557,7 +562,16 @@ export const AboutUs1: IBlock = {
|
|
|
557
562
|
},
|
|
558
563
|
},
|
|
559
564
|
content: CARDS_CONTENT,
|
|
560
|
-
config: {
|
|
565
|
+
config: {
|
|
566
|
+
title: {
|
|
567
|
+
heading: {
|
|
568
|
+
level: 2,
|
|
569
|
+
},
|
|
570
|
+
selectedVariants: {
|
|
571
|
+
Heading_Level: "H2",
|
|
572
|
+
},
|
|
573
|
+
},
|
|
574
|
+
},
|
|
561
575
|
},
|
|
562
576
|
],
|
|
563
577
|
};
|
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
import type { IBlock } from "@levo-so/studio";
|
|
2
|
+
|
|
3
|
+
const DEFAULT_IMAGE = {
|
|
4
|
+
id: "7141014160938075687",
|
|
5
|
+
location: "https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH.png",
|
|
6
|
+
kind: "image",
|
|
7
|
+
mimetype: "image/png",
|
|
8
|
+
srcset: {
|
|
9
|
+
"1080w":
|
|
10
|
+
"https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-1080w.webp",
|
|
11
|
+
"1200w":
|
|
12
|
+
"https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-1200w.webp",
|
|
13
|
+
"1920w":
|
|
14
|
+
"https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-1920w.webp",
|
|
15
|
+
"320w": "https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-320w.webp",
|
|
16
|
+
"640w": "https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-640w.webp",
|
|
17
|
+
"750w": "https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-750w.webp",
|
|
18
|
+
"828w": "https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-828w.webp",
|
|
19
|
+
path: "https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-640w.webp 640w, https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-1080w.webp 1080w, https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-1200w.webp 1200w, https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-1920w.webp 1920w, https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-320w.webp 320w, https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-750w.webp 750w, https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-828w.webp 828w",
|
|
20
|
+
},
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
const DEFAULT_CONTENT = {
|
|
24
|
+
layout: null,
|
|
25
|
+
container: null,
|
|
26
|
+
main_content: null,
|
|
27
|
+
media_section: null,
|
|
28
|
+
media_column: null,
|
|
29
|
+
firstMedia: DEFAULT_IMAGE,
|
|
30
|
+
secondMedia: DEFAULT_IMAGE,
|
|
31
|
+
thirdMedia: DEFAULT_IMAGE,
|
|
32
|
+
content_section: null,
|
|
33
|
+
title: "About Me",
|
|
34
|
+
description:
|
|
35
|
+
"Guiding You Towards Healthier Living. With a passion for nutrition and evidence-based dietetics, I help individuals make sustainable lifestyle changes that improve health, energy, and overall well-being.",
|
|
36
|
+
stats: [
|
|
37
|
+
{
|
|
38
|
+
stat_item: null,
|
|
39
|
+
number: "200+",
|
|
40
|
+
label: "Clients Guided",
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
stat_item: null,
|
|
44
|
+
number: "10+",
|
|
45
|
+
label: "Years Experience",
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
stat_item: null,
|
|
49
|
+
number: "5+",
|
|
50
|
+
label: "Organizations",
|
|
51
|
+
},
|
|
52
|
+
],
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
export type IAboutUs2Content = typeof DEFAULT_CONTENT;
|
|
56
|
+
|
|
57
|
+
export const AboutUs2: IBlock = {
|
|
58
|
+
category_id: "about-us",
|
|
59
|
+
title: "About Us 2",
|
|
60
|
+
key: "about-us-2",
|
|
61
|
+
version: "v1",
|
|
62
|
+
prompt_description:
|
|
63
|
+
"About section with media gallery on left and content with stats on right. Features title, description and repeatable statistics with numbers and labels.",
|
|
64
|
+
content_schema: [
|
|
65
|
+
{
|
|
66
|
+
key: "layout",
|
|
67
|
+
label: "Layout",
|
|
68
|
+
field_interface: "LayoutWidget",
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
key: "container",
|
|
72
|
+
label: "Container",
|
|
73
|
+
field_interface: "ContainerWidget",
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
key: "main_content",
|
|
77
|
+
label: "Main Content",
|
|
78
|
+
field_interface: "BoxWidget",
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
key: "media_section",
|
|
82
|
+
label: "Media Section",
|
|
83
|
+
field_interface: "BoxWidget",
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
key: "media_column",
|
|
87
|
+
label: "Media Column",
|
|
88
|
+
field_interface: "BoxWidget",
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
key: "firstMedia",
|
|
92
|
+
label: "Media 1",
|
|
93
|
+
field_interface: "MediaWidget",
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
key: "secondMedia",
|
|
97
|
+
label: "Media 2",
|
|
98
|
+
field_interface: "MediaWidget",
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
key: "thirdMedia",
|
|
102
|
+
label: "Media 3",
|
|
103
|
+
field_interface: "MediaWidget",
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
key: "content_section",
|
|
107
|
+
label: "Content Section",
|
|
108
|
+
field_interface: "BoxWidget",
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
key: "title",
|
|
112
|
+
label: "Title",
|
|
113
|
+
field_interface: "HeadingWidget",
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
key: "description",
|
|
117
|
+
label: "Description",
|
|
118
|
+
field_interface: "TypographyWidget",
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
key: "stats",
|
|
122
|
+
label: "Stats",
|
|
123
|
+
kind: "group",
|
|
124
|
+
field_interface: "BoxWidget",
|
|
125
|
+
fields: [
|
|
126
|
+
{
|
|
127
|
+
key: "stat_item",
|
|
128
|
+
label: "Stat Item",
|
|
129
|
+
field_interface: "BoxWidget",
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
key: "number",
|
|
133
|
+
label: "Number",
|
|
134
|
+
field_interface: "TypographyWidget",
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
key: "label",
|
|
138
|
+
label: "Label",
|
|
139
|
+
field_interface: "TypographyWidget",
|
|
140
|
+
},
|
|
141
|
+
],
|
|
142
|
+
},
|
|
143
|
+
],
|
|
144
|
+
layouts: [
|
|
145
|
+
{
|
|
146
|
+
key: "default",
|
|
147
|
+
title: "Default",
|
|
148
|
+
styles: {
|
|
149
|
+
layout: {
|
|
150
|
+
"padding-top": "5xl",
|
|
151
|
+
"padding-bottom": "5xl",
|
|
152
|
+
},
|
|
153
|
+
container: {
|
|
154
|
+
"max-width": "72rem",
|
|
155
|
+
"margin-left": "auto",
|
|
156
|
+
"margin-right": "auto",
|
|
157
|
+
"padding-left": "base",
|
|
158
|
+
"padding-right": "base",
|
|
159
|
+
},
|
|
160
|
+
main_content: {
|
|
161
|
+
display: "flex",
|
|
162
|
+
"align-items": "center",
|
|
163
|
+
"column-gap": "5xl",
|
|
164
|
+
tablet: {
|
|
165
|
+
"flex-direction": "column",
|
|
166
|
+
"row-gap": "3xl",
|
|
167
|
+
},
|
|
168
|
+
},
|
|
169
|
+
media_section: {
|
|
170
|
+
display: "flex",
|
|
171
|
+
"column-gap": "xs",
|
|
172
|
+
width: "50%",
|
|
173
|
+
tablet: {
|
|
174
|
+
width: "100%",
|
|
175
|
+
"justify-content": "center",
|
|
176
|
+
},
|
|
177
|
+
mobile: {
|
|
178
|
+
"flex-direction": "column",
|
|
179
|
+
"row-gap": "xs",
|
|
180
|
+
},
|
|
181
|
+
},
|
|
182
|
+
firstMedia: {
|
|
183
|
+
width: "60%",
|
|
184
|
+
"border-radius": "xl",
|
|
185
|
+
mobile: {
|
|
186
|
+
width: "100%",
|
|
187
|
+
},
|
|
188
|
+
},
|
|
189
|
+
media_column: {
|
|
190
|
+
display: "flex",
|
|
191
|
+
"flex-direction": "column",
|
|
192
|
+
"row-gap": "xs",
|
|
193
|
+
width: "40%",
|
|
194
|
+
mobile: {
|
|
195
|
+
width: "100%",
|
|
196
|
+
"flex-direction": "row",
|
|
197
|
+
"column-gap": "xs",
|
|
198
|
+
},
|
|
199
|
+
},
|
|
200
|
+
secondMedia: {
|
|
201
|
+
"border-radius": "xl",
|
|
202
|
+
mobile: {
|
|
203
|
+
width: "50%",
|
|
204
|
+
},
|
|
205
|
+
},
|
|
206
|
+
thirdMedia: {
|
|
207
|
+
"border-radius": "xl",
|
|
208
|
+
mobile: {
|
|
209
|
+
width: "50%",
|
|
210
|
+
},
|
|
211
|
+
},
|
|
212
|
+
content_section: {
|
|
213
|
+
width: "50%",
|
|
214
|
+
tablet: {
|
|
215
|
+
width: "100%",
|
|
216
|
+
"text-align": "center",
|
|
217
|
+
},
|
|
218
|
+
},
|
|
219
|
+
title: {
|
|
220
|
+
"font-size": "4xl",
|
|
221
|
+
"font-weight": "700",
|
|
222
|
+
color: "text-1",
|
|
223
|
+
"margin-bottom": "lg",
|
|
224
|
+
tablet: {
|
|
225
|
+
"font-size": "3xl",
|
|
226
|
+
},
|
|
227
|
+
mobile: {
|
|
228
|
+
"font-size": "2xl",
|
|
229
|
+
},
|
|
230
|
+
},
|
|
231
|
+
description: {
|
|
232
|
+
"font-size": "base",
|
|
233
|
+
color: "text-2",
|
|
234
|
+
"line-height": "1.6",
|
|
235
|
+
"margin-bottom": "2xl",
|
|
236
|
+
},
|
|
237
|
+
stats_levoGroup: {
|
|
238
|
+
display: "flex",
|
|
239
|
+
"flex-direction": "row",
|
|
240
|
+
"row-gap": "lg",
|
|
241
|
+
"justify-content": "space-between",
|
|
242
|
+
},
|
|
243
|
+
stat_item: {
|
|
244
|
+
display: "flex",
|
|
245
|
+
"align-items": "center",
|
|
246
|
+
"column-gap": "base",
|
|
247
|
+
tablet: {
|
|
248
|
+
"justify-content": "center",
|
|
249
|
+
},
|
|
250
|
+
},
|
|
251
|
+
number: {
|
|
252
|
+
"font-size": "3xl",
|
|
253
|
+
"font-weight": "700",
|
|
254
|
+
color: "text-1",
|
|
255
|
+
tablet: {
|
|
256
|
+
"font-size": "2xl",
|
|
257
|
+
},
|
|
258
|
+
},
|
|
259
|
+
label: {
|
|
260
|
+
"font-size": "base",
|
|
261
|
+
color: "text-2",
|
|
262
|
+
"font-weight": "500",
|
|
263
|
+
},
|
|
264
|
+
},
|
|
265
|
+
content: DEFAULT_CONTENT,
|
|
266
|
+
config: {},
|
|
267
|
+
},
|
|
268
|
+
],
|
|
269
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import {
|
|
2
|
+
type ILevoBlockBaseProps,
|
|
3
|
+
Section,
|
|
4
|
+
Container,
|
|
5
|
+
Box,
|
|
6
|
+
Heading,
|
|
7
|
+
Typography,
|
|
8
|
+
Media,
|
|
9
|
+
} from "@levo-so/studio";
|
|
10
|
+
|
|
11
|
+
import type { IAboutUs2Content } from "./about-us-2.schema";
|
|
12
|
+
|
|
13
|
+
const AboutUs2: React.FC<ILevoBlockBaseProps<IAboutUs2Content>> = ({
|
|
14
|
+
content,
|
|
15
|
+
}) => (
|
|
16
|
+
<Section elementKey="layout">
|
|
17
|
+
<Container elementKey="container">
|
|
18
|
+
<Box elementKey="main_content">
|
|
19
|
+
<Box elementKey="media_section">
|
|
20
|
+
<Media elementKey="firstMedia" alt="About image" />
|
|
21
|
+
<Box elementKey="media_column">
|
|
22
|
+
<Media elementKey="secondMedia" alt="About image" />
|
|
23
|
+
<Media elementKey="thirdMedia" alt="About image" />
|
|
24
|
+
</Box>
|
|
25
|
+
</Box>
|
|
26
|
+
<Box elementKey="content_section">
|
|
27
|
+
<Heading elementKey="title" />
|
|
28
|
+
<Typography elementKey="description" />
|
|
29
|
+
<Box elementKey="stats_levoGroup" data-levo_group>
|
|
30
|
+
{(content?.stats ?? []).map((_, index) => (
|
|
31
|
+
<Box
|
|
32
|
+
key={index}
|
|
33
|
+
data-levo_group_item
|
|
34
|
+
elementKey={`stats.${index}.stat_item`}
|
|
35
|
+
>
|
|
36
|
+
<Heading elementKey={`stats.${index}.number`} />
|
|
37
|
+
<Typography elementKey={`stats.${index}.label`} />
|
|
38
|
+
</Box>
|
|
39
|
+
))}
|
|
40
|
+
</Box>
|
|
41
|
+
</Box>
|
|
42
|
+
</Box>
|
|
43
|
+
</Container>
|
|
44
|
+
</Section>
|
|
45
|
+
);
|
|
46
|
+
|
|
47
|
+
export default AboutUs2;
|
|
@@ -62,13 +62,17 @@ const DEFAULT_CONTENT = {
|
|
|
62
62
|
blogs: Array(3)
|
|
63
63
|
?.fill(0)
|
|
64
64
|
?.map((_) => BLOG_CONTENT),
|
|
65
|
+
"pagination-wrapper": null,
|
|
66
|
+
"pagination-left": "Back",
|
|
67
|
+
"pagination-text": "",
|
|
68
|
+
"pagination-right": "Next",
|
|
65
69
|
};
|
|
66
70
|
|
|
67
71
|
const BLOG_STYLE = {
|
|
68
72
|
blog: {
|
|
69
73
|
display: "flex",
|
|
70
74
|
"column-gap": "lg",
|
|
71
|
-
"border-radius": "
|
|
75
|
+
"border-radius": "base",
|
|
72
76
|
"border-width": "1.5px",
|
|
73
77
|
"border-style": "solid",
|
|
74
78
|
"border-color": "border",
|
|
@@ -81,7 +85,7 @@ const BLOG_STYLE = {
|
|
|
81
85
|
cover_image: {
|
|
82
86
|
height: "184px",
|
|
83
87
|
width: "64",
|
|
84
|
-
"border-radius": "
|
|
88
|
+
"border-radius": "base",
|
|
85
89
|
"object-fit": "cover",
|
|
86
90
|
},
|
|
87
91
|
blog_content_wrapper: {
|
|
@@ -122,8 +126,6 @@ const BLOG_STYLE = {
|
|
|
122
126
|
"row-gap": "3xs",
|
|
123
127
|
},
|
|
124
128
|
title: {
|
|
125
|
-
"font-size": "xl",
|
|
126
|
-
"font-weight": "bold",
|
|
127
129
|
color: "text-1",
|
|
128
130
|
},
|
|
129
131
|
description: {
|
|
@@ -142,8 +144,6 @@ const BLOG_STYLE = {
|
|
|
142
144
|
"object-fit": "cover",
|
|
143
145
|
},
|
|
144
146
|
author_name: {
|
|
145
|
-
"font-size": "base",
|
|
146
|
-
"font-weight": "semibold",
|
|
147
147
|
color: "text-1",
|
|
148
148
|
},
|
|
149
149
|
author_description: {
|
|
@@ -363,6 +363,46 @@ export const BlogListing1: IBlock = {
|
|
|
363
363
|
},
|
|
364
364
|
],
|
|
365
365
|
},
|
|
366
|
+
|
|
367
|
+
{
|
|
368
|
+
key: "pagination-wrapper",
|
|
369
|
+
label: "Pagination Wrapper",
|
|
370
|
+
field_interface: "BoxWidget",
|
|
371
|
+
// Layout grouping only – no hint needed
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
key: "pagination-left",
|
|
375
|
+
label: "Pagination Left",
|
|
376
|
+
field_interface: "ButtonWidget",
|
|
377
|
+
hint: {
|
|
378
|
+
prompt_description:
|
|
379
|
+
"Pagination control button to navigate to the previous page of blog cards. Keep the label brief, such as 'Previous' or a left arrow. Tone should be neutral and functional.",
|
|
380
|
+
min_characters: 5,
|
|
381
|
+
max_characters: 12,
|
|
382
|
+
},
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
key: "pagination-text",
|
|
386
|
+
label: "Pagination text",
|
|
387
|
+
field_interface: "TypographyWidget",
|
|
388
|
+
hint: {
|
|
389
|
+
prompt_description:
|
|
390
|
+
"Displays current and total page number in the paginator, e.g. '1/3' or 'Page 2 of 4'. Should be minimal, clear, and unambiguous.",
|
|
391
|
+
min_characters: 3,
|
|
392
|
+
max_characters: 12,
|
|
393
|
+
},
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
key: "pagination-right",
|
|
397
|
+
label: "Pagination Right",
|
|
398
|
+
field_interface: "ButtonWidget",
|
|
399
|
+
hint: {
|
|
400
|
+
prompt_description:
|
|
401
|
+
"Pagination control button to navigate to the next page of blog cards. Should be concise, such as 'Next' or a right arrow. Neutral tone.",
|
|
402
|
+
min_characters: 4,
|
|
403
|
+
max_characters: 8,
|
|
404
|
+
},
|
|
405
|
+
},
|
|
366
406
|
],
|
|
367
407
|
layouts: [
|
|
368
408
|
{
|
|
@@ -375,7 +415,7 @@ export const BlogListing1: IBlock = {
|
|
|
375
415
|
"align-items": "center",
|
|
376
416
|
"justify-content": "center",
|
|
377
417
|
gap: "xl",
|
|
378
|
-
"border-radius": "
|
|
418
|
+
"border-radius": "base",
|
|
379
419
|
"background-color": "white",
|
|
380
420
|
"padding-left": "8xl",
|
|
381
421
|
"padding-right": "8xl",
|
|
@@ -396,8 +436,6 @@ export const BlogListing1: IBlock = {
|
|
|
396
436
|
"row-gap": "2xs",
|
|
397
437
|
},
|
|
398
438
|
title: {
|
|
399
|
-
"font-size": "3xl",
|
|
400
|
-
"font-weight": "bold",
|
|
401
439
|
color: "text-1",
|
|
402
440
|
},
|
|
403
441
|
description: {
|
|
@@ -411,9 +449,25 @@ export const BlogListing1: IBlock = {
|
|
|
411
449
|
"row-gap": "xl",
|
|
412
450
|
},
|
|
413
451
|
blogs: BLOGS_STYLES,
|
|
452
|
+
"pagination-wrapper": {
|
|
453
|
+
display: "flex",
|
|
454
|
+
width: "full",
|
|
455
|
+
"justify-content": "center",
|
|
456
|
+
"align-items": "center",
|
|
457
|
+
"column-gap": "md",
|
|
458
|
+
},
|
|
414
459
|
},
|
|
415
460
|
content: DEFAULT_CONTENT,
|
|
416
|
-
config: {
|
|
461
|
+
config: {
|
|
462
|
+
title: {
|
|
463
|
+
heading: {
|
|
464
|
+
level: 2,
|
|
465
|
+
},
|
|
466
|
+
selectedVariants: {
|
|
467
|
+
Heading_Level: "H2",
|
|
468
|
+
},
|
|
469
|
+
},
|
|
470
|
+
},
|
|
417
471
|
},
|
|
418
472
|
],
|
|
419
473
|
};
|