diff --git a/src/_includes/cards/carousel.html b/src/_includes/cards/carousel.html new file mode 100644 index 000000000..37a1d76a8 --- /dev/null +++ b/src/_includes/cards/carousel.html @@ -0,0 +1,44 @@ +{% assign limit = include.limit | default: 5 %} +{% assign offset = include.offset | default: 0 %} +
+
+

{{ include.title | default: 'Carousel' }}

+
+
+ +
+
\ No newline at end of file diff --git a/src/assets/scss/dashboard/_carousel.scss b/src/assets/scss/dashboard/_carousel.scss new file mode 100644 index 000000000..08232ad75 --- /dev/null +++ b/src/assets/scss/dashboard/_carousel.scss @@ -0,0 +1,9 @@ +.carousel-item-background:before { + content: ''; + background: rgba(0, 0, 0, .5); + position: absolute; + top: 0; + left: 0; + right: 0; + bottom: 0; +} \ No newline at end of file diff --git a/src/assets/scss/dashboard/dashboard.scss b/src/assets/scss/dashboard/dashboard.scss index 57224a42f..25ebfbae0 100644 --- a/src/assets/scss/dashboard/dashboard.scss +++ b/src/assets/scss/dashboard/dashboard.scss @@ -47,6 +47,7 @@ @import 'tag'; @import 'syntax'; @import 'infobox'; +@import 'carousel'; @import 'forms/custom-range'; @import 'forms/custom-selectgroup'; diff --git a/src/carousel.html b/src/carousel.html new file mode 100644 index 000000000..f4b7556b3 --- /dev/null +++ b/src/carousel.html @@ -0,0 +1,22 @@ +--- +title: Carousel +layout: default +menu: components.carousel +--- + +
+
+
+ {% include cards/carousel.html id="carousel-default" %} +
+
+ {% include cards/carousel.html id="carousel-indicators" title="Carousel with indicators" show-indicators=true offset=5 %} +
+
+ {% include cards/carousel.html id="carousel-controls" title="Carousel with controls" show-controls=true offset=10 %} +
+
+ {% include cards/carousel.html id="carousel-captions" title="Carousel with captions" show-captions=true show-controls=true offset=15 %} +
+
+
\ No newline at end of file diff --git a/src/gallery.html b/src/gallery.html index 84353721b..1c84dc3d7 100644 --- a/src/gallery.html +++ b/src/gallery.html @@ -31,7 +31,7 @@ menu: gallery {% assign user = site.data.users[forloop.index] %}
- Photo by {{ user.name }} {{ user.surname }} + Photo by {{ user.name }} {{ user.surname }}