@levo-so/blocks 0.1.59 → 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 +6 -6
- package/src/blocks/about-us/about-us-1.schema.ts +60 -58
- package/src/blocks/about-us/about-us-1.tsx +2 -4
- package/src/blocks/about-us/about-us-2.schema.ts +165 -42
- 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 +27 -36
- package/src/blocks/blogs/blog-listing-2.schema.ts +17 -34
- package/src/blocks/blogs/blog-listing-2.tsx +21 -27
- package/src/blocks/blogs/blog-listing-3.schema.ts +32 -64
- package/src/blocks/blogs/blog-listing-3.tsx +21 -27
- 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 +351 -180
- package/src/blocks/calendar/calendar-1.tsx +60 -25
- package/src/blocks/cards/cards-10.schema.ts +278 -331
- package/src/blocks/cards/cards-10.tsx +18 -15
- package/src/blocks/cards/cards-11.schema.ts +178 -356
- package/src/blocks/cards/cards-11.tsx +5 -11
- package/src/blocks/cards/cards-12.schema.ts +110 -196
- package/src/blocks/cards/cards-12.tsx +4 -10
- package/src/blocks/cards/cards-13.schema.ts +131 -120
- package/src/blocks/cards/cards-13.tsx +4 -6
- package/src/blocks/cards/cards-14.schema.ts +51 -154
- package/src/blocks/cards/cards-14.tsx +5 -11
- package/src/blocks/cards/cards-15.schema.ts +48 -32
- package/src/blocks/cards/cards-15.tsx +15 -6
- package/src/blocks/cards/cards-2.schema.ts +76 -88
- package/src/blocks/cards/cards-2.tsx +12 -17
- package/src/blocks/cards/cards-3.schema.ts +68 -70
- package/src/blocks/cards/cards-3.tsx +7 -13
- package/src/blocks/cards/cards-4.schema.ts +160 -115
- package/src/blocks/cards/cards-4.tsx +22 -17
- package/src/blocks/cards/cards-5.schema.ts +76 -70
- package/src/blocks/cards/cards-5.tsx +10 -10
- package/src/blocks/cards/cards-6.schema.ts +755 -985
- package/src/blocks/cards/cards-6.tsx +17 -9
- package/src/blocks/cards/cards-7.schema.ts +754 -2250
- package/src/blocks/cards/cards-7.tsx +18 -24
- package/src/blocks/cards/cards-8.schema.ts +171 -363
- package/src/blocks/cards/cards-8.tsx +15 -8
- package/src/blocks/cards/cards-9.schema.ts +283 -329
- package/src/blocks/cards/cards-9.tsx +28 -12
- package/src/blocks/carousel/carousel-1.schema.ts +418 -49
- package/src/blocks/carousel/carousel-1.tsx +8 -8
- package/src/blocks/carousel/carousel-2.schema.ts +153 -127
- package/src/blocks/carousel/carousel-2.tsx +16 -20
- package/src/blocks/community/community-1.schema.ts +612 -0
- package/src/blocks/community/community-1.tsx +557 -0
- package/src/blocks/community/community-post-1.schema.ts +408 -0
- package/src/blocks/community/community-post-1.tsx +405 -0
- package/src/blocks/contact-us/contact-us-1.schema.ts +25 -43
- package/src/blocks/contact-us/contact-us-1.tsx +2 -12
- package/src/blocks/contact-us/contact-us-2.schema.ts +39 -17
- package/src/blocks/contact-us/contact-us-2.tsx +21 -32
- package/src/blocks/content/content-1.schema.ts +163 -234
- package/src/blocks/content/content-1.tsx +46 -43
- package/src/blocks/content/content-2.schema.ts +117 -35
- package/src/blocks/content/content-2.tsx +19 -7
- package/src/blocks/content/content-3.schema.ts +215 -205
- package/src/blocks/content/content-3.tsx +14 -18
- package/src/blocks/content/content-4.schema.ts +105 -89
- package/src/blocks/content/content-4.tsx +10 -18
- package/src/blocks/content/content-5.schema.ts +301 -278
- package/src/blocks/content/content-5.tsx +23 -16
- package/src/blocks/content/content-6.schema.ts +432 -250
- package/src/blocks/content/content-6.tsx +24 -19
- package/src/blocks/content/content-7.schema.ts +200 -197
- package/src/blocks/content/content-7.tsx +29 -21
- package/src/blocks/content/content-8.schema.ts +28 -23
- package/src/blocks/content/content-8.tsx +3 -3
- package/src/blocks/content/content-9.schema.ts +64 -2208
- package/src/blocks/content/content-9.tsx +31 -43
- package/src/blocks/cta/cta-1.schema.ts +23 -128
- package/src/blocks/cta/cta-2.schema.ts +46 -69
- package/src/blocks/cta/cta-2.tsx +2 -6
- package/src/blocks/cta/cta-3.schema.ts +77 -72
- package/src/blocks/cta/cta-3.tsx +2 -6
- package/src/blocks/embed/embed-1.schema.ts +30 -52
- 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 +23 -32
- package/src/blocks/event/event-details.tsx +9 -23
- package/src/blocks/event/event-listing-2.schema.ts +19 -38
- package/src/blocks/event/event-listing-2.tsx +29 -38
- package/src/blocks/event/event-listing-3.schema.ts +10 -20
- package/src/blocks/event/event-listing-3.tsx +26 -30
- package/src/blocks/event/event-listing-4.schema.ts +40 -80
- package/src/blocks/event/event-listing-4.tsx +22 -28
- package/src/blocks/event/event-listing.schema.ts +12 -24
- package/src/blocks/event/event-listing.tsx +26 -30
- package/src/blocks/faq/faq-1.schema.ts +150 -112
- package/src/blocks/faq/faq-1.tsx +31 -33
- package/src/blocks/faq/faq-2.schema.ts +132 -77
- package/src/blocks/faq/faq-2.tsx +21 -11
- package/src/blocks/faq/faq-3.schema.ts +178 -107
- package/src/blocks/faq/faq-3.tsx +30 -22
- package/src/blocks/features/features-1/features-1.schema.ts +11 -3
- package/src/blocks/features/features-1/features-1.tsx +12 -5
- package/src/blocks/features/features-1/variants/default.ts +176 -62
- package/src/blocks/features/features-1/variants/index.ts +1 -1
- package/src/blocks/features/features-1/variants/stylized-cards-v1.ts +392 -54
- package/src/blocks/features/features-1/variants/stylized-cards-v2.ts +119 -103
- package/src/blocks/features/features-1/variants/stylized-cards-v3.ts +16 -199
- package/src/blocks/features/features-2.schema.ts +149 -48
- package/src/blocks/features/features-2.tsx +18 -12
- package/src/blocks/features/features-3.schema.ts +255 -68
- package/src/blocks/features/features-3.tsx +25 -15
- package/src/blocks/features/features-4.schema.ts +367 -188
- package/src/blocks/features/features-4.tsx +12 -8
- package/src/blocks/features/features-5.schema.ts +195 -200
- package/src/blocks/features/features-5.tsx +14 -14
- package/src/blocks/features/features-6.schema.ts +230 -215
- package/src/blocks/features/features-6.tsx +28 -34
- package/src/blocks/filter-listing/filter-listing-1.tsx +12 -36
- package/src/blocks/floating-buttons/floating-button-1.schema.ts +100 -0
- package/src/blocks/floating-buttons/floating-button-1.tsx +14 -0
- package/src/blocks/footer/footer-1.schema.ts +110 -48
- package/src/blocks/footer/footer-1.tsx +17 -31
- package/src/blocks/footer/footer-2.schema.ts +230 -34
- package/src/blocks/footer/footer-2.tsx +19 -29
- package/src/blocks/footer/footer-3.schema.ts +335 -59
- package/src/blocks/footer/footer-3.tsx +11 -26
- package/src/blocks/footer/footer-4.schema.ts +139 -76
- package/src/blocks/footer/footer-4.tsx +37 -55
- package/src/blocks/footer/footer-5.schema.ts +138 -60
- package/src/blocks/footer/footer-5.tsx +16 -30
- package/src/blocks/footer/footer-6.schema.ts +62 -149
- package/src/blocks/footer/footer-6.tsx +30 -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 +153 -101
- package/src/blocks/hero/hero-1.tsx +4 -4
- package/src/blocks/hero/hero-10.schema.ts +9 -31
- package/src/blocks/hero/hero-10.tsx +4 -4
- package/src/blocks/hero/hero-11.schema.ts +196 -89
- package/src/blocks/hero/hero-11.tsx +5 -10
- package/src/blocks/hero/hero-12.schema.ts +111 -192
- package/src/blocks/hero/hero-12.tsx +4 -7
- package/src/blocks/hero/hero-13.schema.ts +36 -30
- package/src/blocks/hero/hero-13.tsx +1 -1
- package/src/blocks/hero/hero-2.schema.ts +30 -58
- package/src/blocks/hero/hero-2.tsx +3 -21
- package/src/blocks/hero/hero-3.schema.ts +70 -90
- package/src/blocks/hero/hero-3.tsx +6 -15
- package/src/blocks/hero/hero-4.schema.ts +246 -73
- package/src/blocks/hero/hero-4.tsx +22 -16
- package/src/blocks/hero/hero-5.schema.ts +104 -47
- package/src/blocks/hero/hero-5.tsx +21 -12
- package/src/blocks/hero/hero-6.schema.ts +127 -258
- package/src/blocks/hero/hero-6.tsx +6 -6
- package/src/blocks/hero/hero-7.schema.ts +90 -43
- package/src/blocks/hero/hero-7.tsx +6 -4
- package/src/blocks/hero/hero-8.schema.ts +342 -138
- package/src/blocks/hero/hero-8.tsx +23 -13
- package/src/blocks/hero/hero-9.schema.ts +111 -86
- package/src/blocks/hero/hero-9.tsx +12 -4
- package/src/blocks/index.ts +12 -8
- 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 +370 -36
- 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 +2 -21
- package/src/blocks/polling/polling-1.tsx +24 -39
- package/src/blocks/pricing/pricing-1.schema.ts +307 -290
- package/src/blocks/pricing/pricing-1.tsx +32 -42
- package/src/blocks/products/products-listing-1.schema.ts +115 -36
- package/src/blocks/products/products-listing-1.tsx +15 -13
- package/src/blocks/products/products-listing-2.schema.ts +178 -220
- package/src/blocks/products/products-listing-2.tsx +29 -16
- package/src/blocks/products/products-listing-3.schema.ts +412 -154
- package/src/blocks/products/products-listing-3.tsx +102 -73
- package/src/blocks/profile/profile-1.schema.ts +60 -49
- package/src/blocks/profile/profile-1.tsx +5 -10
- package/src/blocks/profile/profile-2.schema.ts +71 -92
- package/src/blocks/profile/profile-2.tsx +6 -7
- package/src/blocks/profile/profile-3.schema.ts +141 -529
- package/src/blocks/profile/profile-3.tsx +19 -41
- 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 +210 -830
- package/src/blocks/services/service-1.tsx +46 -59
- package/src/blocks/services/service-2.schema.ts +92 -80
- package/src/blocks/services/service-2.tsx +13 -7
- package/src/blocks/services/service-3.schema.ts +74 -86
- package/src/blocks/services/service-3.tsx +44 -45
- package/src/blocks/stats/stats-1.schema.ts +225 -21
- package/src/blocks/stats/stats-1.tsx +7 -14
- package/src/blocks/stats/stats-2.schema.ts +13 -5
- package/src/blocks/stats/stats-2.tsx +12 -15
- package/src/blocks/stats/variants/default.ts +59 -41
- package/src/blocks/stats/variants/hero.ts +64 -31
- package/src/blocks/stats/variants/index.ts +1 -1
- package/src/blocks/tabs/tab-1.schema.ts +103 -409
- package/src/blocks/tabs/tab-1.tsx +47 -53
- package/src/blocks/tabs/tab-2.schema.ts +207 -290
- package/src/blocks/tabs/tab-2.tsx +20 -9
- package/src/blocks/team/team-1.schema.ts +593 -76
- package/src/blocks/team/team-1.tsx +16 -22
- package/src/blocks/team/team-2.schema.ts +621 -1453
- package/src/blocks/team/team-2.tsx +19 -34
- package/src/blocks/team/team-3.schema.ts +127 -78
- package/src/blocks/team/team-3.tsx +9 -14
- package/src/blocks/team/team-4.schema.ts +197 -63
- package/src/blocks/team/team-4.tsx +25 -26
- package/src/blocks/team/team-5.schema.ts +65 -54
- package/src/blocks/team/team-5.tsx +13 -4
- package/src/blocks/termsAndPrivacy/terms-and-conditions-1.schema.ts +9 -26
- package/src/blocks/termsAndPrivacy/terms-and-conditions-1.tsx +4 -6
- package/src/blocks/testimonial/testimonial-1.schema.ts +713 -65
- package/src/blocks/testimonial/testimonial-1.tsx +12 -23
- package/src/blocks/testimonial/testimonial-2.schema.ts +1316 -354
- package/src/blocks/testimonial/testimonial-2.tsx +21 -37
- package/src/blocks/testimonial/testimonial-3.schema.ts +210 -74
- package/src/blocks/testimonial/testimonial-3.tsx +17 -27
- package/src/blocks/testimonial/testimonial-4.schema.ts +353 -1049
- package/src/blocks/testimonial/testimonial-4.tsx +16 -34
- package/src/blocks/testimonial/testimonial-5/variants/default.ts +155 -171
- package/src/blocks/testimonial/testimonial-5/variants/index.ts +1 -1
- package/src/blocks/testimonial/testimonial-5/variants/testimonialWithLogo.ts +201 -501
- package/src/blocks/testimonial/testimonial-5/variants/testimonialWithRatings.ts +166 -316
- 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 +226 -315
- package/src/blocks/testimonial/testimonial-6.tsx +9 -25
- package/src/blocks/testimonial/testimonial-7.schema.ts +74 -45
- package/src/blocks/testimonial/testimonial-7.tsx +16 -27
- package/src/blocks/timeline/timeline-1.schema.ts +166 -153
- package/src/blocks/timeline/timeline-1.tsx +6 -7
- package/src/blocks/users/edit-profile.schema.ts +56 -44
- package/src/blocks/users/edit-profile.tsx +23 -28
- package/src/constants/index.ts +16 -0
- package/src/index.ts +1 -1
- package/src/schemas/blocks.ts +17 -5
- package/src/schemas/categories.ts +26 -2
|
@@ -1,5 +1,58 @@
|
|
|
1
1
|
import type { IBlock } from "@levo-so/studio";
|
|
2
2
|
|
|
3
|
+
const MEDIA_1 = {
|
|
4
|
+
id: "LkpWHvjcG1ck",
|
|
5
|
+
filename: "cta-3-1.png",
|
|
6
|
+
kind: "image",
|
|
7
|
+
location: "https://static.levocdn.com/WLZ1TXTD/cta-3-1-uY2rYb6tAqPb.png",
|
|
8
|
+
srcset: {
|
|
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",
|
|
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",
|
|
17
|
+
},
|
|
18
|
+
mimetype: "image/png",
|
|
19
|
+
};
|
|
20
|
+
const MEDIA_2 = {
|
|
21
|
+
id: "c2uCaNTtxjtt",
|
|
22
|
+
filename: "cta-3-2.png",
|
|
23
|
+
kind: "image",
|
|
24
|
+
location: "https://static.levocdn.com/WLZ1TXTD/cta-3-2-gVHmJuqJAdB6.png",
|
|
25
|
+
srcset: {
|
|
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",
|
|
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",
|
|
34
|
+
},
|
|
35
|
+
mimetype: "image/png",
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
const MEDIA_3_BG = {
|
|
39
|
+
id: "vxmBzMsi6qi6",
|
|
40
|
+
filename: "cta-3-BG-image.png",
|
|
41
|
+
kind: "image",
|
|
42
|
+
location: "https://static.levocdn.com/WLZ1TXTD/cta-3-BG-image-iPDGfZlgfo3g.png",
|
|
43
|
+
srcset: {
|
|
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",
|
|
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",
|
|
52
|
+
},
|
|
53
|
+
mimetype: "image/png",
|
|
54
|
+
};
|
|
55
|
+
|
|
3
56
|
const DEFAULT_CONTENT = {
|
|
4
57
|
layout: null,
|
|
5
58
|
container: null,
|
|
@@ -10,54 +63,10 @@ const DEFAULT_CONTENT = {
|
|
|
10
63
|
ctas: [{ button: "Contact Us" }],
|
|
11
64
|
images: [
|
|
12
65
|
{
|
|
13
|
-
image:
|
|
14
|
-
id: "left-fitness-image",
|
|
15
|
-
location: "https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH.png",
|
|
16
|
-
kind: "image",
|
|
17
|
-
mimetype: "image/png",
|
|
18
|
-
srcset: {
|
|
19
|
-
"1080w":
|
|
20
|
-
"https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-1080w.webp",
|
|
21
|
-
"1200w":
|
|
22
|
-
"https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-1200w.webp",
|
|
23
|
-
"1920w":
|
|
24
|
-
"https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-1920w.webp",
|
|
25
|
-
"320w":
|
|
26
|
-
"https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-320w.webp",
|
|
27
|
-
"640w":
|
|
28
|
-
"https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-640w.webp",
|
|
29
|
-
"750w":
|
|
30
|
-
"https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-750w.webp",
|
|
31
|
-
"828w":
|
|
32
|
-
"https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-828w.webp",
|
|
33
|
-
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",
|
|
34
|
-
},
|
|
35
|
-
},
|
|
66
|
+
image: MEDIA_1,
|
|
36
67
|
},
|
|
37
68
|
{
|
|
38
|
-
image:
|
|
39
|
-
id: "left-fitness-image",
|
|
40
|
-
location: "https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH.png",
|
|
41
|
-
kind: "image",
|
|
42
|
-
mimetype: "image/png",
|
|
43
|
-
srcset: {
|
|
44
|
-
"1080w":
|
|
45
|
-
"https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-1080w.webp",
|
|
46
|
-
"1200w":
|
|
47
|
-
"https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-1200w.webp",
|
|
48
|
-
"1920w":
|
|
49
|
-
"https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-1920w.webp",
|
|
50
|
-
"320w":
|
|
51
|
-
"https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-320w.webp",
|
|
52
|
-
"640w":
|
|
53
|
-
"https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-640w.webp",
|
|
54
|
-
"750w":
|
|
55
|
-
"https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-750w.webp",
|
|
56
|
-
"828w":
|
|
57
|
-
"https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-828w.webp",
|
|
58
|
-
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",
|
|
59
|
-
},
|
|
60
|
-
},
|
|
69
|
+
image: MEDIA_2,
|
|
61
70
|
},
|
|
62
71
|
],
|
|
63
72
|
};
|
|
@@ -91,7 +100,7 @@ export const Cta3: IBlock = {
|
|
|
91
100
|
label: "Left Content",
|
|
92
101
|
field_interface: "BoxWidget",
|
|
93
102
|
},
|
|
94
|
-
{ key: "title", label: "Title", field_interface: "
|
|
103
|
+
{ key: "title", label: "Title", field_interface: "HeadingWidget" },
|
|
95
104
|
{
|
|
96
105
|
key: "description",
|
|
97
106
|
label: "Description",
|
|
@@ -102,18 +111,14 @@ export const Cta3: IBlock = {
|
|
|
102
111
|
label: "CTAs",
|
|
103
112
|
kind: "group",
|
|
104
113
|
field_interface: "BoxWidget",
|
|
105
|
-
fields: [
|
|
106
|
-
{ key: "button", label: "Button", field_interface: "ButtonWidget" },
|
|
107
|
-
],
|
|
114
|
+
fields: [{ key: "button", label: "Button", field_interface: "ButtonWidget" }],
|
|
108
115
|
},
|
|
109
116
|
{
|
|
110
117
|
key: "images",
|
|
111
118
|
label: "Images",
|
|
112
119
|
kind: "group",
|
|
113
120
|
field_interface: "BoxWidget",
|
|
114
|
-
fields: [
|
|
115
|
-
{ key: "image", label: "Image", field_interface: "ImageWidget" },
|
|
116
|
-
],
|
|
121
|
+
fields: [{ key: "image", label: "Image", field_interface: "ImageWidget" }],
|
|
117
122
|
},
|
|
118
123
|
],
|
|
119
124
|
layouts: [
|
|
@@ -121,10 +126,7 @@ export const Cta3: IBlock = {
|
|
|
121
126
|
key: "default",
|
|
122
127
|
title: "Default",
|
|
123
128
|
styles: {
|
|
124
|
-
layout: {
|
|
125
|
-
"padding-top": "3xl",
|
|
126
|
-
"padding-bottom": "3xl",
|
|
127
|
-
},
|
|
129
|
+
layout: {},
|
|
128
130
|
container: {
|
|
129
131
|
display: "grid",
|
|
130
132
|
"grid-template-columns": "1fr 1fr",
|
|
@@ -137,9 +139,7 @@ export const Cta3: IBlock = {
|
|
|
137
139
|
"row-gap": "lg",
|
|
138
140
|
},
|
|
139
141
|
title: {
|
|
140
|
-
"font-
|
|
141
|
-
"font-weight": "700",
|
|
142
|
-
color: "text-1",
|
|
142
|
+
"font-weight": 700,
|
|
143
143
|
},
|
|
144
144
|
cta_wrapper: {
|
|
145
145
|
display: "flex",
|
|
@@ -159,17 +159,20 @@ export const Cta3: IBlock = {
|
|
|
159
159
|
},
|
|
160
160
|
},
|
|
161
161
|
content: DEFAULT_CONTENT,
|
|
162
|
-
config: {
|
|
162
|
+
config: {
|
|
163
|
+
title: {
|
|
164
|
+
selectedVariants: {
|
|
165
|
+
Heading_Level: "H4",
|
|
166
|
+
},
|
|
167
|
+
},
|
|
168
|
+
},
|
|
163
169
|
},
|
|
164
170
|
{
|
|
165
171
|
key: "cta-wth-bg-img ",
|
|
166
172
|
title: "CTA with Background Image",
|
|
167
173
|
styles: {
|
|
168
174
|
layout: {
|
|
169
|
-
"
|
|
170
|
-
"padding-bottom": "3xl",
|
|
171
|
-
"background-image":
|
|
172
|
-
'url("https://static.levostg.online/W6OEVMW8/defaultblue-tryFJ012mgyH-1920w-pKkeQlte7lkYh.webp")',
|
|
175
|
+
"background-image": `url(${MEDIA_3_BG.location})`,
|
|
173
176
|
"background-position": "50% 50%",
|
|
174
177
|
"background-size": "cover",
|
|
175
178
|
},
|
|
@@ -185,9 +188,7 @@ export const Cta3: IBlock = {
|
|
|
185
188
|
"row-gap": "lg",
|
|
186
189
|
},
|
|
187
190
|
title: {
|
|
188
|
-
"font-
|
|
189
|
-
"font-weight": "700",
|
|
190
|
-
color: "text-1",
|
|
191
|
+
"font-weight": 700,
|
|
191
192
|
},
|
|
192
193
|
cta_wrapper: {
|
|
193
194
|
display: "flex",
|
|
@@ -205,12 +206,16 @@ export const Cta3: IBlock = {
|
|
|
205
206
|
height: "300px",
|
|
206
207
|
width: "300px",
|
|
207
208
|
},
|
|
208
|
-
description: {
|
|
209
|
-
display: "none",
|
|
210
|
-
},
|
|
209
|
+
description: {},
|
|
211
210
|
},
|
|
212
211
|
content: DEFAULT_CONTENT_2,
|
|
213
|
-
config: {
|
|
212
|
+
config: {
|
|
213
|
+
title: {
|
|
214
|
+
selectedVariants: {
|
|
215
|
+
Heading_Level: "H4",
|
|
216
|
+
},
|
|
217
|
+
},
|
|
218
|
+
},
|
|
214
219
|
},
|
|
215
220
|
],
|
|
216
221
|
};
|
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>
|
|
@@ -3,11 +3,18 @@ import type { IBlock } from "@levo-so/studio";
|
|
|
3
3
|
const DEFAULT_CONTENT = {
|
|
4
4
|
layout: null,
|
|
5
5
|
container: null,
|
|
6
|
-
|
|
7
6
|
contentWrapper: null,
|
|
8
7
|
title: "Check out this amazing content",
|
|
9
8
|
description: "We've got something special to share with you. Take a look!",
|
|
10
9
|
embed: "",
|
|
10
|
+
ctas: [
|
|
11
|
+
{
|
|
12
|
+
cta: "Learn More",
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
cta: "Explore",
|
|
16
|
+
},
|
|
17
|
+
],
|
|
11
18
|
};
|
|
12
19
|
const DEFAULT_CONTENT_2 = {
|
|
13
20
|
layout: null,
|
|
@@ -89,24 +96,7 @@ export const Embed1: IBlock = {
|
|
|
89
96
|
key: "default",
|
|
90
97
|
title: "Default",
|
|
91
98
|
styles: {
|
|
92
|
-
layout: {
|
|
93
|
-
"padding-left": "8xl",
|
|
94
|
-
"padding-right": "8xl",
|
|
95
|
-
"padding-top": "8xl",
|
|
96
|
-
"padding-bottom": "8xl",
|
|
97
|
-
tablet: {
|
|
98
|
-
"padding-left": "4xl",
|
|
99
|
-
"padding-right": "4xl",
|
|
100
|
-
"padding-top": "4xl",
|
|
101
|
-
"padding-bottom": "4xl",
|
|
102
|
-
},
|
|
103
|
-
mobile: {
|
|
104
|
-
"padding-left": "lg",
|
|
105
|
-
"padding-right": "lg",
|
|
106
|
-
"padding-top": "lg",
|
|
107
|
-
"padding-bottom": "lg",
|
|
108
|
-
},
|
|
109
|
-
},
|
|
99
|
+
layout: {},
|
|
110
100
|
container: {
|
|
111
101
|
display: "flex",
|
|
112
102
|
"align-items": "center",
|
|
@@ -154,38 +144,28 @@ export const Embed1: IBlock = {
|
|
|
154
144
|
"row-gap": "4xs",
|
|
155
145
|
"align-items": "center",
|
|
156
146
|
},
|
|
147
|
+
title: {},
|
|
148
|
+
ctas_levoGroup: {
|
|
149
|
+
display: "flex",
|
|
150
|
+
"column-gap": "xl",
|
|
151
|
+
"flex-direction": "row",
|
|
152
|
+
"justify-content": "center",
|
|
153
|
+
},
|
|
154
|
+
},
|
|
155
|
+
content: DEFAULT_CONTENT,
|
|
156
|
+
config: {
|
|
157
157
|
title: {
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
"font-size": "2xl",
|
|
158
|
+
selectedVariants: {
|
|
159
|
+
Heading_Level: "H2",
|
|
161
160
|
},
|
|
162
161
|
},
|
|
163
162
|
},
|
|
164
|
-
content: DEFAULT_CONTENT,
|
|
165
|
-
config: {},
|
|
166
163
|
},
|
|
167
164
|
{
|
|
168
165
|
key: "variant-1",
|
|
169
166
|
title: "Variant 1",
|
|
170
167
|
styles: {
|
|
171
|
-
layout: {
|
|
172
|
-
"padding-left": "8xl",
|
|
173
|
-
"padding-right": "8xl",
|
|
174
|
-
"padding-top": "8xl",
|
|
175
|
-
"padding-bottom": "8xl",
|
|
176
|
-
tablet: {
|
|
177
|
-
"padding-left": "4xl",
|
|
178
|
-
"padding-right": "4xl",
|
|
179
|
-
"padding-top": "4xl",
|
|
180
|
-
"padding-bottom": "4xl",
|
|
181
|
-
},
|
|
182
|
-
mobile: {
|
|
183
|
-
"padding-left": "lg",
|
|
184
|
-
"padding-right": "lg",
|
|
185
|
-
"padding-top": "lg",
|
|
186
|
-
"padding-bottom": "lg",
|
|
187
|
-
},
|
|
188
|
-
},
|
|
168
|
+
layout: {},
|
|
189
169
|
container: {
|
|
190
170
|
display: "flex",
|
|
191
171
|
"justify-content": "space-between",
|
|
@@ -199,7 +179,6 @@ export const Embed1: IBlock = {
|
|
|
199
179
|
"row-gap": "base",
|
|
200
180
|
"padding-top": "base",
|
|
201
181
|
},
|
|
202
|
-
"max-width": "auto",
|
|
203
182
|
"background-color": "background-3",
|
|
204
183
|
},
|
|
205
184
|
embed: {
|
|
@@ -235,19 +214,18 @@ export const Embed1: IBlock = {
|
|
|
235
214
|
"flex-direction": "column",
|
|
236
215
|
"row-gap": "4xs",
|
|
237
216
|
},
|
|
217
|
+
title: {},
|
|
218
|
+
description: {},
|
|
219
|
+
},
|
|
220
|
+
|
|
221
|
+
content: DEFAULT_CONTENT_2,
|
|
222
|
+
config: {
|
|
238
223
|
title: {
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
"font-size": "2xl",
|
|
224
|
+
selectedVariants: {
|
|
225
|
+
Heading_Level: "H2",
|
|
242
226
|
},
|
|
243
227
|
},
|
|
244
|
-
description: {
|
|
245
|
-
"line-height": 1.625,
|
|
246
|
-
},
|
|
247
228
|
},
|
|
248
|
-
|
|
249
|
-
content: DEFAULT_CONTENT_2,
|
|
250
|
-
config: {},
|
|
251
229
|
},
|
|
252
230
|
],
|
|
253
231
|
};
|
|
@@ -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
|
},
|
|
@@ -85,6 +80,8 @@ export type IEventDetailsContent = typeof DEFAULT_CONTENT & {
|
|
|
85
80
|
ends_at?: string;
|
|
86
81
|
kind?: string;
|
|
87
82
|
timing?: string;
|
|
83
|
+
id?: string;
|
|
84
|
+
external_ticketing?: string;
|
|
88
85
|
};
|
|
89
86
|
|
|
90
87
|
export const EventDetails: IBlock = {
|
|
@@ -136,8 +133,7 @@ export const EventDetails: IBlock = {
|
|
|
136
133
|
label: "Hero Image",
|
|
137
134
|
field_interface: "ImageWidget",
|
|
138
135
|
hint: {
|
|
139
|
-
prompt_description:
|
|
140
|
-
"Main event cover image showcasing the event theme or venue.",
|
|
136
|
+
prompt_description: "Main event cover image showcasing the event theme or venue.",
|
|
141
137
|
},
|
|
142
138
|
},
|
|
143
139
|
{
|
|
@@ -154,8 +150,7 @@ export const EventDetails: IBlock = {
|
|
|
154
150
|
label: "Event Title",
|
|
155
151
|
field_interface: "HeadingWidget",
|
|
156
152
|
hint: {
|
|
157
|
-
prompt_description:
|
|
158
|
-
"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.",
|
|
159
154
|
min_characters: 20,
|
|
160
155
|
max_characters: 60,
|
|
161
156
|
},
|
|
@@ -174,8 +169,7 @@ export const EventDetails: IBlock = {
|
|
|
174
169
|
label: "Start Date Wrapper",
|
|
175
170
|
field_interface: "BoxWidget",
|
|
176
171
|
hint: {
|
|
177
|
-
prompt_description:
|
|
178
|
-
"Container for start date information. No content generation required.",
|
|
172
|
+
prompt_description: "Container for start date information. No content generation required.",
|
|
179
173
|
},
|
|
180
174
|
},
|
|
181
175
|
{
|
|
@@ -199,13 +193,17 @@ export const EventDetails: IBlock = {
|
|
|
199
193
|
label: "Event ID",
|
|
200
194
|
field_interface: "TypographyWidget",
|
|
201
195
|
},
|
|
196
|
+
{
|
|
197
|
+
key: "external_ticketing",
|
|
198
|
+
label: "External Ticketing URL",
|
|
199
|
+
field_interface: "TypographyWidget",
|
|
200
|
+
},
|
|
202
201
|
{
|
|
203
202
|
key: "end-date-wrapper",
|
|
204
203
|
label: "End Date Wrapper",
|
|
205
204
|
field_interface: "BoxWidget",
|
|
206
205
|
hint: {
|
|
207
|
-
prompt_description:
|
|
208
|
-
"Container for end date information. No content generation required.",
|
|
206
|
+
prompt_description: "Container for end date information. No content generation required.",
|
|
209
207
|
},
|
|
210
208
|
},
|
|
211
209
|
{
|
|
@@ -229,8 +227,7 @@ export const EventDetails: IBlock = {
|
|
|
229
227
|
label: "Time Wrapper",
|
|
230
228
|
field_interface: "BoxWidget",
|
|
231
229
|
hint: {
|
|
232
|
-
prompt_description:
|
|
233
|
-
"Container for time range information. No content generation required.",
|
|
230
|
+
prompt_description: "Container for time range information. No content generation required.",
|
|
234
231
|
},
|
|
235
232
|
},
|
|
236
233
|
{
|
|
@@ -254,8 +251,7 @@ export const EventDetails: IBlock = {
|
|
|
254
251
|
label: "Kind Wrapper",
|
|
255
252
|
field_interface: "BoxWidget",
|
|
256
253
|
hint: {
|
|
257
|
-
prompt_description:
|
|
258
|
-
"Container for event kind information. No content generation required.",
|
|
254
|
+
prompt_description: "Container for event kind information. No content generation required.",
|
|
259
255
|
},
|
|
260
256
|
},
|
|
261
257
|
{
|
|
@@ -271,8 +267,7 @@ export const EventDetails: IBlock = {
|
|
|
271
267
|
label: "Event Kind",
|
|
272
268
|
field_interface: "TypographyWidget",
|
|
273
269
|
hint: {
|
|
274
|
-
prompt_description:
|
|
275
|
-
"Type or category of the event (e.g., Conference, Workshop).",
|
|
270
|
+
prompt_description: "Type or category of the event (e.g., Conference, Workshop).",
|
|
276
271
|
min_characters: 5,
|
|
277
272
|
max_characters: 20,
|
|
278
273
|
},
|
|
@@ -434,8 +429,7 @@ export const EventDetails: IBlock = {
|
|
|
434
429
|
label: "Email Field",
|
|
435
430
|
field_interface: "BoxWidget",
|
|
436
431
|
hint: {
|
|
437
|
-
prompt_description:
|
|
438
|
-
"Container for email contact field. No content generation required.",
|
|
432
|
+
prompt_description: "Container for email contact field. No content generation required.",
|
|
439
433
|
},
|
|
440
434
|
},
|
|
441
435
|
{
|
|
@@ -451,8 +445,7 @@ export const EventDetails: IBlock = {
|
|
|
451
445
|
label: "Contact Email",
|
|
452
446
|
field_interface: "TypographyWidget",
|
|
453
447
|
hint: {
|
|
454
|
-
prompt_description:
|
|
455
|
-
"Professional email address for event inquiries and contact.",
|
|
448
|
+
prompt_description: "Professional email address for event inquiries and contact.",
|
|
456
449
|
min_characters: 15,
|
|
457
450
|
max_characters: 40,
|
|
458
451
|
},
|
|
@@ -462,8 +455,7 @@ export const EventDetails: IBlock = {
|
|
|
462
455
|
label: "Phone Field",
|
|
463
456
|
field_interface: "BoxWidget",
|
|
464
457
|
hint: {
|
|
465
|
-
prompt_description:
|
|
466
|
-
"Container for phone contact field. No content generation required.",
|
|
458
|
+
prompt_description: "Container for phone contact field. No content generation required.",
|
|
467
459
|
},
|
|
468
460
|
},
|
|
469
461
|
{
|
|
@@ -479,8 +471,7 @@ export const EventDetails: IBlock = {
|
|
|
479
471
|
label: "Contact Phone",
|
|
480
472
|
field_interface: "TypographyWidget",
|
|
481
473
|
hint: {
|
|
482
|
-
prompt_description:
|
|
483
|
-
"Professional phone number for event inquiries and contact.",
|
|
474
|
+
prompt_description: "Professional phone number for event inquiries and contact.",
|
|
484
475
|
min_characters: 12,
|
|
485
476
|
max_characters: 20,
|
|
486
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>
|
|
@@ -76,6 +61,7 @@ const EventDetails: React.FC<ILevoBlockBaseProps<IEventDetailsContent>> = ({
|
|
|
76
61
|
<RegisterModal
|
|
77
62
|
eventID={content?.id as string}
|
|
78
63
|
title={content?.title}
|
|
64
|
+
external={content?.external_ticketing}
|
|
79
65
|
/>
|
|
80
66
|
) : null}
|
|
81
67
|
<Typography elementKey="description" />
|