@levo-so/blocks 0.1.0 → 0.1.2
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 +5 -9
- package/src/blocks/about-us/about-us-1.schema.ts +563 -0
- package/src/blocks/about-us/about-us-1.tsx +53 -0
- package/src/blocks/blogs/blog-listing-1.schema.ts +419 -0
- package/src/blocks/blogs/blog-listing-1.tsx +79 -0
- package/src/blocks/blogs/blog-listing-2.schema.ts +608 -0
- package/src/blocks/blogs/blog-listing-2.tsx +83 -0
- package/src/blocks/blogs/blog-post-1.schema.ts +392 -0
- package/src/blocks/blogs/blog-post-1.tsx +52 -0
- package/src/blocks/blogs/blog-post-2.schema.ts +834 -0
- package/src/blocks/blogs/blog-post-2.tsx +131 -0
- package/src/blocks/cards/cards-10.schema.ts +433 -0
- package/src/blocks/cards/cards-10.tsx +46 -0
- package/src/blocks/cards/cards-11.schema.ts +440 -0
- package/src/blocks/cards/cards-11.tsx +50 -0
- package/src/blocks/cards/cards-12.schema.ts +578 -0
- package/src/blocks/cards/cards-12.tsx +54 -0
- package/src/blocks/cards/cards-2.schema.ts +293 -0
- package/src/blocks/cards/cards-2.tsx +42 -0
- package/src/blocks/cards/cards-3.schema.ts +365 -0
- package/src/blocks/cards/cards-3.tsx +49 -0
- package/src/blocks/cards/cards-4.schema.ts +677 -0
- package/src/blocks/cards/cards-4.tsx +50 -0
- package/src/blocks/cards/cards-5.schema.ts +264 -0
- package/src/blocks/cards/cards-5.tsx +34 -0
- package/src/blocks/cards/cards-6.schema.ts +639 -0
- package/src/blocks/cards/cards-6.tsx +136 -0
- package/src/blocks/cards/cards-7.schema.ts +1793 -0
- package/src/blocks/cards/cards-7.tsx +165 -0
- package/src/blocks/cards/cards-8.schema.ts +691 -0
- package/src/blocks/cards/cards-8.tsx +43 -0
- package/src/blocks/cards/cards-9.schema.ts +827 -0
- package/src/blocks/cards/cards-9.tsx +54 -0
- package/src/blocks/carousel/carousel-1.schema.ts +250 -0
- package/src/blocks/carousel/carousel-1.tsx +79 -0
- package/src/blocks/contact-us/contact-us-1.schema.ts +226 -0
- package/src/blocks/contact-us/contact-us-1.tsx +39 -0
- package/src/blocks/contact-us/contact-us-2.schema.ts +524 -0
- package/src/blocks/contact-us/contact-us-2.tsx +71 -0
- package/src/blocks/content/content-1.schema.ts +884 -0
- package/src/blocks/content/content-1.tsx +69 -0
- package/src/blocks/content/content-2.schema.ts +209 -0
- package/src/blocks/content/content-2.tsx +32 -0
- package/src/blocks/content/content-3.schema.ts +864 -0
- package/src/blocks/content/content-3.tsx +54 -0
- package/src/blocks/content/content-4.schema.ts +287 -0
- package/src/blocks/content/content-4.tsx +47 -0
- package/src/blocks/content/content-5.schema.ts +944 -0
- package/src/blocks/content/content-5.tsx +58 -0
- package/src/blocks/content/content-6.schema.ts +991 -0
- package/src/blocks/content/content-6.tsx +61 -0
- package/src/blocks/cta/cta-1.schema.ts +361 -0
- package/src/blocks/cta/cta-1.tsx +33 -0
- package/src/blocks/cta/cta-2.schema.ts +209 -0
- package/src/blocks/cta/cta-2.tsx +28 -0
- package/src/blocks/cta/cta-3.schema.ts +156 -0
- package/src/blocks/cta/cta-3.tsx +48 -0
- package/src/blocks/embed/embed-1.schema.ts +153 -0
- package/src/blocks/embed/embed-1.tsx +38 -0
- package/src/blocks/event/event-details.schema.ts +737 -0
- package/src/blocks/event/event-details.tsx +107 -0
- package/src/blocks/event/event-listing-2.schema.ts +496 -0
- package/src/blocks/event/event-listing-2.tsx +70 -0
- package/src/blocks/event/event-listing-3.schema.ts +605 -0
- package/src/blocks/event/event-listing-3.tsx +95 -0
- package/src/blocks/event/event-listing.schema.ts +1358 -0
- package/src/blocks/event/event-listing.tsx +90 -0
- package/src/blocks/faq/faq-1.schema.ts +357 -0
- package/src/blocks/faq/faq-1.tsx +65 -0
- package/src/blocks/faq/faq-2.schema.ts +356 -0
- package/src/blocks/faq/faq-2.tsx +84 -0
- package/src/blocks/faq/faq-3.schema.ts +475 -0
- package/src/blocks/faq/faq-3.tsx +70 -0
- package/src/blocks/features/features-1/features-1.schema.ts +165 -0
- package/src/blocks/features/features-1/features-1.tsx +48 -0
- package/src/blocks/features/features-1/variants/default.ts +197 -0
- package/{dist/blocks/features/features-1/variants/index.js → src/blocks/features/features-1/variants/index.ts} +7 -1
- package/src/blocks/features/features-1/variants/stylized-cards-v1.ts +138 -0
- package/src/blocks/features/features-1/variants/stylized-cards-v2.ts +487 -0
- package/src/blocks/features/features-2.schema.ts +338 -0
- package/src/blocks/features/features-2.tsx +66 -0
- package/src/blocks/features/features-3.schema.ts +438 -0
- package/src/blocks/features/features-3.tsx +56 -0
- package/src/blocks/features/features-4.schema.ts +631 -0
- package/src/blocks/features/features-4.tsx +75 -0
- package/src/blocks/features/features-5.schema.ts +747 -0
- package/src/blocks/features/features-5.tsx +49 -0
- package/src/blocks/features/features-6.schema.ts +849 -0
- package/src/blocks/features/features-6.tsx +125 -0
- package/src/blocks/footer/footer-1.schema.ts +589 -0
- package/src/blocks/footer/footer-1.tsx +90 -0
- package/src/blocks/footer/footer-2.schema.ts +898 -0
- package/src/blocks/footer/footer-2.tsx +77 -0
- package/src/blocks/footer/footer-3.schema.ts +487 -0
- package/src/blocks/footer/footer-3.tsx +100 -0
- package/src/blocks/footer/footer-4.schema.ts +644 -0
- package/src/blocks/footer/footer-4.tsx +97 -0
- package/src/blocks/footer/footer-5.schema.ts +425 -0
- package/src/blocks/footer/footer-5.tsx +91 -0
- package/src/blocks/hero/hero-1.schema.ts +766 -0
- package/src/blocks/hero/hero-1.tsx +52 -0
- package/src/blocks/hero/hero-2.schema.ts +316 -0
- package/src/blocks/hero/hero-2.tsx +49 -0
- package/src/blocks/hero/hero-3.schema.ts +415 -0
- package/src/blocks/hero/hero-3.tsx +50 -0
- package/src/blocks/hero/hero-4.schema.ts +325 -0
- package/src/blocks/hero/hero-4.tsx +89 -0
- package/src/blocks/hero/hero-5.schema.ts +192 -0
- package/src/blocks/hero/hero-5.tsx +86 -0
- package/src/blocks/hero/hero-6.schema.ts +703 -0
- package/src/blocks/hero/hero-6.tsx +62 -0
- package/src/blocks/hero/hero-7.schema.ts +508 -0
- package/src/blocks/hero/hero-7.tsx +115 -0
- package/src/blocks/hero/hero-8.schema.ts +372 -0
- package/src/blocks/hero/hero-8.tsx +113 -0
- package/src/blocks/hero/hero-9.schema.ts +379 -0
- package/src/blocks/hero/hero-9.tsx +49 -0
- package/src/blocks/index.ts +78 -0
- package/src/blocks/logos/logos-1.schema.ts +264 -0
- package/src/blocks/logos/logos-1.tsx +60 -0
- package/src/blocks/navbar/navbar-1.schema.ts +961 -0
- package/src/blocks/navbar/navbar-1.tsx +398 -0
- package/src/blocks/navbar/navbar-2.schema.ts +1226 -0
- package/src/blocks/navbar/navbar-2.tsx +417 -0
- package/src/blocks/pricing/pricing-1.schema.ts +1002 -0
- package/src/blocks/pricing/pricing-1.tsx +88 -0
- package/src/blocks/products/products-listing-1.schema.ts +274 -0
- package/src/blocks/products/products-listing-1.tsx +48 -0
- package/src/blocks/stats/stats-1.schema.ts +231 -0
- package/src/blocks/stats/stats-1.tsx +38 -0
- package/src/blocks/stats/stats-2.schema.ts +111 -0
- package/src/blocks/stats/stats-2.tsx +52 -0
- package/src/blocks/stats/variants/default.ts +190 -0
- package/src/blocks/stats/variants/hero.ts +153 -0
- package/{dist/blocks/stats/variants/index.js → src/blocks/stats/variants/index.ts} +1 -0
- package/src/blocks/team/team-1.schema.ts +516 -0
- package/src/blocks/team/team-1.tsx +80 -0
- package/src/blocks/team/team-2.schema.ts +2813 -0
- package/src/blocks/team/team-2.tsx +74 -0
- package/src/blocks/team/team-3.schema.ts +707 -0
- package/src/blocks/team/team-3.tsx +103 -0
- package/src/blocks/termsAndPrivacy/terms-and-conditions-1.schema.ts +168 -0
- package/src/blocks/termsAndPrivacy/terms-and-conditions-1.tsx +29 -0
- package/src/blocks/testimonial/testimonial-1.schema.ts +345 -0
- package/src/blocks/testimonial/testimonial-1.tsx +79 -0
- package/src/blocks/testimonial/testimonial-2.schema.ts +816 -0
- package/src/blocks/testimonial/testimonial-2.tsx +161 -0
- package/src/blocks/testimonial/testimonial-3.schema.ts +279 -0
- package/src/blocks/testimonial/testimonial-3.tsx +128 -0
- package/src/blocks/testimonial/testimonial-4.schema.ts +3373 -0
- package/src/blocks/testimonial/testimonial-4.tsx +202 -0
- package/src/blocks/testimonial/testimonial-5.schema.ts +434 -0
- package/src/blocks/testimonial/testimonial-5.tsx +106 -0
- package/src/blocks/testimonial/testimonial-6.schema.ts +709 -0
- package/src/blocks/testimonial/testimonial-6.tsx +128 -0
- package/{dist/index.js → src/index.ts} +5 -2
- package/{dist/schemas/blocks.js → src/schemas/blocks.ts} +75 -72
- package/src/schemas/categories.ts +134 -0
- package/src/styles.d.ts +4 -0
- package/dist/blocks/about-us/about-us-1.d.ts +0 -5
- package/dist/blocks/about-us/about-us-1.js +0 -5
- package/dist/blocks/about-us/about-us-1.schema.d.ts +0 -38
- package/dist/blocks/about-us/about-us-1.schema.js +0 -537
- package/dist/blocks/blogs/blog-listing-1.d.ts +0 -5
- package/dist/blocks/blogs/blog-listing-1.js +0 -12
- package/dist/blocks/blogs/blog-listing-1.schema.d.ts +0 -59
- package/dist/blocks/blogs/blog-listing-1.schema.js +0 -387
- package/dist/blocks/blogs/blog-listing-2.d.ts +0 -5
- package/dist/blocks/blogs/blog-listing-2.js +0 -9
- package/dist/blocks/blogs/blog-listing-2.schema.d.ts +0 -104
- package/dist/blocks/blogs/blog-listing-2.schema.js +0 -572
- package/dist/blocks/blogs/blog-post-1.d.ts +0 -6
- package/dist/blocks/blogs/blog-post-1.js +0 -8
- package/dist/blocks/blogs/blog-post-1.schema.d.ts +0 -48
- package/dist/blocks/blogs/blog-post-1.schema.js +0 -358
- package/dist/blocks/blogs/blog-post-2.d.ts +0 -6
- package/dist/blocks/blogs/blog-post-2.js +0 -8
- package/dist/blocks/blogs/blog-post-2.schema.d.ts +0 -74
- package/dist/blocks/blogs/blog-post-2.schema.js +0 -779
- package/dist/blocks/cards/cards-10.d.ts +0 -6
- package/dist/blocks/cards/cards-10.js +0 -4
- package/dist/blocks/cards/cards-10.schema.d.ts +0 -44
- package/dist/blocks/cards/cards-10.schema.js +0 -405
- package/dist/blocks/cards/cards-11.d.ts +0 -6
- package/dist/blocks/cards/cards-11.js +0 -4
- package/dist/blocks/cards/cards-11.schema.d.ts +0 -58
- package/dist/blocks/cards/cards-11.schema.js +0 -406
- package/dist/blocks/cards/cards-12.d.ts +0 -6
- package/dist/blocks/cards/cards-12.js +0 -4
- package/dist/blocks/cards/cards-12.schema.d.ts +0 -38
- package/dist/blocks/cards/cards-12.schema.js +0 -545
- package/dist/blocks/cards/cards-2.d.ts +0 -5
- package/dist/blocks/cards/cards-2.js +0 -4
- package/dist/blocks/cards/cards-2.schema.d.ts +0 -46
- package/dist/blocks/cards/cards-2.schema.js +0 -260
- package/dist/blocks/cards/cards-3.d.ts +0 -6
- package/dist/blocks/cards/cards-3.js +0 -5
- package/dist/blocks/cards/cards-3.schema.d.ts +0 -36
- package/dist/blocks/cards/cards-3.schema.js +0 -351
- package/dist/blocks/cards/cards-4.d.ts +0 -6
- package/dist/blocks/cards/cards-4.js +0 -4
- package/dist/blocks/cards/cards-4.schema.d.ts +0 -40
- package/dist/blocks/cards/cards-4.schema.js +0 -648
- package/dist/blocks/cards/cards-5.d.ts +0 -5
- package/dist/blocks/cards/cards-5.js +0 -4
- package/dist/blocks/cards/cards-5.schema.d.ts +0 -48
- package/dist/blocks/cards/cards-5.schema.js +0 -238
- package/dist/blocks/cards/cards-6.d.ts +0 -5
- package/dist/blocks/cards/cards-6.js +0 -45
- package/dist/blocks/cards/cards-6.schema.d.ts +0 -50
- package/dist/blocks/cards/cards-6.schema.js +0 -608
- package/dist/blocks/cards/cards-7.d.ts +0 -5
- package/dist/blocks/cards/cards-7.js +0 -45
- package/dist/blocks/cards/cards-7.schema.d.ts +0 -87
- package/dist/blocks/cards/cards-7.schema.js +0 -1732
- package/dist/blocks/cards/cards-8.d.ts +0 -6
- package/dist/blocks/cards/cards-8.js +0 -4
- package/dist/blocks/cards/cards-8.schema.d.ts +0 -40
- package/dist/blocks/cards/cards-8.schema.js +0 -660
- package/dist/blocks/cards/cards-9.d.ts +0 -5
- package/dist/blocks/cards/cards-9.js +0 -4
- package/dist/blocks/cards/cards-9.schema.d.ts +0 -55
- package/dist/blocks/cards/cards-9.schema.js +0 -798
- package/dist/blocks/carousel/carousel-1.d.ts +0 -5
- package/dist/blocks/carousel/carousel-1.js +0 -12
- package/dist/blocks/carousel/carousel-1.schema.d.ts +0 -51
- package/dist/blocks/carousel/carousel-1.schema.js +0 -236
- package/dist/blocks/contact-us/contact-us-1.d.ts +0 -5
- package/dist/blocks/contact-us/contact-us-1.js +0 -4
- package/dist/blocks/contact-us/contact-us-1.schema.d.ts +0 -31
- package/dist/blocks/contact-us/contact-us-1.schema.js +0 -202
- package/dist/blocks/contact-us/contact-us-2.d.ts +0 -5
- package/dist/blocks/contact-us/contact-us-2.js +0 -4
- package/dist/blocks/contact-us/contact-us-2.schema.d.ts +0 -59
- package/dist/blocks/contact-us/contact-us-2.schema.js +0 -512
- package/dist/blocks/content/content-1.d.ts +0 -6
- package/dist/blocks/content/content-1.js +0 -4
- package/dist/blocks/content/content-1.schema.d.ts +0 -56
- package/dist/blocks/content/content-1.schema.js +0 -807
- package/dist/blocks/content/content-2.d.ts +0 -5
- package/dist/blocks/content/content-2.js +0 -4
- package/dist/blocks/content/content-2.schema.d.ts +0 -78
- package/dist/blocks/content/content-2.schema.js +0 -200
- package/dist/blocks/content/content-3.d.ts +0 -6
- package/dist/blocks/content/content-3.js +0 -5
- package/dist/blocks/content/content-3.schema.d.ts +0 -23
- package/dist/blocks/content/content-3.schema.js +0 -850
- package/dist/blocks/content/content-4.d.ts +0 -6
- package/dist/blocks/content/content-4.js +0 -6
- package/dist/blocks/content/content-4.schema.d.ts +0 -33
- package/dist/blocks/content/content-4.schema.js +0 -252
- package/dist/blocks/content/content-5.d.ts +0 -6
- package/dist/blocks/content/content-5.js +0 -5
- package/dist/blocks/content/content-5.schema.d.ts +0 -37
- package/dist/blocks/content/content-5.schema.js +0 -932
- package/dist/blocks/content/content-6.d.ts +0 -6
- package/dist/blocks/content/content-6.js +0 -5
- package/dist/blocks/content/content-6.schema.d.ts +0 -41
- package/dist/blocks/content/content-6.schema.js +0 -976
- package/dist/blocks/cta/cta-1.d.ts +0 -5
- package/dist/blocks/cta/cta-1.js +0 -4
- package/dist/blocks/cta/cta-1.schema.d.ts +0 -40
- package/dist/blocks/cta/cta-1.schema.js +0 -339
- package/dist/blocks/cta/cta-2.d.ts +0 -5
- package/dist/blocks/cta/cta-2.js +0 -4
- package/dist/blocks/cta/cta-2.schema.d.ts +0 -45
- package/dist/blocks/cta/cta-2.schema.js +0 -183
- package/dist/blocks/cta/cta-3.d.ts +0 -5
- package/dist/blocks/cta/cta-3.js +0 -4
- package/dist/blocks/cta/cta-3.schema.d.ts +0 -34
- package/dist/blocks/cta/cta-3.schema.js +0 -137
- package/dist/blocks/embed/embed-1.d.ts +0 -5
- package/dist/blocks/embed/embed-1.js +0 -5
- package/dist/blocks/embed/embed-1.schema.d.ts +0 -13
- package/dist/blocks/embed/embed-1.schema.js +0 -146
- package/dist/blocks/event/event-details.d.ts +0 -5
- package/dist/blocks/event/event-details.js +0 -9
- package/dist/blocks/event/event-details.schema.d.ts +0 -112
- package/dist/blocks/event/event-details.schema.js +0 -685
- package/dist/blocks/event/event-listing-2.d.ts +0 -5
- package/dist/blocks/event/event-listing-2.js +0 -4
- package/dist/blocks/event/event-listing-2.schema.d.ts +0 -84
- package/dist/blocks/event/event-listing-2.schema.js +0 -455
- package/dist/blocks/event/event-listing-3.d.ts +0 -5
- package/dist/blocks/event/event-listing-3.js +0 -10
- package/dist/blocks/event/event-listing-3.schema.d.ts +0 -77
- package/dist/blocks/event/event-listing-3.schema.js +0 -570
- package/dist/blocks/event/event-listing.d.ts +0 -5
- package/dist/blocks/event/event-listing.js +0 -10
- package/dist/blocks/event/event-listing.schema.d.ts +0 -51
- package/dist/blocks/event/event-listing.schema.js +0 -1297
- package/dist/blocks/faq/faq-1.d.ts +0 -5
- package/dist/blocks/faq/faq-1.js +0 -4
- package/dist/blocks/faq/faq-1.schema.d.ts +0 -47
- package/dist/blocks/faq/faq-1.schema.js +0 -325
- package/dist/blocks/faq/faq-2.d.ts +0 -6
- package/dist/blocks/faq/faq-2.js +0 -19
- package/dist/blocks/faq/faq-2.schema.d.ts +0 -47
- package/dist/blocks/faq/faq-2.schema.js +0 -329
- package/dist/blocks/faq/faq-3.d.ts +0 -5
- package/dist/blocks/faq/faq-3.js +0 -4
- package/dist/blocks/faq/faq-3.schema.d.ts +0 -40
- package/dist/blocks/faq/faq-3.schema.js +0 -444
- package/dist/blocks/features/features-1/features-1.d.ts +0 -5
- package/dist/blocks/features/features-1/features-1.js +0 -4
- package/dist/blocks/features/features-1/features-1.schema.d.ts +0 -5
- package/dist/blocks/features/features-1/features-1.schema.js +0 -142
- package/dist/blocks/features/features-1/variants/default.d.ts +0 -37
- package/dist/blocks/features/features-1/variants/default.js +0 -185
- package/dist/blocks/features/features-1/variants/index.d.ts +0 -5
- package/dist/blocks/features/features-1/variants/stylized-cards-v1.d.ts +0 -3
- package/dist/blocks/features/features-1/variants/stylized-cards-v1.js +0 -132
- package/dist/blocks/features/features-1/variants/stylized-cards-v2.d.ts +0 -3
- package/dist/blocks/features/features-1/variants/stylized-cards-v2.js +0 -484
- package/dist/blocks/features/features-2.d.ts +0 -5
- package/dist/blocks/features/features-2.js +0 -8
- package/dist/blocks/features/features-2.schema.d.ts +0 -41
- package/dist/blocks/features/features-2.schema.js +0 -321
- package/dist/blocks/features/features-3.d.ts +0 -5
- package/dist/blocks/features/features-3.js +0 -4
- package/dist/blocks/features/features-3.schema.d.ts +0 -40
- package/dist/blocks/features/features-3.schema.js +0 -424
- package/dist/blocks/features/features-4.d.ts +0 -5
- package/dist/blocks/features/features-4.js +0 -4
- package/dist/blocks/features/features-4.schema.d.ts +0 -60
- package/dist/blocks/features/features-4.schema.js +0 -594
- package/dist/blocks/features/features-5.d.ts +0 -6
- package/dist/blocks/features/features-5.js +0 -5
- package/dist/blocks/features/features-5.schema.d.ts +0 -28
- package/dist/blocks/features/features-5.schema.js +0 -727
- package/dist/blocks/features/features-6.d.ts +0 -5
- package/dist/blocks/features/features-6.js +0 -31
- package/dist/blocks/features/features-6.schema.d.ts +0 -74
- package/dist/blocks/features/features-6.schema.js +0 -814
- package/dist/blocks/footer/footer-1.d.ts +0 -6
- package/dist/blocks/footer/footer-1.js +0 -5
- package/dist/blocks/footer/footer-1.schema.d.ts +0 -62
- package/dist/blocks/footer/footer-1.schema.js +0 -565
- package/dist/blocks/footer/footer-2.d.ts +0 -5
- package/dist/blocks/footer/footer-2.js +0 -4
- package/dist/blocks/footer/footer-2.schema.d.ts +0 -76
- package/dist/blocks/footer/footer-2.schema.js +0 -876
- package/dist/blocks/footer/footer-3.d.ts +0 -6
- package/dist/blocks/footer/footer-3.js +0 -15
- package/dist/blocks/footer/footer-3.schema.d.ts +0 -48
- package/dist/blocks/footer/footer-3.schema.js +0 -475
- package/dist/blocks/footer/footer-4.d.ts +0 -6
- package/dist/blocks/footer/footer-4.js +0 -5
- package/dist/blocks/footer/footer-4.schema.d.ts +0 -71
- package/dist/blocks/footer/footer-4.schema.js +0 -620
- package/dist/blocks/footer/footer-5.d.ts +0 -6
- package/dist/blocks/footer/footer-5.js +0 -5
- package/dist/blocks/footer/footer-5.schema.d.ts +0 -52
- package/dist/blocks/footer/footer-5.schema.js +0 -400
- package/dist/blocks/hero/hero-1.d.ts +0 -5
- package/dist/blocks/hero/hero-1.js +0 -4
- package/dist/blocks/hero/hero-1.schema.d.ts +0 -35
- package/dist/blocks/hero/hero-1.schema.js +0 -742
- package/dist/blocks/hero/hero-2.d.ts +0 -5
- package/dist/blocks/hero/hero-2.js +0 -4
- package/dist/blocks/hero/hero-2.schema.d.ts +0 -46
- package/dist/blocks/hero/hero-2.schema.js +0 -282
- package/dist/blocks/hero/hero-3.d.ts +0 -5
- package/dist/blocks/hero/hero-3.js +0 -4
- package/dist/blocks/hero/hero-3.schema.d.ts +0 -54
- package/dist/blocks/hero/hero-3.schema.js +0 -378
- package/dist/blocks/hero/hero-4.d.ts +0 -5
- package/dist/blocks/hero/hero-4.js +0 -30
- package/dist/blocks/hero/hero-4.schema.d.ts +0 -33
- package/dist/blocks/hero/hero-4.schema.js +0 -316
- package/dist/blocks/hero/hero-5.d.ts +0 -5
- package/dist/blocks/hero/hero-5.js +0 -30
- package/dist/blocks/hero/hero-5.schema.d.ts +0 -32
- package/dist/blocks/hero/hero-5.schema.js +0 -183
- package/dist/blocks/hero/hero-6.d.ts +0 -5
- package/dist/blocks/hero/hero-6.js +0 -8
- package/dist/blocks/hero/hero-6.schema.d.ts +0 -36
- package/dist/blocks/hero/hero-6.schema.js +0 -617
- package/dist/blocks/hero/hero-7.d.ts +0 -5
- package/dist/blocks/hero/hero-7.js +0 -40
- package/dist/blocks/hero/hero-7.schema.d.ts +0 -12
- package/dist/blocks/hero/hero-7.schema.js +0 -471
- package/dist/blocks/hero/hero-8.d.ts +0 -5
- package/dist/blocks/hero/hero-8.js +0 -39
- package/dist/blocks/hero/hero-8.schema.d.ts +0 -17
- package/dist/blocks/hero/hero-8.schema.js +0 -343
- package/dist/blocks/hero/hero-9.d.ts +0 -6
- package/dist/blocks/hero/hero-9.js +0 -4
- package/dist/blocks/hero/hero-9.schema.d.ts +0 -39
- package/dist/blocks/hero/hero-9.schema.js +0 -355
- package/dist/blocks/index.d.ts +0 -3
- package/dist/blocks/index.js +0 -74
- package/dist/blocks/logos/logos-1.d.ts +0 -5
- package/dist/blocks/logos/logos-1.js +0 -10
- package/dist/blocks/logos/logos-1.schema.d.ts +0 -34
- package/dist/blocks/logos/logos-1.schema.js +0 -239
- package/dist/blocks/navbar/navbar-1.d.ts +0 -6
- package/dist/blocks/navbar/navbar-1.js +0 -100
- package/dist/blocks/navbar/navbar-1.schema.d.ts +0 -117
- package/dist/blocks/navbar/navbar-1.schema.js +0 -938
- package/dist/blocks/navbar/navbar-2.d.ts +0 -6
- package/dist/blocks/navbar/navbar-2.js +0 -99
- package/dist/blocks/navbar/navbar-2.schema.d.ts +0 -134
- package/dist/blocks/navbar/navbar-2.schema.js +0 -1200
- package/dist/blocks/pricing/pricing-1.d.ts +0 -5
- package/dist/blocks/pricing/pricing-1.js +0 -4
- package/dist/blocks/pricing/pricing-1.schema.d.ts +0 -87
- package/dist/blocks/pricing/pricing-1.schema.js +0 -976
- package/dist/blocks/products/products-listing-1.d.ts +0 -5
- package/dist/blocks/products/products-listing-1.js +0 -4
- package/dist/blocks/products/products-listing-1.schema.d.ts +0 -36
- package/dist/blocks/products/products-listing-1.schema.js +0 -264
- package/dist/blocks/stats/stats-1.d.ts +0 -6
- package/dist/blocks/stats/stats-1.js +0 -6
- package/dist/blocks/stats/stats-1.schema.d.ts +0 -25
- package/dist/blocks/stats/stats-1.schema.js +0 -213
- package/dist/blocks/stats/stats-2.d.ts +0 -6
- package/dist/blocks/stats/stats-2.js +0 -6
- package/dist/blocks/stats/stats-2.schema.d.ts +0 -5
- package/dist/blocks/stats/stats-2.schema.js +0 -104
- package/dist/blocks/stats/variants/default.d.ts +0 -22
- package/dist/blocks/stats/variants/default.js +0 -185
- package/dist/blocks/stats/variants/hero.d.ts +0 -3
- package/dist/blocks/stats/variants/hero.js +0 -151
- package/dist/blocks/stats/variants/index.d.ts +0 -4
- package/dist/blocks/team/team-1.d.ts +0 -6
- package/dist/blocks/team/team-1.js +0 -6
- package/dist/blocks/team/team-1.schema.d.ts +0 -65
- package/dist/blocks/team/team-1.schema.js +0 -476
- package/dist/blocks/team/team-2.d.ts +0 -6
- package/dist/blocks/team/team-2.js +0 -6
- package/dist/blocks/team/team-2.schema.d.ts +0 -52
- package/dist/blocks/team/team-2.schema.js +0 -2732
- package/dist/blocks/team/team-3.d.ts +0 -5
- package/dist/blocks/team/team-3.js +0 -30
- package/dist/blocks/team/team-3.schema.d.ts +0 -32
- package/dist/blocks/team/team-3.schema.js +0 -679
- package/dist/blocks/termsAndPrivacy/terms-and-conditions-1.d.ts +0 -6
- package/dist/blocks/termsAndPrivacy/terms-and-conditions-1.js +0 -4
- package/dist/blocks/termsAndPrivacy/terms-and-conditions-1.schema.d.ts +0 -14
- package/dist/blocks/termsAndPrivacy/terms-and-conditions-1.schema.js +0 -154
- package/dist/blocks/testimonial/testimonial-1.d.ts +0 -5
- package/dist/blocks/testimonial/testimonial-1.js +0 -10
- package/dist/blocks/testimonial/testimonial-1.schema.d.ts +0 -16
- package/dist/blocks/testimonial/testimonial-1.schema.js +0 -314
- package/dist/blocks/testimonial/testimonial-2.d.ts +0 -5
- package/dist/blocks/testimonial/testimonial-2.js +0 -42
- package/dist/blocks/testimonial/testimonial-2.schema.d.ts +0 -54
- package/dist/blocks/testimonial/testimonial-2.schema.js +0 -771
- package/dist/blocks/testimonial/testimonial-3.d.ts +0 -5
- package/dist/blocks/testimonial/testimonial-3.js +0 -38
- package/dist/blocks/testimonial/testimonial-3.schema.d.ts +0 -56
- package/dist/blocks/testimonial/testimonial-3.schema.js +0 -260
- package/dist/blocks/testimonial/testimonial-4.d.ts +0 -5
- package/dist/blocks/testimonial/testimonial-4.js +0 -51
- package/dist/blocks/testimonial/testimonial-4.schema.d.ts +0 -145
- package/dist/blocks/testimonial/testimonial-4.schema.js +0 -3214
- package/dist/blocks/testimonial/testimonial-5.d.ts +0 -5
- package/dist/blocks/testimonial/testimonial-5.js +0 -31
- package/dist/blocks/testimonial/testimonial-5.schema.d.ts +0 -33
- package/dist/blocks/testimonial/testimonial-5.schema.js +0 -401
- package/dist/blocks/testimonial/testimonial-6.d.ts +0 -5
- package/dist/blocks/testimonial/testimonial-6.js +0 -39
- package/dist/blocks/testimonial/testimonial-6.schema.d.ts +0 -60
- package/dist/blocks/testimonial/testimonial-6.schema.js +0 -695
- package/dist/index.d.ts +0 -6
- package/dist/schemas/blocks.d.ts +0 -3
- package/dist/schemas/categories.d.ts +0 -3
- package/dist/schemas/categories.js +0 -129
- package/dist/schemas/index.d.ts +0 -3
- /package/{dist/schemas/index.js → src/schemas/index.ts} +0 -0
|
@@ -0,0 +1,325 @@
|
|
|
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
|
+
slider_dots: null,
|
|
27
|
+
slider_dot: null,
|
|
28
|
+
slides: [
|
|
29
|
+
{
|
|
30
|
+
wrapper: null,
|
|
31
|
+
headerWrapper: null,
|
|
32
|
+
title: "Your Trusted Partner in Financial Excellence",
|
|
33
|
+
cta: "Get Started",
|
|
34
|
+
image: DEFAULT_IMAGE,
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
wrapper: null,
|
|
38
|
+
headerWrapper: null,
|
|
39
|
+
title: "Smart Investment Solutions for Your Future",
|
|
40
|
+
cta: "Invest Now",
|
|
41
|
+
image: DEFAULT_IMAGE,
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
wrapper: null,
|
|
45
|
+
headerWrapper: null,
|
|
46
|
+
title: "Secure Digital Banking at Your Fingertips",
|
|
47
|
+
cta: "Open Account",
|
|
48
|
+
image: DEFAULT_IMAGE,
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
wrapper: null,
|
|
52
|
+
headerWrapper: null,
|
|
53
|
+
title: "Expert Financial Planning for Business Growth",
|
|
54
|
+
cta: "Learn More",
|
|
55
|
+
image: DEFAULT_IMAGE,
|
|
56
|
+
},
|
|
57
|
+
],
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
export type IHero4Content = typeof DEFAULT_CONTENT;
|
|
61
|
+
|
|
62
|
+
export const Hero4: IBlock = {
|
|
63
|
+
category_id: "hero",
|
|
64
|
+
title: "Hero 4",
|
|
65
|
+
key: "hero-4",
|
|
66
|
+
version: "v1",
|
|
67
|
+
content_schema: [
|
|
68
|
+
{
|
|
69
|
+
key: "layout",
|
|
70
|
+
label: "Layout",
|
|
71
|
+
field_interface: "LayoutWidget",
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
key: "container",
|
|
75
|
+
label: "Container",
|
|
76
|
+
field_interface: "ContainerWidget",
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
key: "slider_dots",
|
|
80
|
+
label: "Slider Dots",
|
|
81
|
+
field_interface: "BoxWidget",
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
key: "slider_dot",
|
|
85
|
+
label: "Slider Dot",
|
|
86
|
+
field_interface: "BoxWidget",
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
key: "slides",
|
|
90
|
+
label: "Slides",
|
|
91
|
+
field_interface: "BoxWidget",
|
|
92
|
+
kind: "group",
|
|
93
|
+
fields: [
|
|
94
|
+
{
|
|
95
|
+
key: "wrapper",
|
|
96
|
+
label: "Slide Wrapper",
|
|
97
|
+
field_interface: "BoxWidget",
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
key: "headerWrapper",
|
|
101
|
+
label: "Header Wrapper",
|
|
102
|
+
field_interface: "BoxWidget",
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
key: "title",
|
|
106
|
+
label: "Title",
|
|
107
|
+
field_interface: "HeadingWidget",
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
key: "cta",
|
|
111
|
+
label: "CTA Button",
|
|
112
|
+
field_interface: "ButtonWidget",
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
key: "image",
|
|
116
|
+
label: "Image",
|
|
117
|
+
field_interface: "ImageWidget",
|
|
118
|
+
},
|
|
119
|
+
],
|
|
120
|
+
},
|
|
121
|
+
],
|
|
122
|
+
layouts: [
|
|
123
|
+
{
|
|
124
|
+
key: "default",
|
|
125
|
+
title: "Default",
|
|
126
|
+
styles: {
|
|
127
|
+
layout: {
|
|
128
|
+
"padding-left": "3xl",
|
|
129
|
+
"padding-right": "3xl",
|
|
130
|
+
"padding-top": "7xl",
|
|
131
|
+
"padding-bottom": "5xl",
|
|
132
|
+
mobile: {
|
|
133
|
+
"padding-top": "none",
|
|
134
|
+
"padding-left": "none",
|
|
135
|
+
"padding-right": "none",
|
|
136
|
+
"padding-bottom": "none",
|
|
137
|
+
},
|
|
138
|
+
},
|
|
139
|
+
container: {
|
|
140
|
+
position: "relative",
|
|
141
|
+
"max-width": "72rem",
|
|
142
|
+
"margin-left": "auto",
|
|
143
|
+
"margin-right": "auto",
|
|
144
|
+
},
|
|
145
|
+
slider_dots: {
|
|
146
|
+
position: "absolute",
|
|
147
|
+
bottom: "30px",
|
|
148
|
+
left: "50%",
|
|
149
|
+
transform: "translateX(-50%)",
|
|
150
|
+
display: "flex",
|
|
151
|
+
"column-gap": "2xs",
|
|
152
|
+
"align-items": "center",
|
|
153
|
+
"z-index": "20",
|
|
154
|
+
"padding-top": "4xs",
|
|
155
|
+
"padding-right": "4xs",
|
|
156
|
+
"padding-bottom": "4xs",
|
|
157
|
+
"padding-left": "4xs",
|
|
158
|
+
"background-color": "text-2",
|
|
159
|
+
"border-radius": "3xl",
|
|
160
|
+
tablet: {
|
|
161
|
+
bottom: "20px",
|
|
162
|
+
},
|
|
163
|
+
mobile: {
|
|
164
|
+
bottom: "10px",
|
|
165
|
+
},
|
|
166
|
+
},
|
|
167
|
+
slider_dot: {
|
|
168
|
+
width: "8px",
|
|
169
|
+
height: "8px",
|
|
170
|
+
"border-radius": "50%",
|
|
171
|
+
"background-color": "var(--color-brand-secondary)",
|
|
172
|
+
},
|
|
173
|
+
slides_levoGroup: {
|
|
174
|
+
width: "100%",
|
|
175
|
+
height: "100%",
|
|
176
|
+
},
|
|
177
|
+
slides: [
|
|
178
|
+
{
|
|
179
|
+
headerWrapper: {
|
|
180
|
+
display: "flex",
|
|
181
|
+
"align-items": "end",
|
|
182
|
+
"justify-content": "space-between",
|
|
183
|
+
mobile: {
|
|
184
|
+
"flex-direction": "column",
|
|
185
|
+
"align-items": "center",
|
|
186
|
+
"justify-content": "center",
|
|
187
|
+
"padding-left": "6xs",
|
|
188
|
+
"padding-top": "6xs",
|
|
189
|
+
"padding-right": "6xs",
|
|
190
|
+
"row-gap": "4xs",
|
|
191
|
+
},
|
|
192
|
+
tablet: {
|
|
193
|
+
"flex-direction": "column",
|
|
194
|
+
"align-items": "center",
|
|
195
|
+
"row-gap": "sm",
|
|
196
|
+
},
|
|
197
|
+
},
|
|
198
|
+
title: {
|
|
199
|
+
"font-size": "4xl",
|
|
200
|
+
"font-weight": "600",
|
|
201
|
+
"line-height": "1.2",
|
|
202
|
+
"max-width": "42rem",
|
|
203
|
+
mobile: {
|
|
204
|
+
"font-size": "3xl",
|
|
205
|
+
},
|
|
206
|
+
tablet: {
|
|
207
|
+
"text-align": "center",
|
|
208
|
+
"font-size": "3xl",
|
|
209
|
+
},
|
|
210
|
+
},
|
|
211
|
+
image: {
|
|
212
|
+
width: "100%",
|
|
213
|
+
height: "100%",
|
|
214
|
+
"object-fit": "cover",
|
|
215
|
+
"object-position": "center",
|
|
216
|
+
},
|
|
217
|
+
wrapper: {
|
|
218
|
+
display: "flex",
|
|
219
|
+
"flex-direction": "column",
|
|
220
|
+
"row-gap": "base",
|
|
221
|
+
},
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
headerWrapper: {
|
|
225
|
+
display: "flex",
|
|
226
|
+
"align-items": "end",
|
|
227
|
+
"justify-content": "space-between",
|
|
228
|
+
mobile: {
|
|
229
|
+
"flex-direction": "column",
|
|
230
|
+
"align-items": "center",
|
|
231
|
+
"justify-content": "center",
|
|
232
|
+
},
|
|
233
|
+
},
|
|
234
|
+
title: {
|
|
235
|
+
"font-size": "4xl",
|
|
236
|
+
"font-weight": "600",
|
|
237
|
+
"line-height": "1.2",
|
|
238
|
+
"max-width": "42rem",
|
|
239
|
+
mobile: {
|
|
240
|
+
"font-size": "3xl",
|
|
241
|
+
},
|
|
242
|
+
},
|
|
243
|
+
image: {
|
|
244
|
+
width: "100%",
|
|
245
|
+
height: "100%",
|
|
246
|
+
"object-fit": "cover",
|
|
247
|
+
"object-position": "center",
|
|
248
|
+
},
|
|
249
|
+
wrapper: {
|
|
250
|
+
display: "flex",
|
|
251
|
+
"flex-direction": "column",
|
|
252
|
+
"row-gap": "base",
|
|
253
|
+
},
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
headerWrapper: {
|
|
257
|
+
display: "flex",
|
|
258
|
+
"align-items": "end",
|
|
259
|
+
"justify-content": "space-between",
|
|
260
|
+
mobile: {
|
|
261
|
+
"flex-direction": "column",
|
|
262
|
+
"align-items": "center",
|
|
263
|
+
"justify-content": "center",
|
|
264
|
+
},
|
|
265
|
+
},
|
|
266
|
+
title: {
|
|
267
|
+
"font-size": "4xl",
|
|
268
|
+
"font-weight": "600",
|
|
269
|
+
"line-height": "1.2",
|
|
270
|
+
"max-width": "42rem",
|
|
271
|
+
mobile: {
|
|
272
|
+
"font-size": "3xl",
|
|
273
|
+
},
|
|
274
|
+
},
|
|
275
|
+
image: {
|
|
276
|
+
width: "100%",
|
|
277
|
+
height: "100%",
|
|
278
|
+
"object-fit": "cover",
|
|
279
|
+
"object-position": "center",
|
|
280
|
+
},
|
|
281
|
+
wrapper: {
|
|
282
|
+
display: "flex",
|
|
283
|
+
"flex-direction": "column",
|
|
284
|
+
"row-gap": "base",
|
|
285
|
+
},
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
headerWrapper: {
|
|
289
|
+
display: "flex",
|
|
290
|
+
"align-items": "end",
|
|
291
|
+
"justify-content": "space-between",
|
|
292
|
+
mobile: {
|
|
293
|
+
"flex-direction": "column",
|
|
294
|
+
"align-items": "center",
|
|
295
|
+
"justify-content": "center",
|
|
296
|
+
},
|
|
297
|
+
},
|
|
298
|
+
title: {
|
|
299
|
+
"font-size": "4xl",
|
|
300
|
+
"font-weight": "600",
|
|
301
|
+
"line-height": "1.2",
|
|
302
|
+
"max-width": "42rem",
|
|
303
|
+
mobile: {
|
|
304
|
+
"font-size": "3xl",
|
|
305
|
+
},
|
|
306
|
+
},
|
|
307
|
+
image: {
|
|
308
|
+
width: "100%",
|
|
309
|
+
height: "100%",
|
|
310
|
+
"object-fit": "cover",
|
|
311
|
+
"object-position": "center",
|
|
312
|
+
},
|
|
313
|
+
wrapper: {
|
|
314
|
+
display: "flex",
|
|
315
|
+
"flex-direction": "column",
|
|
316
|
+
"row-gap": "base",
|
|
317
|
+
},
|
|
318
|
+
},
|
|
319
|
+
],
|
|
320
|
+
},
|
|
321
|
+
content: DEFAULT_CONTENT,
|
|
322
|
+
config: {},
|
|
323
|
+
},
|
|
324
|
+
],
|
|
325
|
+
};
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import type { CarouselApi } from "@levo-so/studio";
|
|
2
|
+
import {
|
|
3
|
+
type ILevoBlockBaseProps,
|
|
4
|
+
Button,
|
|
5
|
+
Heading,
|
|
6
|
+
Image,
|
|
7
|
+
Container,
|
|
8
|
+
Section,
|
|
9
|
+
Box,
|
|
10
|
+
Carousel,
|
|
11
|
+
CarouselContent,
|
|
12
|
+
CarouselItem,
|
|
13
|
+
} from "@levo-so/studio";
|
|
14
|
+
import { useEffect, useState } from "react";
|
|
15
|
+
|
|
16
|
+
import type { IHero4Content } from "./hero-4.schema";
|
|
17
|
+
|
|
18
|
+
const Hero4: React.FC<ILevoBlockBaseProps<IHero4Content>> = ({ content }) => {
|
|
19
|
+
const [api, setApi] = useState<CarouselApi>();
|
|
20
|
+
const [current, setCurrent] = useState(0);
|
|
21
|
+
const [count, setCount] = useState(0);
|
|
22
|
+
|
|
23
|
+
useEffect(() => {
|
|
24
|
+
if (!api) {
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
setCount(api.scrollSnapList().length);
|
|
29
|
+
setCurrent(api.selectedScrollSnap() + 1);
|
|
30
|
+
|
|
31
|
+
api.on("select", () => {
|
|
32
|
+
setCurrent(api.selectedScrollSnap() + 1);
|
|
33
|
+
});
|
|
34
|
+
}, [api]);
|
|
35
|
+
|
|
36
|
+
return (
|
|
37
|
+
<Section elementKey="layout">
|
|
38
|
+
<Container elementKey="container">
|
|
39
|
+
<Carousel elementKey="slides_levoGroup" setApi={setApi} data-levo_group>
|
|
40
|
+
<CarouselContent className="h-full">
|
|
41
|
+
{(content?.slides ?? [])?.map((_, index) => (
|
|
42
|
+
<CarouselItem key={index} className="relative h-full w-full">
|
|
43
|
+
<Box
|
|
44
|
+
elementKey={`slides.${index}.wrapper`}
|
|
45
|
+
data-levo_group_item
|
|
46
|
+
>
|
|
47
|
+
<Box elementKey={`slides.${index}.headerWrapper`}>
|
|
48
|
+
<Heading elementKey={`slides.${index}.title`} />
|
|
49
|
+
<Button elementKey={`slides.${index}.cta`} />
|
|
50
|
+
</Box>
|
|
51
|
+
<Image
|
|
52
|
+
elementKey={`slides.${index}.image`}
|
|
53
|
+
alt="hero image"
|
|
54
|
+
/>
|
|
55
|
+
</Box>
|
|
56
|
+
</CarouselItem>
|
|
57
|
+
))}
|
|
58
|
+
</CarouselContent>
|
|
59
|
+
</Carousel>
|
|
60
|
+
{count > 0 && (
|
|
61
|
+
<Box elementKey="slider_dots">
|
|
62
|
+
{Array(count)
|
|
63
|
+
?.fill(0)
|
|
64
|
+
?.map((_, index) => (
|
|
65
|
+
<Box
|
|
66
|
+
key={index}
|
|
67
|
+
elementKey="slider_dot"
|
|
68
|
+
style={
|
|
69
|
+
index + 1 === current
|
|
70
|
+
? {
|
|
71
|
+
backgroundColor: "var(--color-brand)",
|
|
72
|
+
}
|
|
73
|
+
: {}
|
|
74
|
+
}
|
|
75
|
+
onClick={() => {
|
|
76
|
+
if (api) {
|
|
77
|
+
api?.scrollTo(index);
|
|
78
|
+
}
|
|
79
|
+
}}
|
|
80
|
+
/>
|
|
81
|
+
))}
|
|
82
|
+
</Box>
|
|
83
|
+
)}
|
|
84
|
+
</Container>
|
|
85
|
+
</Section>
|
|
86
|
+
);
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
export default Hero4;
|
|
@@ -0,0 +1,192 @@
|
|
|
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
|
+
headerWrapper: null,
|
|
27
|
+
title: "Your Trusted Partner in Financial Excellence",
|
|
28
|
+
cta: "Get Started",
|
|
29
|
+
slider_dots: null,
|
|
30
|
+
slider_dot: null,
|
|
31
|
+
images: [
|
|
32
|
+
{
|
|
33
|
+
image: DEFAULT_IMAGE,
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
image: DEFAULT_IMAGE,
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
image: DEFAULT_IMAGE,
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
image: DEFAULT_IMAGE,
|
|
43
|
+
},
|
|
44
|
+
],
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
export type IHero5Content = typeof DEFAULT_CONTENT;
|
|
48
|
+
|
|
49
|
+
export const Hero5: IBlock = {
|
|
50
|
+
category_id: "hero",
|
|
51
|
+
title: "Hero 5",
|
|
52
|
+
key: "hero-5",
|
|
53
|
+
version: "v1",
|
|
54
|
+
content_schema: [
|
|
55
|
+
{
|
|
56
|
+
key: "layout",
|
|
57
|
+
label: "Layout",
|
|
58
|
+
field_interface: "LayoutWidget",
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
key: "container",
|
|
62
|
+
label: "Container",
|
|
63
|
+
field_interface: "ContainerWidget",
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
key: "headerWrapper",
|
|
67
|
+
label: "Header Wrapper",
|
|
68
|
+
field_interface: "BoxWidget",
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
key: "title",
|
|
72
|
+
label: "Title",
|
|
73
|
+
field_interface: "HeadingWidget",
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
key: "cta",
|
|
77
|
+
label: "CTA Button",
|
|
78
|
+
field_interface: "ButtonWidget",
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
key: "slider_dots",
|
|
82
|
+
label: "Slider Dots",
|
|
83
|
+
field_interface: "BoxWidget",
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
key: "slider_dot",
|
|
87
|
+
label: "Slider Dot",
|
|
88
|
+
field_interface: "BoxWidget",
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
key: "images",
|
|
92
|
+
label: "Images",
|
|
93
|
+
field_interface: "CarouselWidget",
|
|
94
|
+
kind: "group",
|
|
95
|
+
fields: [
|
|
96
|
+
{
|
|
97
|
+
key: "image",
|
|
98
|
+
label: "Image",
|
|
99
|
+
field_interface: "MediaWidget",
|
|
100
|
+
},
|
|
101
|
+
],
|
|
102
|
+
},
|
|
103
|
+
],
|
|
104
|
+
layouts: [
|
|
105
|
+
{
|
|
106
|
+
key: "default",
|
|
107
|
+
title: "Default",
|
|
108
|
+
styles: {
|
|
109
|
+
container: {
|
|
110
|
+
position: "relative",
|
|
111
|
+
"max-width": "1280px",
|
|
112
|
+
"margin-left": "auto",
|
|
113
|
+
"margin-right": "auto",
|
|
114
|
+
"padding-top": "10xl",
|
|
115
|
+
"padding-bottom": "10xl",
|
|
116
|
+
tablet: {
|
|
117
|
+
"padding-bottom": "5xl",
|
|
118
|
+
"padding-left": "5xl",
|
|
119
|
+
"padding-right": "5xl",
|
|
120
|
+
"padding-top": "5xl",
|
|
121
|
+
},
|
|
122
|
+
mobile: {
|
|
123
|
+
"padding-bottom": "2xl",
|
|
124
|
+
"padding-left": "2xl",
|
|
125
|
+
"padding-right": "2xl",
|
|
126
|
+
"padding-top": "2xl",
|
|
127
|
+
},
|
|
128
|
+
},
|
|
129
|
+
slider_dots: {
|
|
130
|
+
position: "absolute",
|
|
131
|
+
bottom: "130px",
|
|
132
|
+
left: "50%",
|
|
133
|
+
transform: "translateX(-50%)",
|
|
134
|
+
display: "flex",
|
|
135
|
+
"column-gap": "2xs",
|
|
136
|
+
"align-items": "center",
|
|
137
|
+
"z-index": "20",
|
|
138
|
+
"padding-top": "4xs",
|
|
139
|
+
"padding-right": "4xs",
|
|
140
|
+
"padding-bottom": "4xs",
|
|
141
|
+
"padding-left": "4xs",
|
|
142
|
+
"background-color": "text-2",
|
|
143
|
+
"border-radius": "3xl",
|
|
144
|
+
tablet: {
|
|
145
|
+
bottom: "70px",
|
|
146
|
+
},
|
|
147
|
+
mobile: {
|
|
148
|
+
bottom: "50px",
|
|
149
|
+
},
|
|
150
|
+
},
|
|
151
|
+
slider_dot: {
|
|
152
|
+
width: "8px",
|
|
153
|
+
height: "8px",
|
|
154
|
+
"border-radius": "50%",
|
|
155
|
+
"background-color": "var(--color-brand-secondary)",
|
|
156
|
+
},
|
|
157
|
+
slides_levoGroup: {
|
|
158
|
+
width: "100%",
|
|
159
|
+
height: "100%",
|
|
160
|
+
},
|
|
161
|
+
headerWrapper: {
|
|
162
|
+
display: "flex",
|
|
163
|
+
"align-items": "center",
|
|
164
|
+
"justify-content": "space-between",
|
|
165
|
+
"margin-bottom": "7xl",
|
|
166
|
+
tablet: {
|
|
167
|
+
"flex-direction": "column",
|
|
168
|
+
"row-gap": "base",
|
|
169
|
+
"margin-bottom": "3xl",
|
|
170
|
+
},
|
|
171
|
+
},
|
|
172
|
+
title: {
|
|
173
|
+
"font-size": "4xl",
|
|
174
|
+
tablet: {
|
|
175
|
+
"font-size": "3xl",
|
|
176
|
+
"text-align": "center",
|
|
177
|
+
},
|
|
178
|
+
},
|
|
179
|
+
cta: {
|
|
180
|
+
tablet: {
|
|
181
|
+
filter: "none",
|
|
182
|
+
},
|
|
183
|
+
mobile: {
|
|
184
|
+
filter: "none",
|
|
185
|
+
},
|
|
186
|
+
},
|
|
187
|
+
},
|
|
188
|
+
content: DEFAULT_CONTENT,
|
|
189
|
+
config: {},
|
|
190
|
+
},
|
|
191
|
+
],
|
|
192
|
+
};
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import type { CarouselApi } from "@levo-so/studio";
|
|
2
|
+
import {
|
|
3
|
+
type ILevoBlockBaseProps,
|
|
4
|
+
Button,
|
|
5
|
+
Heading,
|
|
6
|
+
Image,
|
|
7
|
+
Container,
|
|
8
|
+
Section,
|
|
9
|
+
Box,
|
|
10
|
+
Carousel,
|
|
11
|
+
CarouselContent,
|
|
12
|
+
CarouselItem,
|
|
13
|
+
} from "@levo-so/studio";
|
|
14
|
+
import { useEffect, useState } from "react";
|
|
15
|
+
|
|
16
|
+
import type { IHero5Content } from "./hero-5.schema";
|
|
17
|
+
|
|
18
|
+
const Hero5: React.FC<ILevoBlockBaseProps<IHero5Content>> = ({ content }) => {
|
|
19
|
+
const [api, setApi] = useState<CarouselApi>();
|
|
20
|
+
const [current, setCurrent] = useState(0);
|
|
21
|
+
const [count, setCount] = useState(0);
|
|
22
|
+
|
|
23
|
+
useEffect(() => {
|
|
24
|
+
if (!api) {
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
setCount(api.scrollSnapList().length);
|
|
29
|
+
setCurrent(api.selectedScrollSnap() + 1);
|
|
30
|
+
|
|
31
|
+
api.on("select", () => {
|
|
32
|
+
setCurrent(api.selectedScrollSnap() + 1);
|
|
33
|
+
});
|
|
34
|
+
}, [api]);
|
|
35
|
+
|
|
36
|
+
return (
|
|
37
|
+
<Section elementKey="layout">
|
|
38
|
+
<Container elementKey="container">
|
|
39
|
+
<Box elementKey="headerWrapper">
|
|
40
|
+
<Heading elementKey="title" />
|
|
41
|
+
<Button elementKey="cta" />
|
|
42
|
+
</Box>
|
|
43
|
+
|
|
44
|
+
<Carousel elementKey="images_levoGroup" setApi={setApi} data-levo_group>
|
|
45
|
+
<CarouselContent className="h-full">
|
|
46
|
+
{(content?.images ?? [])?.map((_, index) => (
|
|
47
|
+
<CarouselItem key={index} className="relative h-full w-full">
|
|
48
|
+
<Image
|
|
49
|
+
elementKey={`images.${index}.image`}
|
|
50
|
+
alt={`hero image ${index + 1}`}
|
|
51
|
+
/>
|
|
52
|
+
</CarouselItem>
|
|
53
|
+
))}
|
|
54
|
+
</CarouselContent>
|
|
55
|
+
</Carousel>
|
|
56
|
+
|
|
57
|
+
{count > 0 && (
|
|
58
|
+
<Box elementKey="slider_dots">
|
|
59
|
+
{Array(count)
|
|
60
|
+
?.fill(0)
|
|
61
|
+
?.map((_, index) => (
|
|
62
|
+
<Box
|
|
63
|
+
key={index}
|
|
64
|
+
elementKey="slider_dot"
|
|
65
|
+
style={
|
|
66
|
+
index + 1 === current
|
|
67
|
+
? {
|
|
68
|
+
backgroundColor: "var(--color-brand)",
|
|
69
|
+
}
|
|
70
|
+
: {}
|
|
71
|
+
}
|
|
72
|
+
onClick={() => {
|
|
73
|
+
if (api) {
|
|
74
|
+
api?.scrollTo(index);
|
|
75
|
+
}
|
|
76
|
+
}}
|
|
77
|
+
/>
|
|
78
|
+
))}
|
|
79
|
+
</Box>
|
|
80
|
+
)}
|
|
81
|
+
</Container>
|
|
82
|
+
</Section>
|
|
83
|
+
);
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
export default Hero5;
|