Skip to content

Commit 69d09cc

Browse files
committed
feat: logo carousel
1 parent 2073fe6 commit 69d09cc

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<!-- cms_theme/templtes/carousel/logo_carousel.html -->
2+
{% load cms_tags frontend sekizai_tags %}
3+
4+
5+
<section class="logo-section {{ instance.get_classes }}" {{ instance.get_attributes }}>
6+
<div class="container">
7+
<div class="row py-2">
8+
<div class="col-12 text-center">
9+
{{ instance.title }}
10+
</div>
11+
</div>
12+
13+
<div class="carousel-container">
14+
<div class="swiper logoSwiper-{{ instance.id }}" data-instance-id={{ instance.id }} data-loop="{% if instance.loop %}true{% else %}false{% endif %}" data-space-between-slides={{ instance.space_between_slides }} data-autoplay="{% if instance.autoplay %}true{% else %}false{% endif %}" data-delay={{ instance.delay }}>
15+
<div class="swiper-wrapper">
16+
<!-- here is where you render the items -->
17+
{% childplugins %}{% endchildplugins %}
18+
</div>
19+
</div>
20+
21+
<button class="nav-btn btn-prev btn-prev-{{ instance.id }} bg-{{ instance.background_context }}" id="prevBtn" aria-label="Previous slide">
22+
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
23+
<path d="m15 18-6-6 6-6" stroke-linecap="round" stroke-linejoin="round"/>
24+
</svg>
25+
</button>
26+
<button class="nav-btn btn-next btn-next-{{ instance.id }} bg-{{ instance.background_context }}" id="nextBtn" aria-label="Next slide">
27+
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
28+
<path d="m9 18 6-6-6-6" stroke-linecap="round" stroke-linejoin="round"/>
29+
</svg>
30+
</button>
31+
</div>
32+
</div>
33+
</section>

0 commit comments

Comments
 (0)