Slider
Using the slider item component
By using the slider item component you can create a slider with ease
<div class="c-slider c-slider--16-9 c-slider__navigation--hover c-slider--shadow c-slider--has-stepper" data-step="0" js-slider="0" js-slider-index="0" data-slider-loop="1" data-slider-gap="2" id="67b77f560b0cb4.48279177" data-uid="67b77f560b0e5">
<div class="splide__arrows c-slider__arrows">
<button class="c-button splide__arrow splide__arrow--prev c-button__filled c-button__filled--primary c-button--md c-button--icon-only" target="_top" aria-label="keyboard_arrow_left" type="button" data-uid="67b77f560b12a">
<span class="c-button__label"> <span class="c-button__loader"></span>
<span class="c-button__label-icon ">
<!-- icon.blade.php -->
<span class="c-icon c-icon--keyboard-arrow-left c-icon--material c-icon--material-keyboard_arrow_left material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined c-icon--size-md" aria-hidden="false" material-symbol="keyboard_arrow_left" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="67b77f560b168">
</span>
</span>
</span> </button> <button class="c-button splide__arrow splide__arrow--next c-button__filled c-button__filled--primary c-button--md c-button--icon-only" target="_top" aria-label="keyboard_arrow_right" type="button" data-uid="67b77f560b1ae">
<span class="c-button__label"> <span class="c-button__loader"></span>
<span class="c-button__label-icon ">
<!-- icon.blade.php -->
<span class="c-icon c-icon--keyboard-arrow-right c-icon--material c-icon--material-keyboard_arrow_right material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined c-icon--size-md" aria-hidden="false" material-symbol="keyboard_arrow_right" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="67b77f560b1e7">
</span>
</span>
</span> </button> </div>
<div class="c-slider__container splide__track">
<div class="c-slider__inner splide__list" js-slider-inner>
<!-- slider__item.blade.php -->
<section class="c-slider__item splide__slide u-color__bg--darkest c-slider__item--layout-center c-slider__item--overlay-none c-slider__item--hero" data-uid="67b77f560a66d">
<!-- image.blade.php -->
<figure class="c-image c-slider__item__image c-image--cover" data-a11y-error="Alt text is missing" data-uid="67b77f560a714">
<img
loading="lazy"
class="c-image__image"
src="https://picsum.photos/1080/720"
alt=""
/> </figure>
<div class="c-slider__item__container">
<!-- typography.blade.php (promoted) (hasSeenH1) original: h2 -->
<h1 class="c-typography c-slider__item__heading c-typography__variant--h2" data-uid="67b77f560a7e8">
Base Layout
</h1>
<!-- typography.blade.php (hasSeenH1) original: p -->
<p class="c-typography c-slider__item__body c-typography__variant--body" data-uid="67b77f560a828">
Here I could put some lorem ipsum text but I am too lazy to Google for one so I wrote all this instead. Woo!
</p>
<a class="c-button c-slider__item__cta c-button__filled c-button__filled--default c-button--md" target="_top" type="button" href="https://www.helsingborg.se" aria-label="Read more" data-uid="67b77f560a88d">
<span class="c-button__label"> <span class="c-button__loader"></span>
<span class="c-button__label-icon ">
<!-- icon.blade.php -->
<span class="c-icon c-icon--arrow-forward c-icon--material c-icon--material-arrow_forward material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined c-icon--size-md" aria-hidden="false" material-symbol="arrow_forward" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="67b77f560a9a7">
</span>
</span>
<span class="c-button__label-text ">
Read more
</span>
</span> </a>
</div>
</section>
<!-- slider__item.blade.php -->
<section class="c-slider__item splide__slide u-color__bg--darkest c-slider__item--layout-bottom c-slider__item--overlay-none" data-uid="67b77f560aa0b">
<!-- image.blade.php -->
<figure class="c-image c-slider__item__image c-image--cover" data-a11y-error="Alt text is missing" data-uid="67b77f560aa5d">
<img
loading="lazy"
class="c-image__image"
src="https://picsum.photos/1080/720"
alt=""
/> </figure>
<div class="c-slider__item__container">
<!-- typography.blade.php (hasSeenH1) original: h2 -->
<h2 class="c-typography c-slider__item__heading c-typography__variant--h2" data-uid="67b77f560aad3">
Base Layout
</h2>
<!-- typography.blade.php (hasSeenH1) original: p -->
<p class="c-typography c-slider__item__body c-typography__variant--body" data-uid="67b77f560ab07">
Here I could put some lorem ipsum text but I am too lazy to Google for one so I wrote all this instead. Woo!
</p>
<a class="c-button c-slider__item__cta c-button__filled c-button__filled--default c-button--md" target="_top" type="button" href="https://www.helsingborg.se" aria-label="Read more" data-uid="67b77f560ab43">
<span class="c-button__label"> <span class="c-button__loader"></span>
<span class="c-button__label-icon ">
<!-- icon.blade.php -->
<span class="c-icon c-icon--arrow-forward c-icon--material c-icon--material-arrow_forward material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined c-icon--size-md" aria-hidden="false" material-symbol="arrow_forward" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="67b77f560ab8c">
</span>
</span>
<span class="c-button__label-text ">
Read more
</span>
</span> </a>
</div>
</section>
<!-- slider__item.blade.php -->
<section class="c-slider__item splide__slide u-color__bg--transparent c-slider__item--layout-center c-slider__item--overlay-light" data-uid="67b77f560abdc">
<!-- image.blade.php -->
<figure class="c-image c-slider__item__image c-image--cover" data-a11y-error="Alt text is missing" data-uid="67b77f560ac23">
<img
loading="lazy"
class="c-image__image"
src="https://picsum.photos/1080/720"
alt=""
/> </figure>
<div class="c-slider__item__container">
<!-- typography.blade.php (hasSeenH1) original: h2 -->
<h2 class="c-typography c-slider__item__heading c-typography__variant--h2" data-uid="67b77f560ac90">
Base Layout
</h2>
<!-- typography.blade.php (hasSeenH1) original: p -->
<p class="c-typography c-slider__item__body c-typography__variant--body" data-uid="67b77f560acc2">
Here I could put some lorem ipsum text but I am too lazy to Google for one so I wrote all this instead. Woo!
</p>
</div>
</section>
<!-- slider__item.blade.php -->
<section class="c-slider__item splide__slide u-color__bg--lightest c-slider__item--layout-bottom c-slider__item--overlay-none" data-uid="67b77f560acfe">
<!-- video.blade.php -->
<video class="c-video c-slider__item__background--video" width="600" height="300" muted autoplay loop="1" data-uid="67b77f560ad78">
<source class="c-video__source" src="http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" type="video/mp4">
<br />
<b>Warning</b>: The parameter <b>"isWarning"</b> is not recognized in the component <b>"notice"</b> in <b>/var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Register.php</b> on line <b>244</b><br />
<!-- notice.blade.php -->
<div class="c-notice c-notice--info" id="67b77f560ae0e" data-uid="67b77f560ae19" aria-labelledby="notice__text__67b77f560ae0e">
<!-- notice__ico -->
<!-- notice__title -->
<!-- notice__text -->
<span id="notice__text__67b77f560ae0e" for="" class="c-notice__message">
This component is not supported by your browser.
</span>
</div>
</video>
<!-- Play/pause button -->
<button class="c-button c-slider__item__background--video__play__btn c-button__filled c-button__filled--secondary c-button--md c-button--icon-only" target="_top" js-video-control="" aria-label="play_arrow" type="button" data-uid="67b77f560ae69">
<span class="c-button__label"> <span class="c-button__loader"></span>
<span class="c-button__label-icon ">
<!-- icon.blade.php -->
<span class="c-icon c-icon--play-arrow c-icon--material c-icon--material-play_arrow material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined c-icon--size-md" aria-hidden="false" material-symbol="play_arrow" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="67b77f560aea9">
</span>
</span>
</span> </button> <!-- image.blade.php -->
<figure class="c-image c-slider__item__image c-image--cover" data-a11y-error="Alt text is missing" data-uid="67b77f560af0b">
<img
loading="lazy"
class="c-image__image"
src="https://picsum.photos/1080/720"
alt=""
/> </figure>
<div class="c-slider__item__container">
<!-- typography.blade.php (hasSeenH1) original: h2 -->
<h2 class="c-typography c-slider__item__heading c-typography__variant--h2" data-uid="67b77f560af93">
Base Layout
</h2>
<!-- typography.blade.php (hasSeenH1) original: p -->
<p class="c-typography c-slider__item__body c-typography__variant--body" data-uid="67b77f560afc2">
Here I could put some lorem ipsum text but I am too lazy to Google for one so I wrote all this instead. Woo!
</p>
</div>
</section>
<!-- slider__item.blade.php -->
<section class="c-slider__item splide__slide u-color__bg--darkest c-slider__item--layout-center c-slider__item--overlay-none" data-uid="67b77f560affd">
<div class="c-slider__item__container">
<!-- typography.blade.php (hasSeenH1) original: h2 -->
<h2 class="c-typography c-slider__item__heading c-typography__variant--h2" data-uid="67b77f560b02e">
Base Layout
</h2>
<!-- typography.blade.php (hasSeenH1) original: p -->
<p class="c-typography c-slider__item__body c-typography__variant--body" data-uid="67b77f560b05a">
Here I could put some lorem ipsum text but I am too lazy to Google for one so I wrote all this instead. Woo!
</p>
</div>
</section>
</div>
</div>
</div>
@slider([
'showStepper' => true,
'autoSlide' => false,
])
@slider__item([
'title' => 'Base Layout',
'text' => 'Here I could put some lorem ipsum text but I am too lazy to Google for one so I wrote all this instead. Woo!',
'layout' => 'center',
'containerColor' => 'darkest',
'image' => 'https://picsum.photos/1080/720',
'heroStyle' => true,
'cta' => [
'title' => 'Read more',
'href' => 'https://www.helsingborg.se',
]
])
@endslider__item
@slider__item([
'title' => 'Base Layout',
'text' => 'Here I could put some lorem ipsum text but I am too lazy to Google for one so I wrote all this instead. Woo!',
'layout' => 'bottom',
'containerColor' => 'darkest',
'image' => 'https://picsum.photos/1080/720',
'cta' => [
'title' => 'Read more',
'href' => 'https://www.helsingborg.se',
]
])
@endslider__item
@slider__item([
'title' => 'Base Layout',
'text' => 'Here I could put some lorem ipsum text but I am too lazy to Google for one so I wrote all this instead. Woo!',
'layout' => 'center',
'containerColor' => 'transparent',
'image' => 'https://picsum.photos/1080/720',
'overlay' => 'light',
])
@endslider__item
@slider__item([
'title' => 'Base Layout',
'text' => 'Here I could put some lorem ipsum text but I am too lazy to Google for one so I wrote all this instead. Woo!',
'layout' => 'bottom',
'containerColor' => 'lightest',
'image' => 'https://picsum.photos/1080/720',
'video' => 'http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4',
])
@endslider__item
@slider__item([
'title' => 'Base Layout',
'text' => 'Here I could put some lorem ipsum text but I am too lazy to Google for one so I wrote all this instead. Woo!',
'containerColor' => 'darkest',
'layout' => 'center',
])
@endslider__item
@endslider
Single slide
<div class="c-slider c-slider--16-9 c-slider__navigation--hover c-slider--shadow c-slider--has-stepper" data-step="0" js-slider="0" js-slider-index="0" data-slider-loop="1" data-slider-gap="2" id="67b77f560b5623.52102177" data-uid="67b77f560b56e">
<div class="splide__arrows c-slider__arrows">
<button class="c-button splide__arrow splide__arrow--prev c-button__filled c-button__filled--primary c-button--md c-button--icon-only" target="_top" aria-label="keyboard_arrow_left" type="button" data-uid="67b77f560b5a9">
<span class="c-button__label"> <span class="c-button__loader"></span>
<span class="c-button__label-icon ">
<!-- icon.blade.php -->
<span class="c-icon c-icon--keyboard-arrow-left c-icon--material c-icon--material-keyboard_arrow_left material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined c-icon--size-md" aria-hidden="false" material-symbol="keyboard_arrow_left" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="67b77f560b5e5">
</span>
</span>
</span> </button> <button class="c-button splide__arrow splide__arrow--next c-button__filled c-button__filled--primary c-button--md c-button--icon-only" target="_top" aria-label="keyboard_arrow_right" type="button" data-uid="67b77f560b628">
<span class="c-button__label"> <span class="c-button__loader"></span>
<span class="c-button__label-icon ">
<!-- icon.blade.php -->
<span class="c-icon c-icon--keyboard-arrow-right c-icon--material c-icon--material-keyboard_arrow_right material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined c-icon--size-md" aria-hidden="false" material-symbol="keyboard_arrow_right" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="67b77f560b660">
</span>
</span>
</span> </button> </div>
<div class="c-slider__container splide__track">
<div class="c-slider__inner splide__list" js-slider-inner>
<!-- slider__item.blade.php -->
<section class="c-slider__item splide__slide u-color__bg--transparent c-slider__item--layout-center c-slider__item--overlay-none c-slider__item--hero" data-uid="67b77f560b441">
<!-- image.blade.php -->
<figure class="c-image c-slider__item__image c-image--cover" data-a11y-error="Alt text is missing" data-uid="67b77f560b48f">
<img
loading="lazy"
class="c-image__image"
src="https://picsum.photos/720/720"
alt=""
/> </figure>
<div class="c-slider__item__container">
<!-- typography.blade.php (hasSeenH1) original: h2 -->
<h2 class="c-typography c-slider__item__heading c-typography__variant--h2" data-uid="67b77f560b501">
Base Layout
</h2>
<!-- typography.blade.php (hasSeenH1) original: p -->
<p class="c-typography c-slider__item__body c-typography__variant--body" data-uid="67b77f560b534">
Here I could put some lorem ipsum text but I am too lazy to Google for one so I wrote all this instead. Woo!
</p>
</div>
</section>
</div>
</div>
</div>
@slider([
'showStepper' => true,
'autoSlide' => false,
])
@slider__item([
'title' => 'Base Layout',
'text' => 'Here I could put some lorem ipsum text but I am too lazy to Google for one so I wrote all this instead. Woo!',
'layout' => 'center',
'containerColor' => 'transparent',
'image' => 'https://picsum.photos/720/720',
'heroStyle' => true
])
@endslider__item
@endslider
Repeat slide
<div class="c-slider c-slider--16-9 c-slider__navigation--hover c-slider--shadow c-slider--has-stepper" data-step="0" js-slider="0" js-slider-index="0" data-slider-loop="1" data-slider-gap="2" id="67b77f560bfc63.77524088" data-uid="67b77f560bfd4">
<div class="splide__arrows c-slider__arrows">
<button class="c-button splide__arrow splide__arrow--prev c-button__filled c-button__filled--primary c-button--md c-button--icon-only" target="_top" aria-label="keyboard_arrow_left" type="button" data-uid="67b77f560c00e">
<span class="c-button__label"> <span class="c-button__loader"></span>
<span class="c-button__label-icon ">
<!-- icon.blade.php -->
<span class="c-icon c-icon--keyboard-arrow-left c-icon--material c-icon--material-keyboard_arrow_left material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined c-icon--size-md" aria-hidden="false" material-symbol="keyboard_arrow_left" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="67b77f560c04a">
</span>
</span>
</span> </button> <button class="c-button splide__arrow splide__arrow--next c-button__filled c-button__filled--primary c-button--md c-button--icon-only" target="_top" aria-label="keyboard_arrow_right" type="button" data-uid="67b77f560c08e">
<span class="c-button__label"> <span class="c-button__loader"></span>
<span class="c-button__label-icon ">
<!-- icon.blade.php -->
<span class="c-icon c-icon--keyboard-arrow-right c-icon--material c-icon--material-keyboard_arrow_right material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined c-icon--size-md" aria-hidden="false" material-symbol="keyboard_arrow_right" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="67b77f560c0c6">
</span>
</span>
</span> </button> </div>
<div class="c-slider__container splide__track">
<div class="c-slider__inner splide__list" js-slider-inner>
<!-- slider__item.blade.php -->
<section class="c-slider__item splide__slide u-color__bg--none c-slider__item--text-align-center c-slider__item--layout-center c-slider__item--overlay-dark c-slider__item--hero" data-uid="67b77f560b8e4">
<!-- image.blade.php -->
<figure class="c-image c-slider__item__image c-image--cover" data-a11y-error="Alt text is missing" data-uid="67b77f560b92e">
<img
loading="lazy"
class="c-image__image"
src="https://picsum.photos/1080/720"
alt=""
/> </figure>
<div class="c-slider__item__container">
<!-- typography.blade.php (hasSeenH1) original: h2 -->
<h2 class="c-typography c-slider__item__heading c-typography__variant--h2" data-uid="67b77f560b9a0">
Base Layout
</h2>
<!-- typography.blade.php (hasSeenH1) original: p -->
<p class="c-typography c-slider__item__body c-typography__variant--body" data-uid="67b77f560b9d2">
Here I could put some lorem ipsum text but I am too lazy to Google for one so I wrote all this instead. Woo!
</p>
</div>
</section>
<!-- slider__item.blade.php -->
<section class="c-slider__item splide__slide u-color__bg--theme c-slider__item--layout-bottom c-slider__item--overlay-light" data-uid="67b77f560ba0d">
<!-- image.blade.php -->
<figure class="c-image c-slider__item__image c-image--cover" data-a11y-error="Alt text is missing" data-uid="67b77f560ba51">
<img
loading="lazy"
class="c-image__image"
src="https://picsum.photos/1080/720"
alt=""
/> </figure>
<div class="c-slider__item__container">
<!-- typography.blade.php (hasSeenH1) original: h2 -->
<h2 class="c-typography c-slider__item__heading c-typography__variant--h2" data-uid="67b77f560babb">
Base Layout
</h2>
<!-- typography.blade.php (hasSeenH1) original: p -->
<p class="c-typography c-slider__item__body c-typography__variant--body" data-uid="67b77f560baeb">
Here I could put some lorem ipsum text but I am too lazy to Google for one so I wrote all this instead. Woo!
</p>
</div>
</section>
<!-- slider__item.blade.php -->
<section class="c-slider__item splide__slide u-color__bg--none c-slider__item--layout-center c-slider__item--overlay-light" data-uid="67b77f560bb30">
<!-- image.blade.php -->
<figure class="c-image c-slider__item__image c-image--cover" data-a11y-error="Alt text is missing" data-uid="67b77f560bb75">
<img
loading="lazy"
class="c-image__image"
src="https://picsum.photos/1080/720"
alt=""
/> </figure>
<div class="c-slider__item__container">
<!-- typography.blade.php (hasSeenH1) original: h2 -->
<h2 class="c-typography c-slider__item__heading c-typography__variant--h2" data-uid="67b77f560bbdf">
Base Layout
</h2>
<!-- typography.blade.php (hasSeenH1) original: p -->
<p class="c-typography c-slider__item__body c-typography__variant--body" data-uid="67b77f560bc0e">
Here I could put some lorem ipsum text but I am too lazy to Google for one so I wrote all this instead. Woo!
</p>
</div>
</section>
<!-- slider__item.blade.php -->
<section class="c-slider__item splide__slide u-color__bg--white c-slider__item--layout-bottom c-slider__item--overlay-none" data-uid="67b77f560bc49">
<!-- video.blade.php -->
<video class="c-video c-slider__item__background--video" width="600" height="300" muted autoplay loop="1" data-uid="67b77f560bc89">
<source class="c-video__source" src="http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" type="video/mp4">
<br />
<b>Warning</b>: The parameter <b>"isWarning"</b> is not recognized in the component <b>"notice"</b> in <b>/var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Register.php</b> on line <b>244</b><br />
<!-- notice.blade.php -->
<div class="c-notice c-notice--info" id="67b77f560bce7" data-uid="67b77f560bcf0" aria-labelledby="notice__text__67b77f560bce7">
<!-- notice__ico -->
<!-- notice__title -->
<!-- notice__text -->
<span id="notice__text__67b77f560bce7" for="" class="c-notice__message">
This component is not supported by your browser.
</span>
</div>
</video>
<!-- Play/pause button -->
<button class="c-button c-slider__item__background--video__play__btn c-button__filled c-button__filled--secondary c-button--md c-button--icon-only" target="_top" js-video-control="" aria-label="play_arrow" type="button" data-uid="67b77f560bd37">
<span class="c-button__label"> <span class="c-button__loader"></span>
<span class="c-button__label-icon ">
<!-- icon.blade.php -->
<span class="c-icon c-icon--play-arrow c-icon--material c-icon--material-play_arrow material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined c-icon--size-md" aria-hidden="false" material-symbol="play_arrow" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="67b77f560bd75">
</span>
</span>
</span> </button> <!-- image.blade.php -->
<figure class="c-image c-slider__item__image c-image--cover" data-a11y-error="Alt text is missing" data-uid="67b77f560bdcd">
<img
loading="lazy"
class="c-image__image"
src="https://picsum.photos/1080/720"
alt=""
/> </figure>
<div class="c-slider__item__container">
<!-- typography.blade.php (hasSeenH1) original: h2 -->
<h2 class="c-typography c-slider__item__heading c-typography__variant--h2" data-uid="67b77f560be3b">
Base Layout
</h2>
<!-- typography.blade.php (hasSeenH1) original: p -->
<p class="c-typography c-slider__item__body c-typography__variant--body" data-uid="67b77f560be6c">
Here I could put some lorem ipsum text but I am too lazy to Google for one so I wrote all this instead. Woo!
</p>
</div>
</section>
<!-- slider__item.blade.php -->
<section class="c-slider__item splide__slide u-color__bg--white c-slider__item--layout-center c-slider__item--overlay-none" data-uid="67b77f560bea9">
<!-- image.blade.php -->
<figure class="c-image c-slider__item__image c-image--cover" data-a11y-error="Alt text is missing" data-uid="67b77f560befb">
<img
loading="lazy"
class="c-image__image"
src="https://picsum.photos/1080/720"
alt=""
/> </figure>
<div class="c-slider__item__container">
<!-- typography.blade.php (hasSeenH1) original: h2 -->
<h2 class="c-typography c-slider__item__heading c-typography__variant--h2" data-uid="67b77f560bf67">
Base Layout
</h2>
<!-- typography.blade.php (hasSeenH1) original: p -->
<p class="c-typography c-slider__item__body c-typography__variant--body" data-uid="67b77f560bf96">
Here I could put some lorem ipsum text but I am too lazy to Google for one so I wrote all this instead. Woo!
</p>
</div>
</section>
</div>
</div>
</div>
@slider([
'showStepper' => true,
'autoSlide' => false,
'repeatSlide' => true,
])
@slider__item([
'title' => 'Base Layout',
'text' => 'Here I could put some lorem ipsum text but I am too lazy to Google for one so I wrote all this instead. Woo!',
'layout' => 'center',
'containerColor' => 'none',
'overlay' => 'dark',
'textAlignment' => 'center',
'image' => 'https://picsum.photos/1080/720',
'heroStyle' => true
])
@endslider__item
@slider__item([
'title' => 'Base Layout',
'text' => 'Here I could put some lorem ipsum text but I am too lazy to Google for one so I wrote all this instead. Woo!',
'layout' => 'bottom',
'overlay' => 'light',
'containerColor' => 'theme',
'image' => 'https://picsum.photos/1080/720',
])
@endslider__item
@slider__item([
'title' => 'Base Layout',
'text' => 'Here I could put some lorem ipsum text but I am too lazy to Google for one so I wrote all this instead. Woo!',
'layout' => 'center',
'containerColor' => 'none',
'image' => 'https://picsum.photos/1080/720',
'overlay' => 'light',
])
@endslider__item
@slider__item([
'title' => 'Base Layout',
'text' => 'Here I could put some lorem ipsum text but I am too lazy to Google for one so I wrote all this instead. Woo!',
'layout' => 'bottom',
'containerColor' => 'white',
'image' => 'https://picsum.photos/1080/720',
'video' => 'http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4',
])
@endslider__item
@slider__item([
'title' => 'Base Layout',
'text' => 'Here I could put some lorem ipsum text but I am too lazy to Google for one so I wrote all this instead. Woo!',
'containerColor' => 'white',
'layout' => 'center',
'image' => 'https://picsum.photos/1080/720',
])
@endslider__item
@endslider
Button styling
Styling the buttons
<div class="c-slider c-slider--16-9 c-slider__navigation--hover c-slider--shadow c-slider--has-stepper" data-step="0" js-slider="0" js-slider-index="0" data-slider-loop="1" data-slider-gap="2" id="67b77f560c54a8.41078803" data-uid="67b77f560c556">
<div class="splide__arrows c-slider__arrows">
<button class="c-button splide__arrow splide__arrow--prev c-button__outlined c-button__outlined--secondary c-button--md c-button--icon-only" target="_top" aria-label="keyboard_arrow_left" type="button" data-uid="67b77f560c592">
<span class="c-button__label"> <span class="c-button__loader"></span>
<span class="c-button__label-icon ">
<!-- icon.blade.php -->
<span class="c-icon c-icon--keyboard-arrow-left c-icon--material c-icon--material-keyboard_arrow_left material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined c-icon--size-md" aria-hidden="false" material-symbol="keyboard_arrow_left" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="67b77f560c5ce">
</span>
</span>
</span> </button> <button class="c-button splide__arrow splide__arrow--next c-button__outlined c-button__outlined--secondary c-button--md c-button--icon-only" target="_top" aria-label="keyboard_arrow_right" type="button" data-uid="67b77f560c613">
<span class="c-button__label"> <span class="c-button__loader"></span>
<span class="c-button__label-icon ">
<!-- icon.blade.php -->
<span class="c-icon c-icon--keyboard-arrow-right c-icon--material c-icon--material-keyboard_arrow_right material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined c-icon--size-md" aria-hidden="false" material-symbol="keyboard_arrow_right" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="67b77f560c64b">
</span>
</span>
</span> </button> </div>
<div class="c-slider__container splide__track">
<div class="c-slider__inner splide__list" js-slider-inner>
<!-- slider__item.blade.php -->
<section class="c-slider__item splide__slide u-color__bg--darkest c-slider__item--layout-center c-slider__item--overlay-none" data-uid="67b77f560c316">
<!-- image.blade.php -->
<figure class="c-image c-slider__item__image c-image--cover" data-a11y-error="Alt text is missing" data-uid="67b77f560c361">
<img
loading="lazy"
class="c-image__image"
src="https://picsum.photos/1080/720"
alt=""
/> </figure>
<div class="c-slider__item__container">
<!-- typography.blade.php (hasSeenH1) original: h2 -->
<h2 class="c-typography c-slider__item__heading c-typography__variant--h2" data-uid="67b77f560c3d1">
Base Layout
</h2>
<!-- typography.blade.php (hasSeenH1) original: p -->
<p class="c-typography c-slider__item__body c-typography__variant--body" data-uid="67b77f560c403">
Here I could put some lorem ipsum text but I am too lazy to Google for one so I wrote all this instead. Woo!
</p>
</div>
</section>
<!-- slider__item.blade.php -->
<section class="c-slider__item splide__slide u-color__bg--darkest c-slider__item--layout-bottom c-slider__item--overlay-none" data-uid="67b77f560c43e">
<!-- image.blade.php -->
<figure class="c-image c-slider__item__image c-image--cover" data-a11y-error="Alt text is missing" data-uid="67b77f560c482">
<img
loading="lazy"
class="c-image__image"
src="https://picsum.photos/1080/720"
alt=""
/> </figure>
<div class="c-slider__item__container">
<!-- typography.blade.php (hasSeenH1) original: h2 -->
<h2 class="c-typography c-slider__item__heading c-typography__variant--h2" data-uid="67b77f560c4ee">
Base Layout
</h2>
<!-- typography.blade.php (hasSeenH1) original: p -->
<p class="c-typography c-slider__item__body c-typography__variant--body" data-uid="67b77f560c51d">
Here I could put some lorem ipsum text but I am too lazy to Google for one so I wrote all this instead. Woo!
</p>
</div>
</section>
</div>
</div>
</div>
@slider([
'showStepper' => true,
'autoSlide' => false,
'arrowButtons' => array("color" => "secondary", "style" => "outlined")
])
@slider__item([
'image' => 'https://picsum.photos/1080/720',
'title' => 'Base Layout',
'text' => 'Here I could put some lorem ipsum text but I am too lazy to Google for one so I wrote all this instead. Woo!',
'layout' => 'center',
'containerColor' => 'darkest'
])
@endslider__item
@slider__item([
'title' => 'Base Layout',
'image' => 'https://picsum.photos/1080/720',
'text' => 'Here I could put some lorem ipsum text but I am too lazy to Google for one so I wrote all this instead. Woo!',
'layout' => 'bottom',
'containerColor' => 'darkest'
])
@endslider__item
@endslider
Slider with Cards
<div class="c-slider c-slider--16-9 c-slider__navigation--hover c-slider--shadow" data-slides-per-page="4" data-step="0" js-slider="0" js-slider-index="0" data-slider-loop="1" data-slider-gap="2" id="67b77f560d1775.57409697" data-uid="67b77f560d183">
<div class="splide__arrows c-slider__arrows">
<button class="c-button splide__arrow splide__arrow--prev c-button__filled c-button__filled--primary c-button--md c-button--icon-only" target="_top" aria-label="keyboard_arrow_left" type="button" data-uid="67b77f560d1be">
<span class="c-button__label"> <span class="c-button__loader"></span>
<span class="c-button__label-icon ">
<!-- icon.blade.php -->
<span class="c-icon c-icon--keyboard-arrow-left c-icon--material c-icon--material-keyboard_arrow_left material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined c-icon--size-md" aria-hidden="false" material-symbol="keyboard_arrow_left" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="67b77f560d1fb">
</span>
</span>
</span> </button> <button class="c-button splide__arrow splide__arrow--next c-button__filled c-button__filled--primary c-button--md c-button--icon-only" target="_top" aria-label="keyboard_arrow_right" type="button" data-uid="67b77f560d249">
<span class="c-button__label"> <span class="c-button__loader"></span>
<span class="c-button__label-icon ">
<!-- icon.blade.php -->
<span class="c-icon c-icon--keyboard-arrow-right c-icon--material c-icon--material-keyboard_arrow_right material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined c-icon--size-md" aria-hidden="false" material-symbol="keyboard_arrow_right" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="67b77f560d288">
</span>
</span>
</span> </button> </div>
<div class="c-slider__container splide__track">
<div class="c-slider__inner splide__list" js-slider-inner>
<!-- slider__item.blade.php -->
<section class="c-slider__item c-slider__item--post splide__slide c-slider__item--layout-center" data-uid="67b77f560cb28">
<div class="c-slider__item__container">
<!-- card.blade.php -->
<a class="c-card u-color__text--info c-card--focus-inset c-card--has-image c-card--action c-card--ratio-16-9" href="https://www.helsingborg.se" data-uid="67b77f560c8d8">
<div class="c-card__image-container">
<!-- image.blade.php -->
<figure class="c-image c-card__image c-image--cover" data-uid="67b77f560c94e">
<img
loading="lazy"
class="c-image__image"
src="https://picsum.photos/seed/0/267"
alt="ALT"
/> </figure>
</div>
<div class="c-card__body">
<!-- group.blade.php -->
<div class="c-group c-card__heading-container c-group--horizontal c-group--justify-content-space-between c-group--align-items-center" data-uid="67b77f560ca87">
<!-- group.blade.php -->
<div class="c-group c-group--vertical" data-uid="67b77f560ca4f">
<!-- typography.blade.php (hasSeenH1) original: h2 -->
<h2 class="c-typography c-card__heading u-margin__y--0 c-typography__variant--h3" data-uid="67b77f560c9f6">
Card #0
</h2>
</div>
</div> <!-- typography.blade.php (hasSeenH1) original: p -->
<p class="c-typography c-card__content c-typography__variant--p" data-uid="67b77f560cae3">
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
</p> </div>
</a>
</div>
</section>
<!-- slider__item.blade.php -->
<section class="c-slider__item c-slider__item--post splide__slide c-slider__item--layout-center" data-uid="67b77f560cd35">
<div class="c-slider__item__container">
<!-- card.blade.php -->
<a class="c-card u-color__text--info c-card--focus-inset c-card--has-image c-card--action c-card--ratio-16-9" href="https://www.helsingborg.se" data-uid="67b77f560cb6d">
<div class="c-card__image-container">
<!-- image.blade.php -->
<figure class="c-image c-card__image c-image--cover" data-uid="67b77f560cbc6">
<img
loading="lazy"
class="c-image__image"
src="https://picsum.photos/seed/1/267"
alt="ALT"
/> </figure>
</div>
<div class="c-card__body">
<!-- group.blade.php -->
<div class="c-group c-card__heading-container c-group--horizontal c-group--justify-content-space-between c-group--align-items-center" data-uid="67b77f560ccb4">
<!-- group.blade.php -->
<div class="c-group c-group--vertical" data-uid="67b77f560cc83">
<!-- typography.blade.php (hasSeenH1) original: h2 -->
<h2 class="c-typography c-card__heading u-margin__y--0 c-typography__variant--h3" data-uid="67b77f560cc51">
Card #1
</h2>
</div>
</div> <!-- typography.blade.php (hasSeenH1) original: p -->
<p class="c-typography c-card__content c-typography__variant--p" data-uid="67b77f560ccf6">
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
</p> </div>
</a>
</div>
</section>
<!-- slider__item.blade.php -->
<section class="c-slider__item c-slider__item--post splide__slide c-slider__item--layout-center" data-uid="67b77f560cf47">
<div class="c-slider__item__container">
<!-- card.blade.php -->
<a class="c-card u-color__text--info c-card--focus-inset c-card--has-image c-card--action c-card--ratio-16-9" href="https://www.helsingborg.se" data-uid="67b77f560cd76">
<div class="c-card__image-container">
<!-- image.blade.php -->
<figure class="c-image c-card__image c-image--cover" data-uid="67b77f560cdca">
<img
loading="lazy"
class="c-image__image"
src="https://picsum.photos/seed/2/267"
alt="ALT"
/> </figure>
</div>
<div class="c-card__body">
<!-- group.blade.php -->
<div class="c-group c-card__heading-container c-group--horizontal c-group--justify-content-space-between c-group--align-items-center" data-uid="67b77f560cec4">
<!-- group.blade.php -->
<div class="c-group c-group--vertical" data-uid="67b77f560ce88">
<!-- typography.blade.php (hasSeenH1) original: h2 -->
<h2 class="c-typography c-card__heading u-margin__y--0 c-typography__variant--h3" data-uid="67b77f560ce56">
Card #2
</h2>
</div>
</div> <!-- typography.blade.php (hasSeenH1) original: p -->
<p class="c-typography c-card__content c-typography__variant--p" data-uid="67b77f560cf07">
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
</p> </div>
</a>
</div>
</section>
<!-- slider__item.blade.php -->
<section class="c-slider__item c-slider__item--post splide__slide c-slider__item--layout-center" data-uid="67b77f560d143">
<div class="c-slider__item__container">
<!-- card.blade.php -->
<a class="c-card u-color__text--info c-card--focus-inset c-card--has-image c-card--action c-card--ratio-16-9" href="https://www.helsingborg.se" data-uid="67b77f560cf88">
<div class="c-card__image-container">
<!-- image.blade.php -->
<figure class="c-image c-card__image c-image--cover" data-uid="67b77f560cfdb">
<img
loading="lazy"
class="c-image__image"
src="https://picsum.photos/seed/3/267"
alt="ALT"
/> </figure>
</div>
<div class="c-card__body">
<!-- group.blade.php -->
<div class="c-group c-card__heading-container c-group--horizontal c-group--justify-content-space-between c-group--align-items-center" data-uid="67b77f560d0c2">
<!-- group.blade.php -->
<div class="c-group c-group--vertical" data-uid="67b77f560d093">
<!-- typography.blade.php (hasSeenH1) original: h2 -->
<h2 class="c-typography c-card__heading u-margin__y--0 c-typography__variant--h3" data-uid="67b77f560d062">
Card #3
</h2>
</div>
</div> <!-- typography.blade.php (hasSeenH1) original: p -->
<p class="c-typography c-card__content c-typography__variant--p" data-uid="67b77f560d104">
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
</p> </div>
</a>
</div>
</section>
</div>
</div>
</div>
@slider([
'showStepper' => false,
'autoSlide' => false,
'attributeList' => [
'data-slides-per-page' => 4
],
])
@for ($i = 0; $i < 4; $i++)
@slider__item([
'layout' => 'center',
'heroStyle' => false,
'classList' => ['c-slider__item--post']
])
@card([
'link' => 'https://www.helsingborg.se',
'image' => ['src' => "https://picsum.photos/seed/$i/267", 'alt' => 'ALT'],
'heading' => "Card #$i",
'content' => "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
'classList' => ['u-color__text--info', 'c-card--focus-inset'],
])
@endcard
@endslider__item
@endfor
@endslider
Slider with Segment
<div class="c-slider c-slider--post c-slider--16-9 c-slider__navigation--hover c-slider--shadow" data-slides-per-page="1" data-step="0" js-slider="0" js-slider-index="0" data-slider-gap="2" id="67b77f560e1546.03333687" data-uid="67b77f560e160">
<div class="splide__arrows c-slider__arrows">
<button class="c-button splide__arrow splide__arrow--prev c-button__filled c-button__filled--primary c-button--md c-button--icon-only" target="_top" aria-label="keyboard_arrow_left" type="button" data-uid="67b77f560e195">
<span class="c-button__label"> <span class="c-button__loader"></span>
<span class="c-button__label-icon ">
<!-- icon.blade.php -->
<span class="c-icon c-icon--keyboard-arrow-left c-icon--material c-icon--material-keyboard_arrow_left material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined c-icon--size-md" aria-hidden="false" material-symbol="keyboard_arrow_left" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="67b77f560e1cd">
</span>
</span>
</span> </button> <button class="c-button splide__arrow splide__arrow--next c-button__filled c-button__filled--primary c-button--md c-button--icon-only" target="_top" aria-label="keyboard_arrow_right" type="button" data-uid="67b77f560e20c">
<span class="c-button__label"> <span class="c-button__loader"></span>
<span class="c-button__label-icon ">
<!-- icon.blade.php -->
<span class="c-icon c-icon--keyboard-arrow-right c-icon--material c-icon--material-keyboard_arrow_right material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined c-icon--size-md" aria-hidden="false" material-symbol="keyboard_arrow_right" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="67b77f560e24d">
</span>
</span>
</span> </button> </div>
<div class="c-slider__container splide__track">
<div class="c-slider__inner splide__list" js-slider-inner>
<!-- slider__item.blade.php -->
<section class="c-slider__item c-slider__item--post splide__slide c-slider__item--layout-bottom" data-uid="67b77f560d8fe">
<div class="c-slider__item__container">
<!-- segment.blade.php -->
<section class="c-segment c-segment--slider c-segment--size-sm c-segment--card c-segment--text-dark c-segment--height-content c-segment--text-default c-segment--alignment-top c-segment--reverse" data-observe-resizes="" data-uid="67b77f560d603">
<a class="c-link c-segment__image-container" id="" aria-label="Visit: https://www.helsingborg.se" href="https://www.helsingborg.se" target="_top" data-uid="67b77f560d700">
<!-- image.blade.php -->
<figure class="c-image c-segment__image" data-a11y-error="Alt text is missing" data-uid="67b77f560d66e">
<img
loading="lazy"
class="c-image__image"
src="https://picsum.photos/seed/0/1400"
alt=""
/> </figure>
</a>
<div class="c-segment__content">
<!-- card.blade.php -->
<div class="c-card c-segment__content-card c-card--ratio-16-9" data-uid="67b77f560d8bd">
<!-- group.blade.php -->
<div class="c-group c-group--horizontal c-group--justify-content-space-between c-group--gap-2 c-group--align-items-start" data-uid="67b77f560d80e">
<!-- group.blade.php -->
<div class="c-group u-width--100 c-group--vertical" data-uid="67b77f560d7de">
<!-- typography.blade.php (hasSeenH1) original: h2 -->
<h2 class="c-typography c-segment__title u-margin__bottom--1 u-margin__top--0 c-typography__variant--h3" data-uid="67b77f560d7aa">
<a class="c-link" id="" href="https://www.helsingborg.se" target="_top" data-uid="67b77f560d776">
Card #0
</a>
</h2>
</div>
</div>
<!-- typography.blade.php (hasSeenH1) original: div -->
<div class="c-typography c-segment__text c-typography__variant--div" data-uid="67b77f560d83f">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
</div>
<div class="c-segment__buttons">
<a class="c-button c-button__filled c-button__filled--default c-button--md" target="_top" type="button" href="https://www.helsingborg.se" aria-label="Read More" data-uid="67b77f560d87b">
<span class="c-button__label"> <span class="c-button__loader"></span>
<span class="c-button__label-text ">
Read More
</span>
</span> </a> </div>
<div class="c-segment__inner-blocks u-hide-empty"><InnerBlocks /></div>
</div>
</div>
</section>
</div>
</section>
<!-- slider__item.blade.php -->
<section class="c-slider__item c-slider__item--post splide__slide c-slider__item--layout-bottom" data-uid="67b77f560dbd8">
<div class="c-slider__item__container">
<!-- segment.blade.php -->
<section class="c-segment c-segment--slider c-segment--size-sm c-segment--card c-segment--text-dark c-segment--height-content c-segment--text-default c-segment--alignment-top c-segment--reverse" data-observe-resizes="" data-uid="67b77f560d949">
<a class="c-link c-segment__image-container" id="" aria-label="Visit: https://www.helsingborg.se" href="https://www.helsingborg.se" target="_top" data-uid="67b77f560d9fb">
<!-- image.blade.php -->
<figure class="c-image c-segment__image" data-a11y-error="Alt text is missing" data-uid="67b77f560d993">
<img
loading="lazy"
class="c-image__image"
src="https://picsum.photos/seed/1/1400"
alt=""
/> </figure>
</a>
<div class="c-segment__content">
<!-- card.blade.php -->
<div class="c-card c-segment__content-card c-card--ratio-16-9" data-uid="67b77f560db9a">
<!-- group.blade.php -->
<div class="c-group c-group--horizontal c-group--justify-content-space-between c-group--gap-2 c-group--align-items-start" data-uid="67b77f560daf3">
<!-- group.blade.php -->
<div class="c-group u-width--100 c-group--vertical" data-uid="67b77f560dac4">
<!-- typography.blade.php (hasSeenH1) original: h2 -->
<h2 class="c-typography c-segment__title u-margin__bottom--1 u-margin__top--0 c-typography__variant--h3" data-uid="67b77f560da93">
<a class="c-link" id="" href="https://www.helsingborg.se" target="_top" data-uid="67b77f560da60">
Card #1
</a>
</h2>
</div>
</div>
<!-- typography.blade.php (hasSeenH1) original: div -->
<div class="c-typography c-segment__text c-typography__variant--div" data-uid="67b77f560db21">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
</div>
<div class="c-segment__buttons">
<a class="c-button c-button__filled c-button__filled--default c-button--md" target="_top" type="button" href="https://www.helsingborg.se" aria-label="Read More" data-uid="67b77f560db5b">
<span class="c-button__label"> <span class="c-button__loader"></span>
<span class="c-button__label-text ">
Read More
</span>
</span> </a> </div>
<div class="c-segment__inner-blocks u-hide-empty"><InnerBlocks /></div>
</div>
</div>
</section>
</div>
</section>
<!-- slider__item.blade.php -->
<section class="c-slider__item c-slider__item--post splide__slide c-slider__item--layout-bottom" data-uid="67b77f560de8f">
<div class="c-slider__item__container">
<!-- segment.blade.php -->
<section class="c-segment c-segment--slider c-segment--size-sm c-segment--card c-segment--text-dark c-segment--height-content c-segment--text-default c-segment--alignment-top c-segment--reverse" data-observe-resizes="" data-uid="67b77f560dc2c">
<a class="c-link c-segment__image-container" id="" aria-label="Visit: https://www.helsingborg.se" href="https://www.helsingborg.se" target="_top" data-uid="67b77f560dccf">
<!-- image.blade.php -->
<figure class="c-image c-segment__image" data-a11y-error="Alt text is missing" data-uid="67b77f560dc71">
<img
loading="lazy"
class="c-image__image"
src="https://picsum.photos/seed/2/1400"
alt=""
/> </figure>
</a>
<div class="c-segment__content">
<!-- card.blade.php -->
<div class="c-card c-segment__content-card c-card--ratio-16-9" data-uid="67b77f560de54">
<!-- group.blade.php -->
<div class="c-group c-group--horizontal c-group--justify-content-space-between c-group--gap-2 c-group--align-items-start" data-uid="67b77f560ddab">
<!-- group.blade.php -->
<div class="c-group u-width--100 c-group--vertical" data-uid="67b77f560dd7f">
<!-- typography.blade.php (hasSeenH1) original: h2 -->
<h2 class="c-typography c-segment__title u-margin__bottom--1 u-margin__top--0 c-typography__variant--h3" data-uid="67b77f560dd52">
<a class="c-link" id="" href="https://www.helsingborg.se" target="_top" data-uid="67b77f560dd24">
Card #2
</a>
</h2>
</div>
</div>
<!-- typography.blade.php (hasSeenH1) original: div -->
<div class="c-typography c-segment__text c-typography__variant--div" data-uid="67b77f560ddd6">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
</div>
<div class="c-segment__buttons">
<a class="c-button c-button__filled c-button__filled--default c-button--md" target="_top" type="button" href="https://www.helsingborg.se" aria-label="Read More" data-uid="67b77f560de0c">
<span class="c-button__label"> <span class="c-button__loader"></span>
<span class="c-button__label-text ">
Read More
</span>
</span> </a> </div>
<div class="c-segment__inner-blocks u-hide-empty"><InnerBlocks /></div>
</div>
</div>
</section>
</div>
</section>
<!-- slider__item.blade.php -->
<section class="c-slider__item c-slider__item--post splide__slide c-slider__item--layout-bottom" data-uid="67b77f560e124">
<div class="c-slider__item__container">
<!-- segment.blade.php -->
<section class="c-segment c-segment--slider c-segment--size-sm c-segment--card c-segment--text-dark c-segment--height-content c-segment--text-default c-segment--alignment-top c-segment--reverse" data-observe-resizes="" data-uid="67b77f560ded3">
<a class="c-link c-segment__image-container" id="" aria-label="Visit: https://www.helsingborg.se" href="https://www.helsingborg.se" target="_top" data-uid="67b77f560df75">
<!-- image.blade.php -->
<figure class="c-image c-segment__image" data-a11y-error="Alt text is missing" data-uid="67b77f560df17">
<img
loading="lazy"
class="c-image__image"
src="https://picsum.photos/seed/3/1400"
alt=""
/> </figure>
</a>
<div class="c-segment__content">
<!-- card.blade.php -->
<div class="c-card c-segment__content-card c-card--ratio-16-9" data-uid="67b77f560e0ea">
<!-- group.blade.php -->
<div class="c-group c-group--horizontal c-group--justify-content-space-between c-group--gap-2 c-group--align-items-start" data-uid="67b77f560e04f">
<!-- group.blade.php -->
<div class="c-group u-width--100 c-group--vertical" data-uid="67b77f560e024">
<!-- typography.blade.php (hasSeenH1) original: h2 -->
<h2 class="c-typography c-segment__title u-margin__bottom--1 u-margin__top--0 c-typography__variant--h3" data-uid="67b77f560dff5">
<a class="c-link" id="" href="https://www.helsingborg.se" target="_top" data-uid="67b77f560dfc8">
Card #3
</a>
</h2>
</div>
</div>
<!-- typography.blade.php (hasSeenH1) original: div -->
<div class="c-typography c-segment__text c-typography__variant--div" data-uid="67b77f560e07a">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
</div>
<div class="c-segment__buttons">
<a class="c-button c-button__filled c-button__filled--default c-button--md" target="_top" type="button" href="https://www.helsingborg.se" aria-label="Read More" data-uid="67b77f560e0af">
<span class="c-button__label"> <span class="c-button__loader"></span>
<span class="c-button__label-text ">
Read More
</span>
</span> </a> </div>
<div class="c-segment__inner-blocks u-hide-empty"><InnerBlocks /></div>
</div>
</div>
</section>
</div>
</section>
</div>
</div>
</div>
@slider([
'showStepper' => false,
'autoSlide' => false,
'repeatSlide' => false,
'attributeList' => [
'data-slides-per-page' => 1
],
'classList' => ['c-slider--post']
])
@for ($i = 0; $i < 4; $i++)
@slider__item([
'classList' => ['c-slider__item--post']
])
@segment([
'layout' => 'card',
'title' => "Card #$i",
'tags' => false,
'meta' => false,
'image' => "https://picsum.photos/seed/$i/1400",
'buttons' => [['text' => 'Read More', 'href' => 'https://www.helsingborg.se']],
'content' => "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
'classList' => ['c-segment--slider', 'c-segment--size-sm'],
'containerAware' => true,
'reverseColumns' => true
])
@endsegment
@endslider__item
@endfor
@endslider
Blade component parameters
Key | Default value | Type | Available values | Description |
showStepper | true | boolean | - | Option to hide or show stepper. |
autoSlide | true | boolean | - | If set to true, slider will auto slide with default delay. Can also receive an int to set delay in seconds |
peekSlides | false | boolean | - | Adds some padding to show a peek of next and previous slides |
navigationHover | true | boolean | - | Only show navigation when hovering over the slider |
ratio | 16:9 | string | - | The size ratio of the slider |
repeatSlide | true | boolean | - | Will allow the slide to repeat its cycle |
heroStyle | false | boolean | - | - |
shadow | true | boolean | - | - |
customButtons | false | boolean | - | - |
arrowButtons | {"color":"primary","style":"filled"} | array | - | - |
padding | 0 | integer | - | Sets the amount of padding between slides |
gap | 2 | integer | - | Sets the amount of gap between slides |
id | string | - | The DOM id of the component. | |
classList | [] | array | - | Array containing wrapping classes array |
attributeList | [] | array | - | Array containing keys and values rendered as attributes |
containerAware | false | boolean | true/false | Makes the component container aware. Appends modifiers --size--xs/sm/md/lg to the component. |