Slider
Using the slider item component
By using the slider item component you can create a slider with ease
<div class="c-slider splide u-visibility--visible c-slider--16-9 c-slider__navigation--hover c-slider--shadow c-slider--has-stepper" data-step="0" data-js-slider="0" data-js-slider-index="0" data-slider-loop="1" data-slider-gap="2" data-js-slider-buttons="sider_699cd4eb3601a482132504" id="sider_699cd4eb3601a482132504" data-uid="699cd4eb3603a">
<div class="c-slider__arrows" id="slider_sider_699cd4eb3601a482132504">
<button class="c-button c-slider__arrow c-slider__arrow--prev c-button__filled c-button__filled--primary c-button--md c-button--icon-only" data-js-slider-prev="1" aria-label="keyboard_arrow_left" type="button" data-uid="699cd4eb360b0">
<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" data-material-symbol="keyboard_arrow_left" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" data-uid="699cd4eb360f9">
</span>
</span>
</span> </button> <button class="c-button c-slider__arrow c-slider__arrow--next c-button__filled c-button__filled--primary c-button--md c-button--icon-only" data-js-slider-next="1" aria-label="keyboard_arrow_right" type="button" data-uid="699cd4eb36147">
<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" data-material-symbol="keyboard_arrow_right" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" data-uid="699cd4eb36189">
</span>
</span>
</span> </button></div>
<div class="c-slider__container splide__track">
<div class="c-slider__inner splide__list" data-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="699cd4eb3548b">
<!-- image.blade.php -->
<figure class="c-image c-slider__item__image c-image--cover" data-uid="699cd4eb35542">
<div
class="c-image__image-wrapper"
>
<img
loading="lazy"
class="c-image__image"
src="https://picsum.photos/1080/720"
alt=""
></div> </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="699cd4eb3561c">
Base Layout
</h1>
<!-- typography.blade.php (hasSeenH1) original: p -->
<p class="c-typography c-slider__item__body c-typography__variant--body" data-uid="699cd4eb3565d">
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" href="https://www.helsingborg.se" target="_top" aria-label="Read more" data-uid="699cd4eb356da">
<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" data-material-symbol="arrow_forward" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" data-uid="699cd4eb35855">
</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="699cd4eb358c0">
<!-- image.blade.php -->
<figure class="c-image c-slider__item__image c-image--cover" data-uid="699cd4eb3591d">
<div
class="c-image__image-wrapper"
>
<img
loading="lazy"
class="c-image__image"
src="https://picsum.photos/1080/720"
alt=""
></div> </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="699cd4eb359a5">
Base Layout
</h2>
<!-- typography.blade.php (hasSeenH1) original: p -->
<p class="c-typography c-slider__item__body c-typography__variant--body" data-uid="699cd4eb359dc">
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" href="https://www.helsingborg.se" target="_top" aria-label="Read more" data-uid="699cd4eb35a20">
<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" data-material-symbol="arrow_forward" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" data-uid="699cd4eb35a65">
</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="699cd4eb35abf">
<!-- image.blade.php -->
<figure class="c-image c-slider__item__image c-image--cover" data-uid="699cd4eb35b0c">
<div
class="c-image__image-wrapper"
>
<img
loading="lazy"
class="c-image__image"
src="https://picsum.photos/1080/720"
alt=""
></div> </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="699cd4eb35b87">
Base Layout
</h2>
<!-- typography.blade.php (hasSeenH1) original: p -->
<p class="c-typography c-slider__item__body c-typography__variant--body" data-uid="699cd4eb35bb9">
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-js-slider-video="http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" data-uid="699cd4eb35bfa">
<!-- video.blade.php -->
<video class="c-video c-slider__item__background--video" width="600" height="300" muted autoplay loop="1" data-uid="699cd4eb35c90">
<source class="c-video__source" src="#" type="video/mp4">
<!-- notice.blade.php -->
<div class="c-notice c-notice--warning" id="id_699cd4eb35d16" data-uid="699cd4eb35d28" aria-labelledby="notice__text__id_699cd4eb35d16">
<span id="notice__text__id_699cd4eb35d16" data-js-notice-message="true" 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" js-video-control="" aria-label="play_arrow" type="button" data-uid="699cd4eb35d7c">
<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" data-material-symbol="play_arrow" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" data-uid="699cd4eb35dc1">
</span>
</span>
</span> </button> <!-- image.blade.php -->
<figure class="c-image c-slider__item__image c-image--cover" data-uid="699cd4eb35e23">
<div
class="c-image__image-wrapper"
>
<img
loading="lazy"
class="c-image__image"
src="https://picsum.photos/1080/720"
alt=""
></div> </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="699cd4eb35eb4">
Base Layout
</h2>
<!-- typography.blade.php (hasSeenH1) original: p -->
<p class="c-typography c-slider__item__body c-typography__variant--body" data-uid="699cd4eb35eec">
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="699cd4eb35f35">
<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="699cd4eb35f6e">
Base Layout
</h2>
<!-- typography.blade.php (hasSeenH1) original: p -->
<p class="c-typography c-slider__item__body c-typography__variant--body" data-uid="699cd4eb35fa3">
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 splide u-visibility--visible c-slider--16-9 c-slider__navigation--hover c-slider--shadow c-slider--has-stepper" data-step="0" data-js-slider="0" data-js-slider-index="0" data-slider-loop="1" data-slider-gap="2" data-js-slider-buttons="sider_699cd4eb36378701435863" id="sider_699cd4eb36378701435863" data-uid="699cd4eb36388">
<div class="c-slider__arrows" id="slider_sider_699cd4eb36378701435863">
<button class="c-button c-slider__arrow c-slider__arrow--prev c-button__filled c-button__filled--primary c-button--md c-button--icon-only" data-js-slider-prev="1" aria-label="keyboard_arrow_left" type="button" data-uid="699cd4eb363e2">
<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" data-material-symbol="keyboard_arrow_left" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" data-uid="699cd4eb36424">
</span>
</span>
</span> </button> <button class="c-button c-slider__arrow c-slider__arrow--next c-button__filled c-button__filled--primary c-button--md c-button--icon-only" data-js-slider-next="1" aria-label="keyboard_arrow_right" type="button" data-uid="699cd4eb3646e">
<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" data-material-symbol="keyboard_arrow_right" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" data-uid="699cd4eb364ac">
</span>
</span>
</span> </button></div>
<div class="c-slider__container splide__track">
<div class="c-slider__inner splide__list" data-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="699cd4eb36229">
<!-- image.blade.php -->
<figure class="c-image c-slider__item__image c-image--cover" data-uid="699cd4eb3627e">
<div
class="c-image__image-wrapper"
>
<img
loading="lazy"
class="c-image__image"
src="https://picsum.photos/720/720"
alt=""
></div> </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="699cd4eb3630f">
Base Layout
</h2>
<!-- typography.blade.php (hasSeenH1) original: p -->
<p class="c-typography c-slider__item__body c-typography__variant--body" data-uid="699cd4eb36346">
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 splide u-visibility--visible c-slider--16-9 c-slider__navigation--hover c-slider--shadow c-slider--has-stepper" data-step="0" data-js-slider="0" data-js-slider-index="0" data-slider-loop="1" data-slider-gap="2" data-js-slider-buttons="sider_699cd4eb36ccf533077772" id="sider_699cd4eb36ccf533077772" data-uid="699cd4eb36ce0">
<div class="c-slider__arrows" id="slider_sider_699cd4eb36ccf533077772">
<button class="c-button c-slider__arrow c-slider__arrow--prev c-button__filled c-button__filled--primary c-button--md c-button--icon-only" data-js-slider-prev="1" aria-label="keyboard_arrow_left" type="button" data-uid="699cd4eb36d3b">
<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" data-material-symbol="keyboard_arrow_left" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" data-uid="699cd4eb36d7d">
</span>
</span>
</span> </button> <button class="c-button c-slider__arrow c-slider__arrow--next c-button__filled c-button__filled--primary c-button--md c-button--icon-only" data-js-slider-next="1" aria-label="keyboard_arrow_right" type="button" data-uid="699cd4eb36dcc">
<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" data-material-symbol="keyboard_arrow_right" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" data-uid="699cd4eb36e0b">
</span>
</span>
</span> </button></div>
<div class="c-slider__container splide__track">
<div class="c-slider__inner splide__list" data-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="699cd4eb36546">
<!-- image.blade.php -->
<figure class="c-image c-slider__item__image c-image--cover" data-uid="699cd4eb3659a">
<div
class="c-image__image-wrapper"
>
<img
loading="lazy"
class="c-image__image"
src="https://picsum.photos/1080/720"
alt=""
></div> </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="699cd4eb3661e">
Base Layout
</h2>
<!-- typography.blade.php (hasSeenH1) original: p -->
<p class="c-typography c-slider__item__body c-typography__variant--body" data-uid="699cd4eb36654">
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="699cd4eb3669f">
<!-- image.blade.php -->
<figure class="c-image c-slider__item__image c-image--cover" data-uid="699cd4eb366ef">
<div
class="c-image__image-wrapper"
>
<img
loading="lazy"
class="c-image__image"
src="https://picsum.photos/1080/720"
alt=""
></div> </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="699cd4eb36768">
Base Layout
</h2>
<!-- typography.blade.php (hasSeenH1) original: p -->
<p class="c-typography c-slider__item__body c-typography__variant--body" data-uid="699cd4eb3679d">
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="699cd4eb367de">
<!-- image.blade.php -->
<figure class="c-image c-slider__item__image c-image--cover" data-uid="699cd4eb3682c">
<div
class="c-image__image-wrapper"
>
<img
loading="lazy"
class="c-image__image"
src="https://picsum.photos/1080/720"
alt=""
></div> </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="699cd4eb368a5">
Base Layout
</h2>
<!-- typography.blade.php (hasSeenH1) original: p -->
<p class="c-typography c-slider__item__body c-typography__variant--body" data-uid="699cd4eb368d9">
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-js-slider-video="http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" data-uid="699cd4eb3691a">
<!-- video.blade.php -->
<video class="c-video c-slider__item__background--video" width="600" height="300" muted autoplay loop="1" data-uid="699cd4eb36968">
<source class="c-video__source" src="#" type="video/mp4">
<!-- notice.blade.php -->
<div class="c-notice c-notice--warning" id="id_699cd4eb369a6" data-uid="699cd4eb369b3" aria-labelledby="notice__text__id_699cd4eb369a6">
<span id="notice__text__id_699cd4eb369a6" data-js-notice-message="true" 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" js-video-control="" aria-label="play_arrow" type="button" data-uid="699cd4eb369fa">
<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" data-material-symbol="play_arrow" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" data-uid="699cd4eb36a3c">
</span>
</span>
</span> </button> <!-- image.blade.php -->
<figure class="c-image c-slider__item__image c-image--cover" data-uid="699cd4eb36aa7">
<div
class="c-image__image-wrapper"
>
<img
loading="lazy"
class="c-image__image"
src="https://picsum.photos/1080/720"
alt=""
></div> </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="699cd4eb36b23">
Base Layout
</h2>
<!-- typography.blade.php (hasSeenH1) original: p -->
<p class="c-typography c-slider__item__body c-typography__variant--body" data-uid="699cd4eb36b5c">
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="699cd4eb36b9f">
<!-- image.blade.php -->
<figure class="c-image c-slider__item__image c-image--cover" data-uid="699cd4eb36bee">
<div
class="c-image__image-wrapper"
>
<img
loading="lazy"
class="c-image__image"
src="https://picsum.photos/1080/720"
alt=""
></div> </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="699cd4eb36c68">
Base Layout
</h2>
<!-- typography.blade.php (hasSeenH1) original: p -->
<p class="c-typography c-slider__item__body c-typography__variant--body" data-uid="699cd4eb36c9d">
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 splide u-visibility--visible c-slider--16-9 c-slider__navigation--hover c-slider--shadow c-slider--has-stepper" data-step="0" data-js-slider="0" data-js-slider-index="0" data-slider-loop="1" data-slider-gap="2" data-js-slider-buttons="sider_699cd4eb37134347298177" id="sider_699cd4eb37134347298177" data-uid="699cd4eb37143">
<div class="c-slider__arrows" id="slider_sider_699cd4eb37134347298177">
<button class="c-button c-slider__arrow c-slider__arrow--prev c-button__outlined c-button__outlined--secondary c-button--md c-button--icon-only" data-js-slider-prev="1" aria-label="keyboard_arrow_left" type="button" data-uid="699cd4eb37195">
<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" data-material-symbol="keyboard_arrow_left" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" data-uid="699cd4eb371d3">
</span>
</span>
</span> </button> <button class="c-button c-slider__arrow c-slider__arrow--next c-button__outlined c-button__outlined--secondary c-button--md c-button--icon-only" data-js-slider-next="1" aria-label="keyboard_arrow_right" type="button" data-uid="699cd4eb3721a">
<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" data-material-symbol="keyboard_arrow_right" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" data-uid="699cd4eb3725e">
</span>
</span>
</span> </button></div>
<div class="c-slider__container splide__track">
<div class="c-slider__inner splide__list" data-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="699cd4eb36eb4">
<!-- image.blade.php -->
<figure class="c-image c-slider__item__image c-image--cover" data-uid="699cd4eb36f08">
<div
class="c-image__image-wrapper"
>
<img
loading="lazy"
class="c-image__image"
src="https://picsum.photos/1080/720"
alt=""
></div> </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="699cd4eb36f88">
Base Layout
</h2>
<!-- typography.blade.php (hasSeenH1) original: p -->
<p class="c-typography c-slider__item__body c-typography__variant--body" data-uid="699cd4eb36fbd">
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="699cd4eb37002">
<!-- image.blade.php -->
<figure class="c-image c-slider__item__image c-image--cover" data-uid="699cd4eb37051">
<div
class="c-image__image-wrapper"
>
<img
loading="lazy"
class="c-image__image"
src="https://picsum.photos/1080/720"
alt=""
></div> </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="699cd4eb370cb">
Base Layout
</h2>
<!-- typography.blade.php (hasSeenH1) original: p -->
<p class="c-typography c-slider__item__body c-typography__variant--body" data-uid="699cd4eb37100">
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 splide u-visibility--visible c-slider--16-9 c-slider__navigation--hover c-slider--shadow" data-slides-per-page="4" data-step="0" data-js-slider="0" data-js-slider-index="0" data-slider-loop="1" data-slider-gap="2" data-js-slider-buttons="sider_699cd4eb37c9e618240624" id="sider_699cd4eb37c9e618240624" data-uid="699cd4eb37cae">
<div class="c-slider__arrows" id="slider_sider_699cd4eb37c9e618240624">
<button class="c-button c-slider__arrow c-slider__arrow--prev c-button__filled c-button__filled--primary c-button--md c-button--icon-only" data-js-slider-prev="1" aria-label="keyboard_arrow_left" type="button" data-uid="699cd4eb37d08">
<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" data-material-symbol="keyboard_arrow_left" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" data-uid="699cd4eb37d4b">
</span>
</span>
</span> </button> <button class="c-button c-slider__arrow c-slider__arrow--next c-button__filled c-button__filled--primary c-button--md c-button--icon-only" data-js-slider-next="1" aria-label="keyboard_arrow_right" type="button" data-uid="699cd4eb37d96">
<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" data-material-symbol="keyboard_arrow_right" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" data-uid="699cd4eb37dd4">
</span>
</span>
</span> </button></div>
<div class="c-slider__container splide__track">
<div class="c-slider__inner splide__list" data-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="699cd4eb375b0">
<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" aria-label="Card #0 - Lorem ipsum dolor sit amet," data-uid="699cd4eb37337">
<div class="c-card__paint-container">
<div class="c-card__image-container">
<!-- image.blade.php -->
<figure class="c-image c-card__image c-image--cover" data-uid="699cd4eb373b9">
<div
class="c-image__image-wrapper"
>
<img
loading="lazy"
class="c-image__image"
src="https://picsum.photos/seed/0/267"
alt="ALT"
></div> </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="699cd4eb3750e">
<!-- group.blade.php -->
<div class="c-group c-group--vertical" data-uid="699cd4eb374d6">
<!-- typography.blade.php (hasSeenH1) original: h2 -->
<h2 class="c-typography c-card__heading u-margin__y--0 c-typography__variant--h3" data-uid="699cd4eb37475">
Card #0
</h2>
</div>
</div> <!-- typography.blade.php (hasSeenH1) original: p -->
<p class="c-typography c-card__content c-typography__variant--p" data-uid="699cd4eb37565">
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
</p> </div>
</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="699cd4eb377f9">
<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" aria-label="Card #1 - Lorem ipsum dolor sit amet," data-uid="699cd4eb375fb">
<div class="c-card__paint-container">
<div class="c-card__image-container">
<!-- image.blade.php -->
<figure class="c-image c-card__image c-image--cover" data-uid="699cd4eb3766a">
<div
class="c-image__image-wrapper"
>
<img
loading="lazy"
class="c-image__image"
src="https://picsum.photos/seed/1/267"
alt="ALT"
></div> </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="699cd4eb3776c">
<!-- group.blade.php -->
<div class="c-group c-group--vertical" data-uid="699cd4eb3773b">
<!-- typography.blade.php (hasSeenH1) original: h2 -->
<h2 class="c-typography c-card__heading u-margin__y--0 c-typography__variant--h3" data-uid="699cd4eb37708">
Card #1
</h2>
</div>
</div> <!-- typography.blade.php (hasSeenH1) original: p -->
<p class="c-typography c-card__content c-typography__variant--p" data-uid="699cd4eb377b3">
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
</p> </div>
</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="699cd4eb37a34">
<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" aria-label="Card #2 - Lorem ipsum dolor sit amet," data-uid="699cd4eb37841">
<div class="c-card__paint-container">
<div class="c-card__image-container">
<!-- image.blade.php -->
<figure class="c-image c-card__image c-image--cover" data-uid="699cd4eb378a0">
<div
class="c-image__image-wrapper"
>
<img
loading="lazy"
class="c-image__image"
src="https://picsum.photos/seed/2/267"
alt="ALT"
></div> </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="699cd4eb3799e">
<!-- group.blade.php -->
<div class="c-group c-group--vertical" data-uid="699cd4eb3796e">
<!-- typography.blade.php (hasSeenH1) original: h2 -->
<h2 class="c-typography c-card__heading u-margin__y--0 c-typography__variant--h3" data-uid="699cd4eb3793b">
Card #2
</h2>
</div>
</div> <!-- typography.blade.php (hasSeenH1) original: p -->
<p class="c-typography c-card__content c-typography__variant--p" data-uid="699cd4eb379e4">
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
</p> </div>
</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="699cd4eb37c66">
<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" aria-label="Card #3 - Lorem ipsum dolor sit amet," data-uid="699cd4eb37a7c">
<div class="c-card__paint-container">
<div class="c-card__image-container">
<!-- image.blade.php -->
<figure class="c-image c-card__image c-image--cover" data-uid="699cd4eb37ada">
<div
class="c-image__image-wrapper"
>
<img
loading="lazy"
class="c-image__image"
src="https://picsum.photos/seed/3/267"
alt="ALT"
></div> </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="699cd4eb37bd8">
<!-- group.blade.php -->
<div class="c-group c-group--vertical" data-uid="699cd4eb37ba7">
<!-- typography.blade.php (hasSeenH1) original: h2 -->
<h2 class="c-typography c-card__heading u-margin__y--0 c-typography__variant--h3" data-uid="699cd4eb37b74">
Card #3
</h2>
</div>
</div> <!-- typography.blade.php (hasSeenH1) original: p -->
<p class="c-typography c-card__content c-typography__variant--p" data-uid="699cd4eb37c1e">
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
</p> </div>
</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 splide u-visibility--visible c-slider--16-9 c-slider__navigation--hover c-slider--shadow" data-slides-per-page="1" data-step="0" data-js-slider="0" data-js-slider-index="0" data-slider-gap="2" data-js-slider-buttons="sider_699cd4eb38bca014799012" id="sider_699cd4eb38bca014799012" data-uid="699cd4eb38bda">
<div class="c-slider__arrows" id="slider_sider_699cd4eb38bca014799012">
<button class="c-button c-slider__arrow c-slider__arrow--prev c-button__filled c-button__filled--primary c-button--md c-button--icon-only" data-js-slider-prev="1" aria-label="keyboard_arrow_left" type="button" data-uid="699cd4eb38c2e">
<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" data-material-symbol="keyboard_arrow_left" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" data-uid="699cd4eb38c6c">
</span>
</span>
</span> </button> <button class="c-button c-slider__arrow c-slider__arrow--next c-button__filled c-button__filled--primary c-button--md c-button--icon-only" data-js-slider-next="1" aria-label="keyboard_arrow_right" type="button" data-uid="699cd4eb38cb3">
<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" data-material-symbol="keyboard_arrow_right" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" data-uid="699cd4eb38ced">
</span>
</span>
</span> </button></div>
<div class="c-slider__container splide__track">
<div class="c-slider__inner splide__list" data-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="699cd4eb3821a">
<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="699cd4eb37ebb">
<a class="c-link c-segment__image-container" aria-label="Visit: https://www.helsingborg.se" href="https://www.helsingborg.se" target="_top" data-uid="699cd4eb37fd0">
<!-- image.blade.php -->
<figure class="c-image c-segment__image" data-uid="699cd4eb37f25">
<div
class="c-image__image-wrapper"
>
<img
loading="lazy"
class="c-image__image"
src="https://picsum.photos/seed/0/1400"
alt=""
></div> </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="699cd4eb381c5">
<div class="c-card__paint-container">
<!-- 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="699cd4eb380ff">
<!-- group.blade.php -->
<div class="c-group u-width--100 c-group--vertical" data-uid="699cd4eb380cd">
<!-- 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="699cd4eb38096">
<a class="c-link" href="https://www.helsingborg.se" target="_top" data-uid="699cd4eb3805b">
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="699cd4eb38134">
<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" href="https://www.helsingborg.se" target="_top" aria-label="Read More" data-uid="699cd4eb3817a">
<span class="c-button__label"> <span class="c-button__loader"></span>
<span class="c-button__label-text ">
Read More
</span>
</span> </a> </div>
</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="699cd4eb3854a">
<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="699cd4eb38273">
<a class="c-link c-segment__image-container" aria-label="Visit: https://www.helsingborg.se" href="https://www.helsingborg.se" target="_top" data-uid="699cd4eb3833f">
<!-- image.blade.php -->
<figure class="c-image c-segment__image" data-uid="699cd4eb382c6">
<div
class="c-image__image-wrapper"
>
<img
loading="lazy"
class="c-image__image"
src="https://picsum.photos/seed/1/1400"
alt=""
></div> </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="699cd4eb38502">
<div class="c-card__paint-container">
<!-- 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="699cd4eb38447">
<!-- group.blade.php -->
<div class="c-group u-width--100 c-group--vertical" data-uid="699cd4eb38413">
<!-- 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="699cd4eb383dd">
<a class="c-link" href="https://www.helsingborg.se" target="_top" data-uid="699cd4eb383a7">
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="699cd4eb38478">
<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" href="https://www.helsingborg.se" target="_top" aria-label="Read More" data-uid="699cd4eb384bb">
<span class="c-button__label"> <span class="c-button__loader"></span>
<span class="c-button__label-text ">
Read More
</span>
</span> </a> </div>
</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="699cd4eb38873">
<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="699cd4eb3859e">
<a class="c-link c-segment__image-container" aria-label="Visit: https://www.helsingborg.se" href="https://www.helsingborg.se" target="_top" data-uid="699cd4eb3866f">
<!-- image.blade.php -->
<figure class="c-image c-segment__image" data-uid="699cd4eb385f9">
<div
class="c-image__image-wrapper"
>
<img
loading="lazy"
class="c-image__image"
src="https://picsum.photos/seed/2/1400"
alt=""
></div> </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="699cd4eb3882b">
<div class="c-card__paint-container">
<!-- 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="699cd4eb38771">
<!-- group.blade.php -->
<div class="c-group u-width--100 c-group--vertical" data-uid="699cd4eb3873e">
<!-- 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="699cd4eb3870d">
<a class="c-link" href="https://www.helsingborg.se" target="_top" data-uid="699cd4eb386d8">
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="699cd4eb387a1">
<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" href="https://www.helsingborg.se" target="_top" aria-label="Read More" data-uid="699cd4eb387e3">
<span class="c-button__label"> <span class="c-button__loader"></span>
<span class="c-button__label-text ">
Read More
</span>
</span> </a> </div>
</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="699cd4eb38b93">
<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="699cd4eb388c5">
<a class="c-link c-segment__image-container" aria-label="Visit: https://www.helsingborg.se" href="https://www.helsingborg.se" target="_top" data-uid="699cd4eb3898c">
<!-- image.blade.php -->
<figure class="c-image c-segment__image" data-uid="699cd4eb38919">
<div
class="c-image__image-wrapper"
>
<img
loading="lazy"
class="c-image__image"
src="https://picsum.photos/seed/3/1400"
alt=""
></div> </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="699cd4eb38b4e">
<div class="c-card__paint-container">
<!-- 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="699cd4eb38a9c">
<!-- group.blade.php -->
<div class="c-group u-width--100 c-group--vertical" data-uid="699cd4eb38a69">
<!-- 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="699cd4eb38a34">
<a class="c-link" href="https://www.helsingborg.se" target="_top" data-uid="699cd4eb389fd">
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="699cd4eb38acc">
<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" href="https://www.helsingborg.se" target="_top" aria-label="Read More" data-uid="699cd4eb38b0b">
<span class="c-button__label"> <span class="c-button__loader"></span>
<span class="c-button__label-text ">
Read More
</span>
</span> </a> </div>
</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 | - | False will use default buttons, otherwise pass a string of the value of data-js-slider-buttons |
| 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. |