x
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<section class="panel" data-bgc="primary-light" data-items-per-view="3" data-mobile-items-per-view="1" data-controller="carousel-swiper" data-pagination="true" data-autoscroll="false" data-panel-style="carousel"> <div class="container swiper-container"> <div class="panel__header"> <h2 class="panel__title" data-align="left">What's On</h2> <p class="panel__subtitle" data-align="left">Upcoming activities and events</p> </div> <div class="panel__body" data-align="left"> <p>Something every day.</p> </div> <div class='panel__patterns swiper-wrapper'> <div class='swiper-slide'> <div class="text-card" data-layout-style="plain-text"> <h3 class="text-card__title">Swimming Lessons</h3> <div class="text-card__body"> <p>Learn to swim with qualified instructors in a friendly environment.</p> </div> </div> </div> <div class='swiper-slide'> <div class="text-card" data-layout-style="plain-text"> <h3 class="text-card__title">Gym & Fitness</h3> <div class="text-card__body"> <p>State-of-the-art equipment and expert-led classes for all levels.</p> </div> </div> </div> <div class='swiper-slide'> <div class="text-card" data-layout-style="plain-text"> <h3 class="text-card__title">Tennis Courts</h3> <div class="text-card__body"> <p>Book a court and enjoy a game with friends or join a league.</p> </div> </div> </div> <div class='swiper-slide'> <div class="text-card" data-layout-style="plain-text"> <h3 class="text-card__title">Community Events</h3> <div class="text-card__body"> <p>Bringing people together through sport, culture and wellbeing.</p> </div> </div> </div> </div> <div class="panel__button" data-align="right"> <a class="button primary" href="/lookbook/events"> <div class="button-content"> See All Events </div> </a> </div> </div></section>1
2
3
4
5
6
panel = build_carousel_panel( title: "What's On", subtitle: "Upcoming activities and events", body: "<p>Something every day.</p>", button: build_button(title: "See All Events", href: "/events"), patterns: build_cards(count: 4, type: "text_card"), **editor_alignments(title_alignment:, subtitle_alignment:, text_alignment:, button_alignment:))render GllComponentLibrary::Panels::CarouselComponent.new(panel:)Editor alignment per element, as set in Contentful (BOU-2939). "none" is no choice.
| Param | Description | Input |
|---|---|---|
|
— |
|
|
|
— |
|
|
|
— |
|
|
|
— |
|
No Figma design linked. Add
@figma_node_id <id> (or
@figma <url>) to the preview class or scenario docstring.