Accordion
accordion - simple
<div class="sl-accordion sl-accordion--simple mt-8">
<div x-data="{ open: false }">
<div class="group" x-on:click="open = ! open">
<h4 class="group-hover:text-primary" :class="open ? 'text-primary' : ''"> […] </h4>
<i class="sl-icon--plus transition duration-500 group-hover:text-primary" :class="open ? 'text-primary rotate-45' : ''"></i>
</div>
<div x-show="open" class="pb-4 sl-customizable-content"> […] </div>
</div>
</div>
accordion - multiple
layout.titre
accordion.titre_accordion
accordion.contenu
accordion.titre_accordion
accordion.contenu
accordion.titre_accordion
accordion.contenu
<div class="sl-accordion sl-accordion--multiple mt-8">
<h5> […] </h5>
<div x-data="{ open: false }">
<div class="group "x-on:click="open = ! open">
<h6 class="group-hover:text-primary" :class="open ? 'text-primary dark:text-primary' : ''"> […] </h6>
<i class="sl-icon--plus transition duration-500 group-hover:text-primary" :class="open ? 'text-primary rotate-45' : ''"></i>
</div>
<div x-show="open" class="pb-4 sl-customizable-content"> […] </div>
</div>
<div x-data="{ open: true }">
<div class="group "x-on:click="open = ! open">
<h6 class="group-hover:text-primary" :class="open ? 'text-primary dark:text-primary' : ''"> […] </h6>
<i class="sl-icon--plus transition duration-500 group-hover:text-primary" :class="open ? 'text-primary rotate-45' : ''"></i>
</div>
<div x-show="open" class="pb-4 sl-customizable-content"> […] </div>
</div>
<div x-data="{ open: false }">
<div class="group "x-on:click="open = ! open">
<h6 class="group-hover:text-primary" :class="open ? 'text-primary dark:text-primary' : ''"> […] </h6>
<i class="sl-icon--plus transition duration-500 group-hover:text-primary" :class="open ? 'text-primary rotate-45' : ''"></i>
</div>
<div x-show="open" class="pb-4 sl-customizable-content"> […] </div>
</div>
</div>
Card
title
card - image as background - text centered
title
card - image as background - text at the bottom
card - default
<div class="sl-card group">
<a href="" class="sl-prevent-link-behaviour sl-card--thumbnail sl-no-thumbnail">
<picture>
<img src="" alt="" class="sl-img-fit--cover"/>
</picture>
</a>
<a href="" class="sl-prevent-link-behaviour sl-card--content">
<div class="flex"><h5 class="uppercase">{{ discipline.name }}</h5> – <h5>{{ type.name }}</h5></div>
<h4>title</h4>
<p>subtitle</p>
<h5>author</h5>
</a>
</div>
card - booking
<div class="sl-card group">
<a href="" class="sl-prevent-link-behaviour sl-card--thumbnail sl-no-thumbnail">
<div class="relative">
<picture>
<img src="" alt="" class="sl-img-fit--cover"/>
</picture>
<button class="absolute inset-0 m-auto z-10"><i class="fa-solid fa-play"></i></button>
</div>
</a>
<div class="flex justify-between items-center">
<div class="flex"><h5 class="uppercase">discipline.name</h5> – <h5>type.name</h5></div>
<a href="">
<i class="fa-light fa-ticket booking text-2xl"></i>
</a>
</div>
<a href="" class="sl-prevent-link-behaviour sl-card--content">
<h4>title</h4>
<p>subtitle</p>
<h5>author</h5>
</a>
</div>
card - video
<div class="sl-card group">
<a href="" class="sl-prevent-link-behaviour sl-card--thumbnail sl-no-thumbnail">
<div class="relative">
<picture>
<img src="" alt="" class="sl-img-fit--cover"/>
</picture>
<button class="absolute inset-0 m-auto z-10"><i class="fa-solid fa-play"></i></button>
</div>
</a>
<a href="" class="sl-prevent-link-behaviour sl-card--content">
<div class="flex"><h5 class="uppercase">{{ discipline.name }}</h5> – <h5>{{ type.name }}</h5></div>
<h4>title</h4>
<p>subtitle</p>
<h5>author</h5>
</a>
</div>
card - audio
<div class="sl-card group">
<a href="" class="sl-prevent-link-behaviour sl-card--thumbnail sl-no-thumbnail">
<div class="relative">
<picture>
<img src="" alt="" class="sl-img-fit--cover"/>
</picture>
<button class="absolute inset-0 m-auto z-10"><i class="fa-solid fa-microphone"></i></button>
</div>
</a>
<a href="" class="sl-prevent-link-behaviour sl-card--content">
<div class="flex"><h5 class="uppercase">{{ discipline.name }}</h5> – <h5>{{ type.name }}</h5></div>
<h4>title</h4>
<p>subtitle</p>
<h5>author</h5>
</a>
</div>
card - festival
<div class="sl-card group">
<a href="" class="sl-prevent-link-behaviour sl-card--thumbnail sl-no-thumbnail">
<div class="relative">
<picture>
<img src="" alt="" class="sl-img-fit--cover"/>
</picture>
<div class="absolute top-0 bottom-0 right-0 w-[36px] mix-blend-multiply" style="background:background:{{ festival.color }}"></div>
<p class="absolute top-3 right-0.5 sl-festival-rl rotate-180">{{ festival.name }}</p>
</div>
</a>
<a href="" class="sl-prevent-link-behaviour sl-card--content">
<div class="flex"><h5 class="uppercase">{{ discipline.name }}</h5> – <h5>{{ type.name }}</h5></div>
<h4 style="--custom_color: {{ function('getFestivalsTempsForts',item.ID)|first.color }}>title</h4>
<p>subtitle</p>
<h5>author</h5>
</a>
</div>
card - no thumbnail
<div class="sl-card group">
<a href="" class="sl-prevent-link-behaviour sl-card--thumbnail sl-no-thumbnail">
<div class="relative">
<picture>
<img src="" alt="" class="sl-img-fit--cover"/>
</picture>
</div>
</a>
<a href="" class="sl-prevent-link-behaviour sl-card--content">
<div class="flex"><h5 class="uppercase">discipline.name</h5> – <h5>type.name</h5></div>
<h4>title</h4>
<p>subtitle</p>
<h5>author</h5>
</a>
</div>
card - image as background - text centered
<!--
<div class="sl-card group">
<a href="" class="relative sl-card--thumbnail">
<picture>
<img src=" […] " alt="" class="sl-img-fit--cover"/>
</picture>
<div class="absolute top-0 left-0 w-full h-full text-center flex flex-col justify-center items-center">
<i class=" […] "></i>
<h4> […] </h4>
</div>
</a>
</div>
card - image as background - text at the bottom
<div class="sl-card group">
<a href="" class="relative sl-card--thumbnail">
<picture>
<img src=" […] " alt="" class="sl-img-fit--cover"/>
</picture>
<div class="absolute bottom-4 left-4 w-full flex items-baseline">
<i class=" […] "></i>
<h4> […] </h4>
</div>
</a>
</div>