@levo-so/blocks 0.1.60 → 0.1.61
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 +13 -14
- package/src/blocks/about-us/about-us-1.schema.ts +15 -30
- package/src/blocks/about-us/about-us-1.tsx +2 -4
- package/src/blocks/about-us/about-us-2.schema.ts +24 -48
- package/src/blocks/about-us/about-us-2.tsx +7 -13
- package/src/blocks/blogs/blog-listing-1.schema.ts +7 -14
- package/src/blocks/blogs/blog-listing-1.tsx +10 -21
- package/src/blocks/blogs/blog-listing-2.schema.ts +17 -34
- package/src/blocks/blogs/blog-listing-2.tsx +4 -12
- package/src/blocks/blogs/blog-listing-3.schema.ts +32 -64
- package/src/blocks/blogs/blog-listing-3.tsx +4 -12
- package/src/blocks/blogs/blog-post-1.schema.ts +9 -18
- package/src/blocks/blogs/blog-post-1.tsx +3 -14
- package/src/blocks/calendar/calendar-1.schema.ts +95 -6
- package/src/blocks/calendar/calendar-1.tsx +33 -29
- package/src/blocks/cards/cards-10.schema.ts +62 -124
- package/src/blocks/cards/cards-10.tsx +9 -14
- package/src/blocks/cards/cards-11.schema.ts +69 -138
- package/src/blocks/cards/cards-11.tsx +5 -11
- package/src/blocks/cards/cards-12.schema.ts +7 -14
- package/src/blocks/cards/cards-12.tsx +4 -10
- package/src/blocks/cards/cards-13.schema.ts +40 -80
- package/src/blocks/cards/cards-13.tsx +4 -6
- package/src/blocks/cards/cards-14.schema.ts +7 -14
- package/src/blocks/cards/cards-14.tsx +5 -11
- package/src/blocks/cards/cards-15.schema.ts +7 -14
- package/src/blocks/cards/cards-15.tsx +2 -4
- package/src/blocks/cards/cards-2.schema.ts +7 -14
- package/src/blocks/cards/cards-2.tsx +2 -15
- package/src/blocks/cards/cards-3.schema.ts +7 -14
- package/src/blocks/cards/cards-3.tsx +7 -13
- package/src/blocks/cards/cards-4.schema.ts +13 -26
- package/src/blocks/cards/cards-4.tsx +9 -15
- package/src/blocks/cards/cards-5.schema.ts +17 -34
- package/src/blocks/cards/cards-5.tsx +1 -9
- package/src/blocks/cards/cards-6.schema.ts +52 -104
- package/src/blocks/cards/cards-6.tsx +12 -20
- package/src/blocks/cards/cards-7.schema.ts +48 -96
- package/src/blocks/cards/cards-7.tsx +8 -27
- package/src/blocks/cards/cards-8.schema.ts +9 -20
- package/src/blocks/cards/cards-8.tsx +5 -11
- package/src/blocks/cards/cards-9.schema.ts +41 -82
- package/src/blocks/cards/cards-9.tsx +14 -22
- package/src/blocks/carousel/carousel-1.schema.ts +64 -128
- package/src/blocks/carousel/carousel-1.tsx +6 -8
- package/src/blocks/carousel/carousel-2.schema.ts +26 -52
- package/src/blocks/carousel/carousel-2.tsx +11 -23
- package/src/blocks/community/community-1.schema.ts +78 -32
- package/src/blocks/community/community-1.tsx +417 -550
- package/src/blocks/community/community-post-1.schema.ts +21 -30
- package/src/blocks/community/community-post-1.tsx +334 -84
- package/src/blocks/contact-us/contact-us-1.schema.ts +8 -16
- package/src/blocks/contact-us/contact-us-1.tsx +2 -12
- package/src/blocks/contact-us/contact-us-2.tsx +20 -31
- package/src/blocks/content/content-1.schema.ts +21 -42
- package/src/blocks/content/content-1.tsx +10 -17
- package/src/blocks/content/content-2.schema.ts +29 -58
- package/src/blocks/content/content-2.tsx +4 -4
- package/src/blocks/content/content-3.tsx +13 -29
- package/src/blocks/content/content-4.schema.ts +23 -46
- package/src/blocks/content/content-4.tsx +8 -17
- package/src/blocks/content/content-5.schema.ts +29 -24
- package/src/blocks/content/content-5.tsx +13 -27
- package/src/blocks/content/content-6.schema.ts +46 -94
- package/src/blocks/content/content-6.tsx +14 -31
- package/src/blocks/content/content-7.schema.ts +35 -72
- package/src/blocks/content/content-7.tsx +15 -31
- package/src/blocks/content/content-8.schema.ts +1 -6
- package/src/blocks/content/content-8.tsx +3 -3
- package/src/blocks/content/content-9.tsx +26 -41
- package/src/blocks/cta/cta-1.schema.ts +10 -20
- package/src/blocks/cta/cta-2.schema.ts +14 -28
- package/src/blocks/cta/cta-2.tsx +2 -6
- package/src/blocks/cta/cta-3.schema.ts +24 -50
- package/src/blocks/cta/cta-3.tsx +2 -6
- package/src/blocks/embed/embed-1.tsx +1 -9
- package/src/blocks/event/ClientOnly.tsx +1 -4
- package/src/blocks/event/event-details.schema.ts +16 -32
- package/src/blocks/event/event-details.tsx +8 -23
- package/src/blocks/event/event-listing-2.schema.ts +19 -38
- package/src/blocks/event/event-listing-2.tsx +12 -23
- package/src/blocks/event/event-listing-3.schema.ts +10 -20
- package/src/blocks/event/event-listing-3.tsx +9 -15
- package/src/blocks/event/event-listing-4.schema.ts +40 -80
- package/src/blocks/event/event-listing-4.tsx +5 -13
- package/src/blocks/event/event-listing.schema.ts +12 -24
- package/src/blocks/event/event-listing.tsx +9 -15
- package/src/blocks/faq/faq-1.schema.ts +8 -16
- package/src/blocks/faq/faq-1.tsx +19 -30
- package/src/blocks/faq/faq-2.schema.ts +8 -16
- package/src/blocks/faq/faq-2.tsx +11 -10
- package/src/blocks/faq/faq-3.schema.ts +9 -18
- package/src/blocks/faq/faq-3.tsx +11 -19
- package/src/blocks/features/features-1/features-1.tsx +2 -4
- package/src/blocks/features/features-1/variants/default.ts +4 -8
- package/src/blocks/features/features-1/variants/index.ts +1 -1
- package/src/blocks/features/features-2.schema.ts +32 -64
- package/src/blocks/features/features-2.tsx +8 -10
- package/src/blocks/features/features-3.schema.ts +32 -64
- package/src/blocks/features/features-3.tsx +7 -16
- package/src/blocks/features/features-4.schema.ts +16 -32
- package/src/blocks/features/features-4.tsx +3 -7
- package/src/blocks/features/features-5.schema.ts +1 -2
- package/src/blocks/features/features-5.tsx +6 -17
- package/src/blocks/features/features-6.schema.ts +32 -64
- package/src/blocks/features/features-6.tsx +16 -36
- package/src/blocks/filter-listing/filter-listing-1.tsx +12 -36
- package/src/blocks/floating-buttons/floating-button-1.schema.ts +5 -10
- package/src/blocks/floating-buttons/floating-button-1.tsx +3 -9
- package/src/blocks/footer/footer-1.schema.ts +8 -16
- package/src/blocks/footer/footer-1.tsx +15 -30
- package/src/blocks/footer/footer-2.schema.ts +8 -16
- package/src/blocks/footer/footer-2.tsx +17 -28
- package/src/blocks/footer/footer-3.schema.ts +1 -2
- package/src/blocks/footer/footer-3.tsx +9 -25
- package/src/blocks/footer/footer-4.schema.ts +8 -16
- package/src/blocks/footer/footer-4.tsx +35 -54
- package/src/blocks/footer/footer-5.schema.ts +10 -24
- package/src/blocks/footer/footer-5.tsx +14 -29
- package/src/blocks/footer/footer-6.schema.ts +10 -25
- package/src/blocks/footer/footer-6.tsx +29 -44
- package/src/blocks/form/form-1.schema.ts +144 -0
- package/src/blocks/form/form-1.tsx +33 -0
- package/src/blocks/hero/hero-1.schema.ts +45 -90
- package/src/blocks/hero/hero-1.tsx +4 -4
- package/src/blocks/hero/hero-10.schema.ts +1 -2
- package/src/blocks/hero/hero-10.tsx +4 -4
- package/src/blocks/hero/hero-11.schema.ts +18 -14
- package/src/blocks/hero/hero-11.tsx +4 -9
- package/src/blocks/hero/hero-12.schema.ts +18 -36
- package/src/blocks/hero/hero-12.tsx +3 -6
- package/src/blocks/hero/hero-13.schema.ts +8 -16
- package/src/blocks/hero/hero-13.tsx +1 -1
- package/src/blocks/hero/hero-2.schema.ts +3 -6
- package/src/blocks/hero/hero-2.tsx +3 -21
- package/src/blocks/hero/hero-3.schema.ts +28 -56
- package/src/blocks/hero/hero-3.tsx +6 -15
- package/src/blocks/hero/hero-4.schema.ts +22 -44
- package/src/blocks/hero/hero-4.tsx +16 -27
- package/src/blocks/hero/hero-5.schema.ts +21 -42
- package/src/blocks/hero/hero-5.tsx +15 -18
- package/src/blocks/hero/hero-6.schema.ts +35 -70
- package/src/blocks/hero/hero-6.tsx +6 -6
- package/src/blocks/hero/hero-7.schema.ts +24 -48
- package/src/blocks/hero/hero-7.tsx +2 -3
- package/src/blocks/hero/hero-8.schema.ts +24 -50
- package/src/blocks/hero/hero-8.tsx +5 -19
- package/src/blocks/hero/hero-9.schema.ts +8 -16
- package/src/blocks/hero/hero-9.tsx +3 -3
- package/src/blocks/index.ts +8 -11
- package/src/blocks/jobs/jobs-1.schema.ts +990 -0
- package/src/blocks/jobs/jobs-1.tsx +145 -0
- package/src/blocks/logos/logos-1.schema.ts +53 -113
- package/src/blocks/logos/logos-1.tsx +7 -7
- package/src/blocks/navbar/navbar-1.schema.ts +15 -28
- package/src/blocks/navbar/navbar-1.tsx +24 -60
- package/src/blocks/navbar/navbar-2.schema.ts +14 -28
- package/src/blocks/navbar/navbar-2.tsx +26 -56
- package/src/blocks/navbar/navbar-3.schema.ts +11 -22
- package/src/blocks/navbar/navbar-3.tsx +33 -82
- package/src/blocks/navbar/navbar-4.schema.ts +14343 -0
- package/src/blocks/navbar/navbar-4.tsx +546 -0
- package/src/blocks/polling/polling-1.schema.ts +1 -2
- package/src/blocks/polling/polling-1.tsx +24 -39
- package/src/blocks/pricing/pricing-1.schema.ts +13 -26
- package/src/blocks/pricing/pricing-1.tsx +20 -44
- package/src/blocks/products/products-listing-1.schema.ts +32 -64
- package/src/blocks/products/products-listing-1.tsx +6 -12
- package/src/blocks/products/products-listing-2.schema.ts +26 -54
- package/src/blocks/products/products-listing-2.tsx +8 -17
- package/src/blocks/products/products-listing-3.schema.ts +25 -52
- package/src/blocks/products/products-listing-3.tsx +87 -93
- package/src/blocks/profile/profile-1.schema.ts +7 -14
- package/src/blocks/profile/profile-1.tsx +2 -8
- package/src/blocks/profile/profile-2.schema.ts +9 -18
- package/src/blocks/profile/profile-2.tsx +4 -6
- package/src/blocks/profile/profile-3.schema.ts +21 -42
- package/src/blocks/profile/profile-3.tsx +18 -40
- package/src/blocks/{blogs/blog-post-2.schema.ts → profile/profile-4.schema.ts} +75 -97
- package/src/blocks/{blogs/blog-post-2.tsx → profile/profile-4.tsx} +32 -61
- package/src/blocks/{blogs/blog-post-3.schema.ts → profile/profile-5.schema.ts} +6 -6
- package/src/blocks/{blogs/blog-post-3.tsx → profile/profile-5.tsx} +6 -11
- package/src/blocks/services/service-1.schema.ts +20 -40
- package/src/blocks/services/service-1.tsx +45 -71
- package/src/blocks/services/service-2.schema.ts +8 -16
- package/src/blocks/services/service-2.tsx +4 -6
- package/src/blocks/services/service-3.schema.ts +12 -24
- package/src/blocks/services/service-3.tsx +4 -6
- package/src/blocks/stats/stats-1.tsx +3 -14
- package/src/blocks/stats/stats-2.tsx +3 -14
- package/src/blocks/stats/variants/index.ts +1 -1
- package/src/blocks/tabs/tab-1.schema.ts +4 -8
- package/src/blocks/tabs/tab-1.tsx +47 -64
- package/src/blocks/tabs/tab-2.schema.ts +13 -26
- package/src/blocks/tabs/tab-2.tsx +14 -15
- package/src/blocks/team/team-1.schema.ts +28 -56
- package/src/blocks/team/team-1.tsx +7 -21
- package/src/blocks/team/team-2.schema.ts +104 -208
- package/src/blocks/team/team-2.tsx +15 -33
- package/src/blocks/team/team-3.schema.ts +24 -48
- package/src/blocks/team/team-3.tsx +8 -14
- package/src/blocks/team/team-4.schema.ts +25 -50
- package/src/blocks/team/team-4.tsx +15 -24
- package/src/blocks/team/team-5.schema.ts +14 -28
- package/src/blocks/team/team-5.tsx +1 -1
- package/src/blocks/termsAndPrivacy/terms-and-conditions-1.tsx +3 -5
- package/src/blocks/testimonial/testimonial-1.schema.ts +1 -2
- package/src/blocks/testimonial/testimonial-1.tsx +10 -19
- package/src/blocks/testimonial/testimonial-2.schema.ts +16 -32
- package/src/blocks/testimonial/testimonial-2.tsx +17 -36
- package/src/blocks/testimonial/testimonial-3.schema.ts +8 -16
- package/src/blocks/testimonial/testimonial-3.tsx +13 -26
- package/src/blocks/testimonial/testimonial-4.schema.ts +94 -188
- package/src/blocks/testimonial/testimonial-4.tsx +12 -33
- package/src/blocks/testimonial/testimonial-5/variants/default.ts +24 -48
- package/src/blocks/testimonial/testimonial-5/variants/index.ts +1 -1
- package/src/blocks/testimonial/testimonial-5/variants/testimonialWithLogo.ts +4 -8
- package/src/blocks/testimonial/testimonial-5/variants/testimonialWithRatings.ts +24 -48
- package/src/blocks/testimonial/testimonial-5.schema.ts +2 -6
- package/src/blocks/testimonial/testimonial-5.tsx +15 -25
- package/src/blocks/testimonial/testimonial-6.schema.ts +26 -52
- package/src/blocks/testimonial/testimonial-6.tsx +9 -25
- package/src/blocks/testimonial/testimonial-7.tsx +15 -26
- package/src/blocks/timeline/timeline-1.schema.ts +34 -68
- package/src/blocks/timeline/timeline-1.tsx +2 -6
- package/src/blocks/users/edit-profile.tsx +10 -22
- package/src/constants/index.ts +3 -6
- package/src/index.ts +1 -1
- package/src/schemas/blocks.ts +14 -8
- package/src/schemas/categories.ts +14 -2
|
@@ -1,23 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
Heading,
|
|
4
|
-
Image,
|
|
5
|
-
Typography,
|
|
6
|
-
Container,
|
|
7
|
-
Section,
|
|
8
|
-
Box,
|
|
9
|
-
AccordionRoot,
|
|
2
|
+
AccordionContent,
|
|
10
3
|
AccordionItem,
|
|
4
|
+
AccordionRoot,
|
|
11
5
|
AccordionTrigger,
|
|
12
|
-
|
|
6
|
+
Box,
|
|
7
|
+
Container,
|
|
8
|
+
Heading,
|
|
13
9
|
Icon,
|
|
10
|
+
type ILevoBlockBaseProps,
|
|
11
|
+
Image,
|
|
12
|
+
Section,
|
|
13
|
+
Typography,
|
|
14
14
|
} from "@levo-so/studio";
|
|
15
15
|
|
|
16
16
|
import type { IContent9Content } from "./content-9.schema";
|
|
17
17
|
|
|
18
|
-
const Content9: React.FC<ILevoBlockBaseProps<IContent9Content>> = ({
|
|
19
|
-
content,
|
|
20
|
-
}) => (
|
|
18
|
+
const Content9: React.FC<ILevoBlockBaseProps<IContent9Content>> = ({ content }) => (
|
|
21
19
|
<Section elementKey="layout">
|
|
22
20
|
<Container elementKey="container">
|
|
23
21
|
<Box elementKey="header">
|
|
@@ -50,36 +48,23 @@ const Content9: React.FC<ILevoBlockBaseProps<IContent9Content>> = ({
|
|
|
50
48
|
</AccordionTrigger>
|
|
51
49
|
<AccordionContent elementKey={`sections.${index}.content`}>
|
|
52
50
|
<Box elementKey={`sections.${index}.container`}>
|
|
53
|
-
<Box
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
elementKey={`sections.${index}.cards.${cardIndex}.
|
|
63
|
-
>
|
|
64
|
-
<Box
|
|
65
|
-
elementKey={`sections.${index}.cards.${cardIndex}.label_container`}
|
|
66
|
-
>
|
|
67
|
-
<Box
|
|
68
|
-
elementKey={`sections.${index}.cards.${cardIndex}.label_divider`}
|
|
69
|
-
/>
|
|
70
|
-
<Typography
|
|
71
|
-
elementKey={`sections.${index}.cards.${cardIndex}.label`}
|
|
72
|
-
/>
|
|
73
|
-
</Box>
|
|
74
|
-
<Heading
|
|
75
|
-
elementKey={`sections.${index}.cards.${cardIndex}.title`}
|
|
76
|
-
/>
|
|
77
|
-
<Typography
|
|
78
|
-
elementKey={`sections.${index}.cards.${cardIndex}.description`}
|
|
79
|
-
/>
|
|
51
|
+
<Box elementKey={`sections.${index}.cards_levoGroup`} data-levo_group>
|
|
52
|
+
{(content.sections?.[index]?.cards ?? []).map((_, cardIndex) => (
|
|
53
|
+
<Box
|
|
54
|
+
key={cardIndex}
|
|
55
|
+
data-levo_group_item
|
|
56
|
+
elementKey={`sections.${index}.cards.${cardIndex}.card`}
|
|
57
|
+
>
|
|
58
|
+
<Box elementKey={`sections.${index}.cards.${cardIndex}.label_container`}>
|
|
59
|
+
<Box elementKey={`sections.${index}.cards.${cardIndex}.label_divider`} />
|
|
60
|
+
<Typography elementKey={`sections.${index}.cards.${cardIndex}.label`} />
|
|
80
61
|
</Box>
|
|
81
|
-
|
|
82
|
-
|
|
62
|
+
<Heading elementKey={`sections.${index}.cards.${cardIndex}.title`} />
|
|
63
|
+
<Typography
|
|
64
|
+
elementKey={`sections.${index}.cards.${cardIndex}.description`}
|
|
65
|
+
/>
|
|
66
|
+
</Box>
|
|
67
|
+
))}
|
|
83
68
|
</Box>
|
|
84
69
|
</Box>
|
|
85
70
|
</AccordionContent>
|
|
@@ -15,8 +15,7 @@ const DEFAULT_CONTENT = {
|
|
|
15
15
|
ctaIcon: {
|
|
16
16
|
id: "9GFRzqRPswl8h",
|
|
17
17
|
kind: "image",
|
|
18
|
-
location:
|
|
19
|
-
"https://static.levocdn.com/WLZ1TXTD/arrow-right-tryvMJ0Z2DosG.svg",
|
|
18
|
+
location: "https://static.levocdn.com/WLZ1TXTD/arrow-right-tryvMJ0Z2DosG.svg",
|
|
20
19
|
srcset: {},
|
|
21
20
|
},
|
|
22
21
|
cta2_rightIcon: {
|
|
@@ -27,20 +26,13 @@ const DEFAULT_CONTENT = {
|
|
|
27
26
|
kind: "image",
|
|
28
27
|
location: "https://static.levostg.online/W6OEVMW8/image-rSCelHPGNUnO.png",
|
|
29
28
|
srcset: {
|
|
30
|
-
"1080w":
|
|
31
|
-
|
|
32
|
-
"
|
|
33
|
-
|
|
34
|
-
"
|
|
35
|
-
|
|
36
|
-
"
|
|
37
|
-
"https://static.levostg.online/W6OEVMW8/image-rSCelHPGNUnO-320w.webp",
|
|
38
|
-
"640w":
|
|
39
|
-
"https://static.levostg.online/W6OEVMW8/image-rSCelHPGNUnO-640w.webp",
|
|
40
|
-
"750w":
|
|
41
|
-
"https://static.levostg.online/W6OEVMW8/image-rSCelHPGNUnO-750w.webp",
|
|
42
|
-
"828w":
|
|
43
|
-
"https://static.levostg.online/W6OEVMW8/image-rSCelHPGNUnO-828w.webp",
|
|
29
|
+
"1080w": "https://static.levostg.online/W6OEVMW8/image-rSCelHPGNUnO-1080w.webp",
|
|
30
|
+
"1200w": "https://static.levostg.online/W6OEVMW8/image-rSCelHPGNUnO-1200w.webp",
|
|
31
|
+
"1920w": "https://static.levostg.online/W6OEVMW8/image-rSCelHPGNUnO-1920w.webp",
|
|
32
|
+
"320w": "https://static.levostg.online/W6OEVMW8/image-rSCelHPGNUnO-320w.webp",
|
|
33
|
+
"640w": "https://static.levostg.online/W6OEVMW8/image-rSCelHPGNUnO-640w.webp",
|
|
34
|
+
"750w": "https://static.levostg.online/W6OEVMW8/image-rSCelHPGNUnO-750w.webp",
|
|
35
|
+
"828w": "https://static.levostg.online/W6OEVMW8/image-rSCelHPGNUnO-828w.webp",
|
|
44
36
|
path: "https://static.levostg.online/W6OEVMW8/image-rSCelHPGNUnO-320w.webp 320w, https://static.levostg.online/W6OEVMW8/image-rSCelHPGNUnO-1080w.webp 1080w, https://static.levostg.online/W6OEVMW8/image-rSCelHPGNUnO-828w.webp 828w, https://static.levostg.online/W6OEVMW8/image-rSCelHPGNUnO-640w.webp 640w, https://static.levostg.online/W6OEVMW8/image-rSCelHPGNUnO-1200w.webp 1200w, https://static.levostg.online/W6OEVMW8/image-rSCelHPGNUnO-750w.webp 750w, https://static.levostg.online/W6OEVMW8/image-rSCelHPGNUnO-1920w.webp 1920w",
|
|
45
37
|
},
|
|
46
38
|
mimetype: "image/png",
|
|
@@ -74,8 +66,7 @@ export const Cta1: IBlock = {
|
|
|
74
66
|
label: "Container",
|
|
75
67
|
field_interface: "ContainerWidget",
|
|
76
68
|
hint: {
|
|
77
|
-
prompt_description:
|
|
78
|
-
"Main container for centering and constraining the content width.",
|
|
69
|
+
prompt_description: "Main container for centering and constraining the content width.",
|
|
79
70
|
},
|
|
80
71
|
},
|
|
81
72
|
{
|
|
@@ -83,8 +74,7 @@ export const Cta1: IBlock = {
|
|
|
83
74
|
label: "Header Container",
|
|
84
75
|
field_interface: "BoxWidget",
|
|
85
76
|
hint: {
|
|
86
|
-
prompt_description:
|
|
87
|
-
"Container for the header content, used for layout and spacing.",
|
|
77
|
+
prompt_description: "Container for the header content, used for layout and spacing.",
|
|
88
78
|
},
|
|
89
79
|
},
|
|
90
80
|
{
|
|
@@ -6,20 +6,13 @@ const MEDIA_1 = {
|
|
|
6
6
|
kind: "image",
|
|
7
7
|
location: "https://static.levocdn.com/WLZ1TXTD/cta-2-1-XZbHqbcweGmtm.png",
|
|
8
8
|
srcset: {
|
|
9
|
-
"1080w":
|
|
10
|
-
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
-
"
|
|
16
|
-
"https://static.levocdn.com/WLZ1TXTD/cta-2-1-XZbHqbcweGmtm-320w.webp",
|
|
17
|
-
"640w":
|
|
18
|
-
"https://static.levocdn.com/WLZ1TXTD/cta-2-1-XZbHqbcweGmtm-640w.webp",
|
|
19
|
-
"750w":
|
|
20
|
-
"https://static.levocdn.com/WLZ1TXTD/cta-2-1-XZbHqbcweGmtm-750w.webp",
|
|
21
|
-
"828w":
|
|
22
|
-
"https://static.levocdn.com/WLZ1TXTD/cta-2-1-XZbHqbcweGmtm-828w.webp",
|
|
9
|
+
"1080w": "https://static.levocdn.com/WLZ1TXTD/cta-2-1-XZbHqbcweGmtm-1080w.webp",
|
|
10
|
+
"1200w": "https://static.levocdn.com/WLZ1TXTD/cta-2-1-XZbHqbcweGmtm-1200w.webp",
|
|
11
|
+
"1920w": "https://static.levocdn.com/WLZ1TXTD/cta-2-1-XZbHqbcweGmtm-1920w.webp",
|
|
12
|
+
"320w": "https://static.levocdn.com/WLZ1TXTD/cta-2-1-XZbHqbcweGmtm-320w.webp",
|
|
13
|
+
"640w": "https://static.levocdn.com/WLZ1TXTD/cta-2-1-XZbHqbcweGmtm-640w.webp",
|
|
14
|
+
"750w": "https://static.levocdn.com/WLZ1TXTD/cta-2-1-XZbHqbcweGmtm-750w.webp",
|
|
15
|
+
"828w": "https://static.levocdn.com/WLZ1TXTD/cta-2-1-XZbHqbcweGmtm-828w.webp",
|
|
23
16
|
path: "https://static.levocdn.com/WLZ1TXTD/cta-2-1-XZbHqbcweGmtm-828w.webp 828w, https://static.levocdn.com/WLZ1TXTD/cta-2-1-XZbHqbcweGmtm-1080w.webp 1080w, https://static.levocdn.com/WLZ1TXTD/cta-2-1-XZbHqbcweGmtm-1200w.webp 1200w, https://static.levocdn.com/WLZ1TXTD/cta-2-1-XZbHqbcweGmtm-1920w.webp 1920w, https://static.levocdn.com/WLZ1TXTD/cta-2-1-XZbHqbcweGmtm-320w.webp 320w, https://static.levocdn.com/WLZ1TXTD/cta-2-1-XZbHqbcweGmtm-640w.webp 640w, https://static.levocdn.com/WLZ1TXTD/cta-2-1-XZbHqbcweGmtm-750w.webp 750w",
|
|
24
17
|
},
|
|
25
18
|
mimetype: "image/png",
|
|
@@ -31,20 +24,13 @@ const MEDIA_2 = {
|
|
|
31
24
|
kind: "image",
|
|
32
25
|
location: "https://static.levocdn.com/WLZ1TXTD/cta-2-2-sR8GfjjdTwkQF.jpg",
|
|
33
26
|
srcset: {
|
|
34
|
-
"1080w":
|
|
35
|
-
|
|
36
|
-
"
|
|
37
|
-
|
|
38
|
-
"
|
|
39
|
-
|
|
40
|
-
"
|
|
41
|
-
"https://static.levocdn.com/WLZ1TXTD/cta-2-2-sR8GfjjdTwkQF-320w.webp",
|
|
42
|
-
"640w":
|
|
43
|
-
"https://static.levocdn.com/WLZ1TXTD/cta-2-2-sR8GfjjdTwkQF-640w.webp",
|
|
44
|
-
"750w":
|
|
45
|
-
"https://static.levocdn.com/WLZ1TXTD/cta-2-2-sR8GfjjdTwkQF-750w.webp",
|
|
46
|
-
"828w":
|
|
47
|
-
"https://static.levocdn.com/WLZ1TXTD/cta-2-2-sR8GfjjdTwkQF-828w.webp",
|
|
27
|
+
"1080w": "https://static.levocdn.com/WLZ1TXTD/cta-2-2-sR8GfjjdTwkQF-1080w.webp",
|
|
28
|
+
"1200w": "https://static.levocdn.com/WLZ1TXTD/cta-2-2-sR8GfjjdTwkQF-1200w.webp",
|
|
29
|
+
"1920w": "https://static.levocdn.com/WLZ1TXTD/cta-2-2-sR8GfjjdTwkQF-1920w.webp",
|
|
30
|
+
"320w": "https://static.levocdn.com/WLZ1TXTD/cta-2-2-sR8GfjjdTwkQF-320w.webp",
|
|
31
|
+
"640w": "https://static.levocdn.com/WLZ1TXTD/cta-2-2-sR8GfjjdTwkQF-640w.webp",
|
|
32
|
+
"750w": "https://static.levocdn.com/WLZ1TXTD/cta-2-2-sR8GfjjdTwkQF-750w.webp",
|
|
33
|
+
"828w": "https://static.levocdn.com/WLZ1TXTD/cta-2-2-sR8GfjjdTwkQF-828w.webp",
|
|
48
34
|
path: "https://static.levocdn.com/WLZ1TXTD/cta-2-2-sR8GfjjdTwkQF-1200w.webp 1200w, https://static.levocdn.com/WLZ1TXTD/cta-2-2-sR8GfjjdTwkQF-1920w.webp 1920w, https://static.levocdn.com/WLZ1TXTD/cta-2-2-sR8GfjjdTwkQF-320w.webp 320w, https://static.levocdn.com/WLZ1TXTD/cta-2-2-sR8GfjjdTwkQF-750w.webp 750w, https://static.levocdn.com/WLZ1TXTD/cta-2-2-sR8GfjjdTwkQF-640w.webp 640w, https://static.levocdn.com/WLZ1TXTD/cta-2-2-sR8GfjjdTwkQF-828w.webp 828w, https://static.levocdn.com/WLZ1TXTD/cta-2-2-sR8GfjjdTwkQF-1080w.webp 1080w",
|
|
49
35
|
},
|
|
50
36
|
mimetype: "image/jpeg",
|
package/src/blocks/cta/cta-2.tsx
CHANGED
|
@@ -3,8 +3,8 @@ import {
|
|
|
3
3
|
Button,
|
|
4
4
|
Container,
|
|
5
5
|
Heading,
|
|
6
|
-
Image,
|
|
7
6
|
type ILevoBlockBaseProps,
|
|
7
|
+
Image,
|
|
8
8
|
Section,
|
|
9
9
|
Typography,
|
|
10
10
|
} from "@levo-so/studio";
|
|
@@ -20,11 +20,7 @@ const Cta2: React.FC<ILevoBlockBaseProps<ICta2Content>> = ({ content }) => (
|
|
|
20
20
|
<Typography elementKey="description" />
|
|
21
21
|
<Box elementKey="buttons_levoGroup" data-levo_group>
|
|
22
22
|
{(content?.buttons ?? []).map((_: any, index: number) => (
|
|
23
|
-
<Button
|
|
24
|
-
key={index}
|
|
25
|
-
data-levo_group_item
|
|
26
|
-
elementKey={`buttons.${index}.text`}
|
|
27
|
-
/>
|
|
23
|
+
<Button key={index} data-levo_group_item elementKey={`buttons.${index}.text`} />
|
|
28
24
|
))}
|
|
29
25
|
</Box>
|
|
30
26
|
</Box>
|
|
@@ -6,20 +6,13 @@ const MEDIA_1 = {
|
|
|
6
6
|
kind: "image",
|
|
7
7
|
location: "https://static.levocdn.com/WLZ1TXTD/cta-3-1-uY2rYb6tAqPb.png",
|
|
8
8
|
srcset: {
|
|
9
|
-
"1080w":
|
|
10
|
-
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
-
"
|
|
16
|
-
"https://static.levocdn.com/WLZ1TXTD/cta-3-1-uY2rYb6tAqPb-320w.webp",
|
|
17
|
-
"640w":
|
|
18
|
-
"https://static.levocdn.com/WLZ1TXTD/cta-3-1-uY2rYb6tAqPb-640w.webp",
|
|
19
|
-
"750w":
|
|
20
|
-
"https://static.levocdn.com/WLZ1TXTD/cta-3-1-uY2rYb6tAqPb-750w.webp",
|
|
21
|
-
"828w":
|
|
22
|
-
"https://static.levocdn.com/WLZ1TXTD/cta-3-1-uY2rYb6tAqPb-828w.webp",
|
|
9
|
+
"1080w": "https://static.levocdn.com/WLZ1TXTD/cta-3-1-uY2rYb6tAqPb-1080w.webp",
|
|
10
|
+
"1200w": "https://static.levocdn.com/WLZ1TXTD/cta-3-1-uY2rYb6tAqPb-1200w.webp",
|
|
11
|
+
"1920w": "https://static.levocdn.com/WLZ1TXTD/cta-3-1-uY2rYb6tAqPb-1920w.webp",
|
|
12
|
+
"320w": "https://static.levocdn.com/WLZ1TXTD/cta-3-1-uY2rYb6tAqPb-320w.webp",
|
|
13
|
+
"640w": "https://static.levocdn.com/WLZ1TXTD/cta-3-1-uY2rYb6tAqPb-640w.webp",
|
|
14
|
+
"750w": "https://static.levocdn.com/WLZ1TXTD/cta-3-1-uY2rYb6tAqPb-750w.webp",
|
|
15
|
+
"828w": "https://static.levocdn.com/WLZ1TXTD/cta-3-1-uY2rYb6tAqPb-828w.webp",
|
|
23
16
|
path: "https://static.levocdn.com/WLZ1TXTD/cta-3-1-uY2rYb6tAqPb-828w.webp 828w, https://static.levocdn.com/WLZ1TXTD/cta-3-1-uY2rYb6tAqPb-1080w.webp 1080w, https://static.levocdn.com/WLZ1TXTD/cta-3-1-uY2rYb6tAqPb-1200w.webp 1200w, https://static.levocdn.com/WLZ1TXTD/cta-3-1-uY2rYb6tAqPb-1920w.webp 1920w, https://static.levocdn.com/WLZ1TXTD/cta-3-1-uY2rYb6tAqPb-320w.webp 320w, https://static.levocdn.com/WLZ1TXTD/cta-3-1-uY2rYb6tAqPb-640w.webp 640w, https://static.levocdn.com/WLZ1TXTD/cta-3-1-uY2rYb6tAqPb-750w.webp 750w",
|
|
24
17
|
},
|
|
25
18
|
mimetype: "image/png",
|
|
@@ -30,20 +23,13 @@ const MEDIA_2 = {
|
|
|
30
23
|
kind: "image",
|
|
31
24
|
location: "https://static.levocdn.com/WLZ1TXTD/cta-3-2-gVHmJuqJAdB6.png",
|
|
32
25
|
srcset: {
|
|
33
|
-
"1080w":
|
|
34
|
-
|
|
35
|
-
"
|
|
36
|
-
|
|
37
|
-
"
|
|
38
|
-
|
|
39
|
-
"
|
|
40
|
-
"https://static.levocdn.com/WLZ1TXTD/cta-3-2-gVHmJuqJAdB6-320w.webp",
|
|
41
|
-
"640w":
|
|
42
|
-
"https://static.levocdn.com/WLZ1TXTD/cta-3-2-gVHmJuqJAdB6-640w.webp",
|
|
43
|
-
"750w":
|
|
44
|
-
"https://static.levocdn.com/WLZ1TXTD/cta-3-2-gVHmJuqJAdB6-750w.webp",
|
|
45
|
-
"828w":
|
|
46
|
-
"https://static.levocdn.com/WLZ1TXTD/cta-3-2-gVHmJuqJAdB6-828w.webp",
|
|
26
|
+
"1080w": "https://static.levocdn.com/WLZ1TXTD/cta-3-2-gVHmJuqJAdB6-1080w.webp",
|
|
27
|
+
"1200w": "https://static.levocdn.com/WLZ1TXTD/cta-3-2-gVHmJuqJAdB6-1200w.webp",
|
|
28
|
+
"1920w": "https://static.levocdn.com/WLZ1TXTD/cta-3-2-gVHmJuqJAdB6-1920w.webp",
|
|
29
|
+
"320w": "https://static.levocdn.com/WLZ1TXTD/cta-3-2-gVHmJuqJAdB6-320w.webp",
|
|
30
|
+
"640w": "https://static.levocdn.com/WLZ1TXTD/cta-3-2-gVHmJuqJAdB6-640w.webp",
|
|
31
|
+
"750w": "https://static.levocdn.com/WLZ1TXTD/cta-3-2-gVHmJuqJAdB6-750w.webp",
|
|
32
|
+
"828w": "https://static.levocdn.com/WLZ1TXTD/cta-3-2-gVHmJuqJAdB6-828w.webp",
|
|
47
33
|
path: "https://static.levocdn.com/WLZ1TXTD/cta-3-2-gVHmJuqJAdB6-1200w.webp 1200w, https://static.levocdn.com/WLZ1TXTD/cta-3-2-gVHmJuqJAdB6-1920w.webp 1920w, https://static.levocdn.com/WLZ1TXTD/cta-3-2-gVHmJuqJAdB6-320w.webp 320w, https://static.levocdn.com/WLZ1TXTD/cta-3-2-gVHmJuqJAdB6-640w.webp 640w, https://static.levocdn.com/WLZ1TXTD/cta-3-2-gVHmJuqJAdB6-750w.webp 750w, https://static.levocdn.com/WLZ1TXTD/cta-3-2-gVHmJuqJAdB6-828w.webp 828w, https://static.levocdn.com/WLZ1TXTD/cta-3-2-gVHmJuqJAdB6-1080w.webp 1080w",
|
|
48
34
|
},
|
|
49
35
|
mimetype: "image/png",
|
|
@@ -53,23 +39,15 @@ const MEDIA_3_BG = {
|
|
|
53
39
|
id: "vxmBzMsi6qi6",
|
|
54
40
|
filename: "cta-3-BG-image.png",
|
|
55
41
|
kind: "image",
|
|
56
|
-
location:
|
|
57
|
-
"https://static.levocdn.com/WLZ1TXTD/cta-3-BG-image-iPDGfZlgfo3g.png",
|
|
42
|
+
location: "https://static.levocdn.com/WLZ1TXTD/cta-3-BG-image-iPDGfZlgfo3g.png",
|
|
58
43
|
srcset: {
|
|
59
|
-
"1080w":
|
|
60
|
-
|
|
61
|
-
"
|
|
62
|
-
|
|
63
|
-
"
|
|
64
|
-
|
|
65
|
-
"
|
|
66
|
-
"https://static.levocdn.com/WLZ1TXTD/cta-3-BG-image-iPDGfZlgfo3g-320w.webp",
|
|
67
|
-
"640w":
|
|
68
|
-
"https://static.levocdn.com/WLZ1TXTD/cta-3-BG-image-iPDGfZlgfo3g-640w.webp",
|
|
69
|
-
"750w":
|
|
70
|
-
"https://static.levocdn.com/WLZ1TXTD/cta-3-BG-image-iPDGfZlgfo3g-750w.webp",
|
|
71
|
-
"828w":
|
|
72
|
-
"https://static.levocdn.com/WLZ1TXTD/cta-3-BG-image-iPDGfZlgfo3g-828w.webp",
|
|
44
|
+
"1080w": "https://static.levocdn.com/WLZ1TXTD/cta-3-BG-image-iPDGfZlgfo3g-1080w.webp",
|
|
45
|
+
"1200w": "https://static.levocdn.com/WLZ1TXTD/cta-3-BG-image-iPDGfZlgfo3g-1200w.webp",
|
|
46
|
+
"1920w": "https://static.levocdn.com/WLZ1TXTD/cta-3-BG-image-iPDGfZlgfo3g-1920w.webp",
|
|
47
|
+
"320w": "https://static.levocdn.com/WLZ1TXTD/cta-3-BG-image-iPDGfZlgfo3g-320w.webp",
|
|
48
|
+
"640w": "https://static.levocdn.com/WLZ1TXTD/cta-3-BG-image-iPDGfZlgfo3g-640w.webp",
|
|
49
|
+
"750w": "https://static.levocdn.com/WLZ1TXTD/cta-3-BG-image-iPDGfZlgfo3g-750w.webp",
|
|
50
|
+
"828w": "https://static.levocdn.com/WLZ1TXTD/cta-3-BG-image-iPDGfZlgfo3g-828w.webp",
|
|
73
51
|
path: "https://static.levocdn.com/WLZ1TXTD/cta-3-BG-image-iPDGfZlgfo3g-1080w.webp 1080w, https://static.levocdn.com/WLZ1TXTD/cta-3-BG-image-iPDGfZlgfo3g-1200w.webp 1200w, https://static.levocdn.com/WLZ1TXTD/cta-3-BG-image-iPDGfZlgfo3g-1920w.webp 1920w, https://static.levocdn.com/WLZ1TXTD/cta-3-BG-image-iPDGfZlgfo3g-320w.webp 320w, https://static.levocdn.com/WLZ1TXTD/cta-3-BG-image-iPDGfZlgfo3g-828w.webp 828w, https://static.levocdn.com/WLZ1TXTD/cta-3-BG-image-iPDGfZlgfo3g-750w.webp 750w, https://static.levocdn.com/WLZ1TXTD/cta-3-BG-image-iPDGfZlgfo3g-640w.webp 640w",
|
|
74
52
|
},
|
|
75
53
|
mimetype: "image/png",
|
|
@@ -133,18 +111,14 @@ export const Cta3: IBlock = {
|
|
|
133
111
|
label: "CTAs",
|
|
134
112
|
kind: "group",
|
|
135
113
|
field_interface: "BoxWidget",
|
|
136
|
-
fields: [
|
|
137
|
-
{ key: "button", label: "Button", field_interface: "ButtonWidget" },
|
|
138
|
-
],
|
|
114
|
+
fields: [{ key: "button", label: "Button", field_interface: "ButtonWidget" }],
|
|
139
115
|
},
|
|
140
116
|
{
|
|
141
117
|
key: "images",
|
|
142
118
|
label: "Images",
|
|
143
119
|
kind: "group",
|
|
144
120
|
field_interface: "BoxWidget",
|
|
145
|
-
fields: [
|
|
146
|
-
{ key: "image", label: "Image", field_interface: "ImageWidget" },
|
|
147
|
-
],
|
|
121
|
+
fields: [{ key: "image", label: "Image", field_interface: "ImageWidget" }],
|
|
148
122
|
},
|
|
149
123
|
],
|
|
150
124
|
layouts: [
|
package/src/blocks/cta/cta-3.tsx
CHANGED
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
Button,
|
|
4
4
|
Container,
|
|
5
5
|
Heading,
|
|
6
|
+
type ILevoBlockBaseProps,
|
|
6
7
|
Image,
|
|
7
8
|
Section,
|
|
8
9
|
Typography,
|
|
9
|
-
type ILevoBlockBaseProps,
|
|
10
10
|
} from "@levo-so/studio";
|
|
11
11
|
|
|
12
12
|
import type { ICta3Content } from "./cta-3.schema";
|
|
@@ -21,11 +21,7 @@ const Cta3: React.FC<ILevoBlockBaseProps<ICta3Content>> = ({ content }) => (
|
|
|
21
21
|
|
|
22
22
|
<Box elementKey="ctas_levoGroup" data-levo_group>
|
|
23
23
|
{(content?.ctas ?? []).map((_, index: number) => (
|
|
24
|
-
<Button
|
|
25
|
-
key={`cta-${index}`}
|
|
26
|
-
data-levo_group_item
|
|
27
|
-
elementKey={`ctas.${index}.button`}
|
|
28
|
-
/>
|
|
24
|
+
<Button key={`cta-${index}`} data-levo_group_item elementKey={`ctas.${index}.button`} />
|
|
29
25
|
))}
|
|
30
26
|
</Box>
|
|
31
27
|
</Box>
|
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
import type { ILevoBlockBaseProps } from "@levo-so/studio";
|
|
2
|
-
import {
|
|
3
|
-
Box,
|
|
4
|
-
Button,
|
|
5
|
-
Heading,
|
|
6
|
-
Iframe,
|
|
7
|
-
Section,
|
|
8
|
-
Typography,
|
|
9
|
-
Container,
|
|
10
|
-
} from "@levo-so/studio";
|
|
2
|
+
import { Box, Button, Container, Heading, Iframe, Section, Typography } from "@levo-so/studio";
|
|
11
3
|
|
|
12
4
|
import type { IEmbed1Content } from "./embed-1.schema";
|
|
13
5
|
|
|
@@ -9,10 +9,7 @@ interface IClientOnlyProps {
|
|
|
9
9
|
* Component that renders its children on the client side only to prevent hydration mismatches.
|
|
10
10
|
* Useful for content that differs between server and client (e.g., dates with timezone, localStorage-dependent content).
|
|
11
11
|
*/
|
|
12
|
-
export const ClientOnly: React.FC<IClientOnlyProps> = ({
|
|
13
|
-
children,
|
|
14
|
-
fallback = null,
|
|
15
|
-
}) => {
|
|
12
|
+
export const ClientOnly: React.FC<IClientOnlyProps> = ({ children, fallback = null }) => {
|
|
16
13
|
const [mounted, setMounted] = useState(false);
|
|
17
14
|
|
|
18
15
|
useEffect(() => {
|
|
@@ -18,19 +18,14 @@ const DEFAULT_CONTENT = {
|
|
|
18
18
|
"hero-card": null,
|
|
19
19
|
"hero-image": {
|
|
20
20
|
id: "event-hero-image",
|
|
21
|
-
location:
|
|
22
|
-
"https://images.unsplash.com/photo-1540575467063-178a50c2df87?w=800&h=400&fit=crop",
|
|
21
|
+
location: "https://images.unsplash.com/photo-1540575467063-178a50c2df87?w=800&h=400&fit=crop",
|
|
23
22
|
kind: "image",
|
|
24
23
|
mimetype: "image/jpeg",
|
|
25
24
|
srcset: {
|
|
26
|
-
"320w":
|
|
27
|
-
|
|
28
|
-
"
|
|
29
|
-
|
|
30
|
-
"800w":
|
|
31
|
-
"https://images.unsplash.com/photo-1540575467063-178a50c2df87?w=800&h=400&fit=crop",
|
|
32
|
-
"1200w":
|
|
33
|
-
"https://images.unsplash.com/photo-1540575467063-178a50c2df87?w=1200&h=600&fit=crop",
|
|
25
|
+
"320w": "https://images.unsplash.com/photo-1540575467063-178a50c2df87?w=320&h=200&fit=crop",
|
|
26
|
+
"640w": "https://images.unsplash.com/photo-1540575467063-178a50c2df87?w=640&h=320&fit=crop",
|
|
27
|
+
"800w": "https://images.unsplash.com/photo-1540575467063-178a50c2df87?w=800&h=400&fit=crop",
|
|
28
|
+
"1200w": "https://images.unsplash.com/photo-1540575467063-178a50c2df87?w=1200&h=600&fit=crop",
|
|
34
29
|
path: "https://images.unsplash.com/photo-1540575467063-178a50c2df87?w=320&h=200&fit=crop 320w, https://images.unsplash.com/photo-1540575467063-178a50c2df87?w=640&h=320&fit=crop 640w, https://images.unsplash.com/photo-1540575467063-178a50c2df87?w=800&h=400&fit=crop 800w, https://images.unsplash.com/photo-1540575467063-178a50c2df87?w=1200&h=600&fit=crop 1200w",
|
|
35
30
|
},
|
|
36
31
|
},
|
|
@@ -138,8 +133,7 @@ export const EventDetails: IBlock = {
|
|
|
138
133
|
label: "Hero Image",
|
|
139
134
|
field_interface: "ImageWidget",
|
|
140
135
|
hint: {
|
|
141
|
-
prompt_description:
|
|
142
|
-
"Main event cover image showcasing the event theme or venue.",
|
|
136
|
+
prompt_description: "Main event cover image showcasing the event theme or venue.",
|
|
143
137
|
},
|
|
144
138
|
},
|
|
145
139
|
{
|
|
@@ -156,8 +150,7 @@ export const EventDetails: IBlock = {
|
|
|
156
150
|
label: "Event Title",
|
|
157
151
|
field_interface: "HeadingWidget",
|
|
158
152
|
hint: {
|
|
159
|
-
prompt_description:
|
|
160
|
-
"Main event title that clearly describes the event name and purpose.",
|
|
153
|
+
prompt_description: "Main event title that clearly describes the event name and purpose.",
|
|
161
154
|
min_characters: 20,
|
|
162
155
|
max_characters: 60,
|
|
163
156
|
},
|
|
@@ -176,8 +169,7 @@ export const EventDetails: IBlock = {
|
|
|
176
169
|
label: "Start Date Wrapper",
|
|
177
170
|
field_interface: "BoxWidget",
|
|
178
171
|
hint: {
|
|
179
|
-
prompt_description:
|
|
180
|
-
"Container for start date information. No content generation required.",
|
|
172
|
+
prompt_description: "Container for start date information. No content generation required.",
|
|
181
173
|
},
|
|
182
174
|
},
|
|
183
175
|
{
|
|
@@ -211,8 +203,7 @@ export const EventDetails: IBlock = {
|
|
|
211
203
|
label: "End Date Wrapper",
|
|
212
204
|
field_interface: "BoxWidget",
|
|
213
205
|
hint: {
|
|
214
|
-
prompt_description:
|
|
215
|
-
"Container for end date information. No content generation required.",
|
|
206
|
+
prompt_description: "Container for end date information. No content generation required.",
|
|
216
207
|
},
|
|
217
208
|
},
|
|
218
209
|
{
|
|
@@ -236,8 +227,7 @@ export const EventDetails: IBlock = {
|
|
|
236
227
|
label: "Time Wrapper",
|
|
237
228
|
field_interface: "BoxWidget",
|
|
238
229
|
hint: {
|
|
239
|
-
prompt_description:
|
|
240
|
-
"Container for time range information. No content generation required.",
|
|
230
|
+
prompt_description: "Container for time range information. No content generation required.",
|
|
241
231
|
},
|
|
242
232
|
},
|
|
243
233
|
{
|
|
@@ -261,8 +251,7 @@ export const EventDetails: IBlock = {
|
|
|
261
251
|
label: "Kind Wrapper",
|
|
262
252
|
field_interface: "BoxWidget",
|
|
263
253
|
hint: {
|
|
264
|
-
prompt_description:
|
|
265
|
-
"Container for event kind information. No content generation required.",
|
|
254
|
+
prompt_description: "Container for event kind information. No content generation required.",
|
|
266
255
|
},
|
|
267
256
|
},
|
|
268
257
|
{
|
|
@@ -278,8 +267,7 @@ export const EventDetails: IBlock = {
|
|
|
278
267
|
label: "Event Kind",
|
|
279
268
|
field_interface: "TypographyWidget",
|
|
280
269
|
hint: {
|
|
281
|
-
prompt_description:
|
|
282
|
-
"Type or category of the event (e.g., Conference, Workshop).",
|
|
270
|
+
prompt_description: "Type or category of the event (e.g., Conference, Workshop).",
|
|
283
271
|
min_characters: 5,
|
|
284
272
|
max_characters: 20,
|
|
285
273
|
},
|
|
@@ -441,8 +429,7 @@ export const EventDetails: IBlock = {
|
|
|
441
429
|
label: "Email Field",
|
|
442
430
|
field_interface: "BoxWidget",
|
|
443
431
|
hint: {
|
|
444
|
-
prompt_description:
|
|
445
|
-
"Container for email contact field. No content generation required.",
|
|
432
|
+
prompt_description: "Container for email contact field. No content generation required.",
|
|
446
433
|
},
|
|
447
434
|
},
|
|
448
435
|
{
|
|
@@ -458,8 +445,7 @@ export const EventDetails: IBlock = {
|
|
|
458
445
|
label: "Contact Email",
|
|
459
446
|
field_interface: "TypographyWidget",
|
|
460
447
|
hint: {
|
|
461
|
-
prompt_description:
|
|
462
|
-
"Professional email address for event inquiries and contact.",
|
|
448
|
+
prompt_description: "Professional email address for event inquiries and contact.",
|
|
463
449
|
min_characters: 15,
|
|
464
450
|
max_characters: 40,
|
|
465
451
|
},
|
|
@@ -469,8 +455,7 @@ export const EventDetails: IBlock = {
|
|
|
469
455
|
label: "Phone Field",
|
|
470
456
|
field_interface: "BoxWidget",
|
|
471
457
|
hint: {
|
|
472
|
-
prompt_description:
|
|
473
|
-
"Container for phone contact field. No content generation required.",
|
|
458
|
+
prompt_description: "Container for phone contact field. No content generation required.",
|
|
474
459
|
},
|
|
475
460
|
},
|
|
476
461
|
{
|
|
@@ -486,8 +471,7 @@ export const EventDetails: IBlock = {
|
|
|
486
471
|
label: "Contact Phone",
|
|
487
472
|
field_interface: "TypographyWidget",
|
|
488
473
|
hint: {
|
|
489
|
-
prompt_description:
|
|
490
|
-
"Professional phone number for event inquiries and contact.",
|
|
474
|
+
prompt_description: "Professional phone number for event inquiries and contact.",
|
|
491
475
|
min_characters: 12,
|
|
492
476
|
max_characters: 20,
|
|
493
477
|
},
|
|
@@ -5,45 +5,34 @@ import {
|
|
|
5
5
|
Heading,
|
|
6
6
|
Icon,
|
|
7
7
|
Image,
|
|
8
|
+
RegisterModal,
|
|
8
9
|
Section,
|
|
9
10
|
Typography,
|
|
10
|
-
RegisterModal,
|
|
11
11
|
} from "@levo-so/studio";
|
|
12
12
|
import dayjs from "dayjs";
|
|
13
13
|
|
|
14
|
-
import type { IEventDetailsContent } from "./event-details.schema";
|
|
15
14
|
import { ClientOnly } from "./ClientOnly";
|
|
15
|
+
import type { IEventDetailsContent } from "./event-details.schema";
|
|
16
16
|
|
|
17
|
-
const EventDetails: React.FC<ILevoBlockBaseProps<IEventDetailsContent>> = ({
|
|
18
|
-
content,
|
|
19
|
-
}) => (
|
|
17
|
+
const EventDetails: React.FC<ILevoBlockBaseProps<IEventDetailsContent>> = ({ content }) => (
|
|
20
18
|
<Section elementKey="layout">
|
|
21
19
|
<Container elementKey="container">
|
|
22
20
|
<Box elementKey="main-wrapper">
|
|
23
21
|
<Box elementKey="hero-card">
|
|
24
|
-
<Image
|
|
25
|
-
elementKey="hero-image"
|
|
26
|
-
alt="Event cover image"
|
|
27
|
-
width={800}
|
|
28
|
-
height={400}
|
|
29
|
-
/>
|
|
22
|
+
<Image elementKey="hero-image" alt="Event cover image" width={800} height={400} />
|
|
30
23
|
<Box elementKey="hero-content">
|
|
31
24
|
<Heading elementKey="title" />
|
|
32
25
|
<Box elementKey="event-info">
|
|
33
26
|
<Box elementKey="start-date-wrapper">
|
|
34
27
|
<Icon elementKey="date-icon" />
|
|
35
28
|
<Typography elementKey="starts_at">
|
|
36
|
-
<ClientOnly>
|
|
37
|
-
{dayjs(content?.starts_at).format("MMM D, YYYY")}
|
|
38
|
-
</ClientOnly>
|
|
29
|
+
<ClientOnly>{dayjs(content?.starts_at).format("MMM D, YYYY")}</ClientOnly>
|
|
39
30
|
</Typography>
|
|
40
31
|
</Box>
|
|
41
32
|
<Box elementKey="end-date-wrapper">
|
|
42
33
|
<Icon elementKey="end-date-icon" />
|
|
43
34
|
<Typography elementKey="ends_at">
|
|
44
|
-
<ClientOnly>
|
|
45
|
-
{dayjs(content?.ends_at).format("MMM D, YYYY")}
|
|
46
|
-
</ClientOnly>
|
|
35
|
+
<ClientOnly>{dayjs(content?.ends_at).format("MMM D, YYYY")}</ClientOnly>
|
|
47
36
|
</Typography>
|
|
48
37
|
</Box>
|
|
49
38
|
<Box elementKey="time-wrapper">
|
|
@@ -56,15 +45,11 @@ const EventDetails: React.FC<ILevoBlockBaseProps<IEventDetailsContent>> = ({
|
|
|
56
45
|
</Box>
|
|
57
46
|
<Box elementKey="kind-wrapper">
|
|
58
47
|
<Icon elementKey="kind-icon" />
|
|
59
|
-
<Typography elementKey="kind">
|
|
60
|
-
{content?.kind?.replace(/_/g, " ")}
|
|
61
|
-
</Typography>
|
|
48
|
+
<Typography elementKey="kind">{content?.kind?.replace(/_/g, " ")}</Typography>
|
|
62
49
|
</Box>
|
|
63
50
|
<Box elementKey="timing-wrapper">
|
|
64
51
|
<Icon elementKey="timing-icon" />
|
|
65
|
-
<Typography elementKey="timing">
|
|
66
|
-
{content?.timing?.replace(/_/g, " ")}
|
|
67
|
-
</Typography>
|
|
52
|
+
<Typography elementKey="timing">{content?.timing?.replace(/_/g, " ")}</Typography>
|
|
68
53
|
</Box>
|
|
69
54
|
</Box>
|
|
70
55
|
</Box>
|