j1-template 2023.1.0 → 2023.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (200) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/themes/j1/layouts/content_generator_collection.html +2 -3
  3. data/assets/data/banner.html +8 -6
  4. data/assets/data/masonry.html +263 -73
  5. data/assets/data/slick.html +155 -59
  6. data/assets/error_pages/HTTP204.html +1 -1
  7. data/assets/error_pages/HTTP400.html +1 -1
  8. data/assets/error_pages/HTTP401.html +1 -1
  9. data/assets/error_pages/HTTP403.html +1 -1
  10. data/assets/error_pages/HTTP404.html +1 -1
  11. data/assets/error_pages/HTTP444.html +1 -1
  12. data/assets/error_pages/HTTP445.html +1 -1
  13. data/assets/error_pages/HTTP446.html +1 -1
  14. data/assets/error_pages/HTTP447.html +1 -1
  15. data/assets/error_pages/HTTP448.html +1 -1
  16. data/assets/error_pages/HTTP500.html +1 -1
  17. data/assets/error_pages/HTTP501.html +1 -1
  18. data/assets/error_pages/HTTP502.html +1 -1
  19. data/assets/error_pages/HTTP503.html +1 -1
  20. data/assets/themes/j1/adapter/js/masonry.js +9 -1
  21. data/assets/themes/j1/adapter/js/slick.js +239 -134
  22. data/assets/themes/j1/core/css/themes/unolight/bootstrap.css +247 -0
  23. data/assets/themes/j1/core/css/themes/unolight/bootstrap.min.css +1 -1
  24. data/assets/themes/j1/core/js/template.js +55 -57
  25. data/assets/themes/j1/core/js/template.min.js +6 -6
  26. data/assets/themes/j1/core/js/template.min.js.map +1 -1
  27. data/assets/themes/j1/modules/masonry/css/theme/uno.css +1 -1
  28. data/assets/themes/j1/modules/masonry/css/theme/uno.min.css +1 -1
  29. data/assets/themes/j1/modules/slick/lightbox/README.md +6 -1
  30. data/assets/themes/j1/modules/slick/lightbox/css/theme/uno.css +36 -0
  31. data/assets/themes/j1/modules/slick/lightbox/css/theme/uno.min.css +15 -0
  32. data/assets/themes/j1/modules/slick/lightbox/js/slick-lightbox.js +1 -1
  33. data/assets/themes/j1/modules/slick/slider/css/theme/uno.css +173 -137
  34. data/assets/themes/j1/modules/slick/slider/css/theme/uno.min.css +1 -1
  35. data/assets/themes/j1/modules/slick/slider/js/slick.js +2970 -2233
  36. data/assets/themes/j1/modules/translator/css/translator.css +3 -19
  37. data/assets/themes/j1/modules/translator/css/translator.min.css +1 -1
  38. data/lib/j1/version.rb +1 -1
  39. data/lib/starter_web/Gemfile +2 -2
  40. data/lib/starter_web/README.md +5 -5
  41. data/lib/starter_web/_config.yml +25 -1
  42. data/lib/starter_web/_data/blocks/banner.yml +45 -46
  43. data/lib/starter_web/_data/blocks/panel.yml +9 -9
  44. data/lib/starter_web/_data/layouts/home.yml +39 -21
  45. data/lib/starter_web/_data/modules/defaults/slick.yml +2 -2
  46. data/lib/starter_web/_data/modules/masonry.yml +154 -41
  47. data/lib/starter_web/_data/modules/navigator_menu.yml +45 -4
  48. data/lib/starter_web/_data/modules/scroller.yml +1 -1
  49. data/lib/starter_web/_data/modules/slick.yml +260 -54
  50. data/lib/starter_web/_data/puma/config.rb +10 -0
  51. data/lib/starter_web/_data/resources.yml +1 -0
  52. data/lib/starter_web/_data/templates/feed.xml +1 -1
  53. data/lib/starter_web/_includes/attributes.asciidoc +24 -0
  54. data/lib/starter_web/_includes/custom/static/readme +1 -1
  55. data/lib/starter_web/_includes/custom/templates/collection_panel.html +131 -0
  56. data/lib/starter_web/_includes/custom/templates/custom_header.html +98 -76
  57. data/lib/starter_web/_includes/custom/templates/people_panel.html +144 -0
  58. data/lib/starter_web/_includes/custom/templates/readme +1 -1
  59. data/lib/starter_web/_plugins/asciidoctor/carousel-block.rb +1 -1
  60. data/lib/starter_web/_plugins/asciidoctor/gallery-block.rb +1 -1
  61. data/lib/starter_web/_plugins/asciidoctor/gist-block.rb +1 -1
  62. data/lib/starter_web/_plugins/asciidoctor/lightbox-block.rb +1 -1
  63. data/lib/starter_web/_plugins/asciidoctor/masonry-block.rb +1 -1
  64. data/lib/starter_web/_plugins/asciidoctor/masterslider-block.rb +1 -1
  65. data/lib/starter_web/_plugins/asciidoctor/mdil-icon-inline.rb +10 -0
  66. data/lib/starter_web/_plugins/asciidoctor/placeholder-inline.rb +44 -0
  67. data/lib/starter_web/_plugins/asciidoctor/slick-block.rb +1 -1
  68. data/lib/starter_web/_plugins/index/lunr.rb +1 -1
  69. data/lib/starter_web/assets/images/collections/people/diana-petersen.jpg +0 -0
  70. data/lib/starter_web/assets/images/collections/people/larry-parker.jpg +0 -0
  71. data/lib/starter_web/assets/images/collections/people/parveen-anand.jpg +0 -0
  72. data/lib/starter_web/assets/images/modules/attics/1920x1280/kelly-sikkemal.jpg +0 -0
  73. data/lib/starter_web/assets/images/modules/attics/1920x1280/kira-auf-der-heide.jpg +0 -0
  74. data/lib/starter_web/assets/images/modules/gallery/old_times/image_02.jpg +0 -0
  75. data/lib/starter_web/collections/_biography/a-life-in-questions.adoc +5 -5
  76. data/lib/starter_web/collections/_biography/becoming.adoc +5 -5
  77. data/lib/starter_web/collections/_biography/born-to-run.adoc +5 -5
  78. data/lib/starter_web/collections/_biography/forty-autumns.adoc +5 -5
  79. data/lib/starter_web/collections/_biography/not-dead-yet.adoc +5 -6
  80. data/lib/starter_web/collections/_biography/princess-diarist-the.adoc +5 -5
  81. data/lib/starter_web/collections/_biography/when-breath-becomes-air.adoc +6 -7
  82. data/lib/starter_web/collections/_fantasy/harry-potter-deathly-hallows.adoc +14 -4
  83. data/lib/starter_web/collections/_fantasy/harry-potter-philosophers-stone.adoc +13 -3
  84. data/lib/starter_web/collections/_fantasy/mistborn-trilogy.adoc +11 -3
  85. data/lib/starter_web/collections/_fantasy/ready-player-one.adoc +15 -3
  86. data/lib/starter_web/collections/_fantasy/sword-of-destiny.adoc +11 -3
  87. data/lib/starter_web/collections/_fantasy/terry-pratchet-diary-2017.adoc +11 -3
  88. data/lib/starter_web/collections/_people/diana-petersen.adoc +167 -0
  89. data/lib/starter_web/collections/_people/larry-parker.adoc +167 -0
  90. data/lib/starter_web/collections/_people/parveen-anand.adoc +167 -0
  91. data/lib/starter_web/collections/_portfolio/branding.adoc +97 -0
  92. data/lib/starter_web/collections/_portfolio/graphic_design.adoc +97 -0
  93. data/lib/starter_web/collections/_portfolio/identity.adoc +99 -0
  94. data/lib/starter_web/collections/_portfolio/illustration.adoc +101 -0
  95. data/lib/starter_web/collections/_portfolio/photography.adoc +100 -0
  96. data/lib/starter_web/collections/_portfolio/web_design.adoc +109 -0
  97. data/lib/starter_web/collections/_romance/breath-of-snow-and-ashes-a.adoc +12 -3
  98. data/lib/starter_web/collections/_romance/dressmaker-the.adoc +10 -3
  99. data/lib/starter_web/collections/_romance/fiery-cross-the.adoc +13 -3
  100. data/lib/starter_web/collections/_romance/it-ends-with-us.adoc +11 -3
  101. data/lib/starter_web/collections/_romance/outlander-novel.adoc +12 -3
  102. data/lib/starter_web/collections/_romance/virgins-outlander-short-story.adoc +16 -4
  103. data/lib/starter_web/collections/posts/public/featured/_posts/2021-01-01-about-cookies.adoc +1 -1
  104. data/lib/starter_web/collections/posts/public/featured/_posts/2021-02-01-static-site-generators.adoc +2 -2
  105. data/lib/starter_web/collections/posts/public/featured/_posts/_includes/attributes.asciidoc +2 -2
  106. data/lib/starter_web/collections/posts/public/series/_posts/2022-08-01-organize-your-life.adoc +4 -4
  107. data/lib/starter_web/collections/posts/public/series/_posts/2022-08-02-organize-your-life.adoc +4 -4
  108. data/lib/starter_web/collections/posts/public/series/_posts/2022-08-03-organize-your-life.adoc +4 -4
  109. data/lib/starter_web/collections/posts/public/series/_posts/2022-09-01-organize-your-life.adoc +4 -4
  110. data/lib/starter_web/collections/posts/public/series/_posts/2022-09-02-organize-your-life.adoc +4 -4
  111. data/lib/starter_web/index.html +129 -129
  112. data/lib/starter_web/package.json +1 -1
  113. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/documentation.adoc +1 -1
  114. data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/multi.adoc +1 -1
  115. data/lib/starter_web/pages/public/learn/bookshelf/article_previewer/viewer_all_books.adoc +107 -0
  116. data/lib/starter_web/pages/public/{bookshelf → learn/bookshelf}/article_previewer/viewer_biography.adoc +21 -12
  117. data/lib/starter_web/pages/public/{bookshelf → learn/bookshelf}/article_previewer/viewer_fantasy.adoc +11 -6
  118. data/lib/starter_web/pages/public/{bookshelf → learn/bookshelf}/article_previewer/viewer_romance.adoc +11 -5
  119. data/lib/starter_web/pages/public/learn/roundtrip/_includes/attributes.asciidoc +2 -2
  120. data/lib/starter_web/pages/public/learn/roundtrip/present_images.adoc +53 -4
  121. data/lib/starter_web/pages/public/learn/roundtrip/responsive_tables.adoc +1 -1
  122. data/lib/starter_web/pages/public/plans/plans.adoc +25 -12
  123. data/lib/starter_web/pages/public/previewer/preview_bootstrap_theme.adoc +54 -82
  124. data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
  125. data/lib/starter_web/utilsrv/package.json +1 -1
  126. metadata +59 -79
  127. data/assets/data/masonry.4.html +0 -213
  128. data/assets/themes/j1/adapter/js/slick.3.js +0 -365
  129. data/lib/starter_web/assets/images/collections/blog/wikipedia/columbia-river.1200x400.jpg +0 -0
  130. data/lib/starter_web/assets/images/collections/blog/wikipedia/minneapolis.1200x400.jpg +0 -0
  131. data/lib/starter_web/assets/images/collections/blog/wikipedia/narcise-snake-pits.1200x400.jpg +0 -0
  132. data/lib/starter_web/assets/images/parsa/customers/200x150/img1.png +0 -0
  133. data/lib/starter_web/assets/images/parsa/customers/200x150/img2.png +0 -0
  134. data/lib/starter_web/assets/images/parsa/customers/200x150/img3.png +0 -0
  135. data/lib/starter_web/assets/images/parsa/customers/200x150/img4.png +0 -0
  136. data/lib/starter_web/assets/images/parsa/customers/200x150/img5.png +0 -0
  137. data/lib/starter_web/assets/images/parsa/customers/200x150/img6.png +0 -0
  138. data/lib/starter_web/assets/images/parsa/customers/200x150/img7.png +0 -0
  139. data/lib/starter_web/assets/images/parsa/customers/200x150/img8.png +0 -0
  140. data/lib/starter_web/assets/images/parsa/customers/200x150/img9.png +0 -0
  141. data/lib/starter_web/assets/images/parsa/customers/client-1.png +0 -0
  142. data/lib/starter_web/assets/images/parsa/customers/client-2.png +0 -0
  143. data/lib/starter_web/assets/images/parsa/customers/client-3.png +0 -0
  144. data/lib/starter_web/assets/images/parsa/customers/client-4.png +0 -0
  145. data/lib/starter_web/assets/images/parsa/customers/client-5.png +0 -0
  146. data/lib/starter_web/assets/images/parsa/customers/client-6.png +0 -0
  147. data/lib/starter_web/assets/images/parsa/customers/client-7.png +0 -0
  148. data/lib/starter_web/assets/images/parsa/icons/favicon.ico +0 -0
  149. data/lib/starter_web/assets/images/parsa/icons/icon.png +0 -0
  150. data/lib/starter_web/assets/images/parsa/icons/icon.svg +0 -152
  151. data/lib/starter_web/assets/images/parsa/icons/logo.svg +0 -172
  152. data/lib/starter_web/assets/images/parsa/masthead/19-02-_2023_09-05-46.jpg +0 -0
  153. data/lib/starter_web/assets/images/parsa/masthead/banner-img.png +0 -0
  154. data/lib/starter_web/assets/images/parsa/pages/1920x1280/author.jpg +0 -0
  155. data/lib/starter_web/assets/images/parsa/pages/1920x1280/contact.jpg +0 -0
  156. data/lib/starter_web/assets/images/parsa/pages/author.jpg +0 -0
  157. data/lib/starter_web/assets/images/parsa/pages/contact.jpg +0 -0
  158. data/lib/starter_web/assets/images/parsa/partners/scalable/facebook.svg +0 -34
  159. data/lib/starter_web/assets/images/parsa/partners/scalable/google.svg +0 -35
  160. data/lib/starter_web/assets/images/parsa/partners/scalable/ibm.svg +0 -24
  161. data/lib/starter_web/assets/images/parsa/partners/scalable/microsoft.svg +0 -42
  162. data/lib/starter_web/assets/images/parsa/posts/1280x1024/post-img.jpg +0 -0
  163. data/lib/starter_web/assets/images/parsa/posts/1280x1024/post-single.jpg +0 -0
  164. data/lib/starter_web/assets/images/parsa/promo/home/screenshot.jpg +0 -0
  165. data/lib/starter_web/pages/public/previewer/preview_masonry.adoc +0 -361
  166. data/lib/starter_web/pages/public/previewer/preview_slick_slider.adoc +0 -375
  167. /data/lib/starter_web/assets/images/{parsa → collections}/portfolio/1.jpg +0 -0
  168. /data/lib/starter_web/assets/images/{parsa → collections}/portfolio/2.jpg +0 -0
  169. /data/lib/starter_web/assets/images/{parsa → collections}/portfolio/3.jpg +0 -0
  170. /data/lib/starter_web/assets/images/{parsa → collections}/portfolio/4.jpg +0 -0
  171. /data/lib/starter_web/assets/images/{parsa → collections}/portfolio/5.jpg +0 -0
  172. /data/lib/starter_web/assets/images/{parsa → collections}/portfolio/6.jpg +0 -0
  173. /data/lib/starter_web/assets/images/{parsa/icons → icons/controls}/close-icon.svg +0 -0
  174. /data/lib/starter_web/assets/images/{parsa/icons → icons/controls}/up.svg +0 -0
  175. /data/lib/starter_web/assets/images/{collections/blog → posts}/featured/dynamic-web-access.png +0 -0
  176. /data/lib/starter_web/assets/images/{collections/blog → posts}/featured/jamstack-generators.png +0 -0
  177. /data/lib/starter_web/assets/images/{collections/blog → posts}/featured/jekyll.1200x400.png +0 -0
  178. /data/lib/starter_web/assets/images/{collections/blog → posts}/featured/jekyll.png +0 -0
  179. /data/lib/starter_web/assets/images/{parsa/posts → posts}/featured/post-1.jpg +0 -0
  180. /data/lib/starter_web/assets/images/{parsa/posts → posts}/featured/post-2.jpg +0 -0
  181. /data/lib/starter_web/assets/images/{parsa/posts → posts}/featured/post-3.jpg +0 -0
  182. /data/lib/starter_web/assets/images/{parsa/posts → posts}/featured/post-4.jpg +0 -0
  183. /data/lib/starter_web/assets/images/{parsa/posts → posts}/featured/post-5.jpg +0 -0
  184. /data/lib/starter_web/assets/images/{collections/blog → posts}/featured/static-web-access.png +0 -0
  185. /data/lib/starter_web/assets/images/{parsa/posts → posts}/natural_food/post-1.jpg +0 -0
  186. /data/lib/starter_web/assets/images/{parsa/posts → posts}/natural_food/post-10.jpg +0 -0
  187. /data/lib/starter_web/assets/images/{parsa/posts → posts}/natural_food/post-11.jpg +0 -0
  188. /data/lib/starter_web/assets/images/{parsa/posts → posts}/natural_food/post-12.jpg +0 -0
  189. /data/lib/starter_web/assets/images/{parsa/posts → posts}/natural_food/post-13.jpg +0 -0
  190. /data/lib/starter_web/assets/images/{parsa/posts → posts}/natural_food/post-2.jpg +0 -0
  191. /data/lib/starter_web/assets/images/{parsa/posts → posts}/natural_food/post-3.jpg +0 -0
  192. /data/lib/starter_web/assets/images/{parsa/posts → posts}/natural_food/post-4.jpg +0 -0
  193. /data/lib/starter_web/assets/images/{parsa/posts → posts}/natural_food/post-5.jpg +0 -0
  194. /data/lib/starter_web/assets/images/{parsa/posts → posts}/natural_food/post-6.jpg +0 -0
  195. /data/lib/starter_web/assets/images/{parsa/posts → posts}/natural_food/post-7.jpg +0 -0
  196. /data/lib/starter_web/assets/images/{parsa/posts → posts}/natural_food/post-8.jpg +0 -0
  197. /data/lib/starter_web/assets/images/{parsa/posts → posts}/natural_food/post-9.jpg +0 -0
  198. /data/lib/starter_web/assets/images/{parsa/posts → posts}/post-img.jpg +0 -0
  199. /data/lib/starter_web/assets/images/{parsa/posts → posts}/post-single.jpg +0 -0
  200. /data/lib/starter_web/pages/public/{bookshelf → learn/bookshelf}/jekyll_collections.adoc +0 -0
@@ -1,375 +0,0 @@
1
- ---
2
- title: J1 Slick
3
- tagline: Slider Previews
4
- date: 2023-03-02 00:00:00
5
- description: >
6
- Slick slider is a popular jQuery plugin for creating responsive and fully
7
- customizable sliders on websites created by J1. It allows developers to easily
8
- create beautiful and dynamic carousels that can display images, videos, or any
9
- other type of content in a visually appealing way.
10
-
11
- categories: [ Previewer ]
12
- tags: [ Slick, Slider, Example ]
13
-
14
- comments: false
15
- fab_menu_id: open_toc
16
- scrollbar: false
17
- regenerate: false
18
- permalink: /pages/public/previewer/slick/
19
-
20
-
21
- resources: [ clipboard, lightbox, rouge, slick ]
22
- resource_options:
23
- - attic:
24
- padding_top: 600
25
- slides:
26
- - url: /assets/images/pages/roundtrip/images-1920x1280-bw.jpg
27
- alt: Photo by Ricardo Gomez Angel on Unsplash
28
- badge:
29
- type: unsplash
30
- author: Ricardo Gomez Angel
31
- href: https://unsplash.com/@ripato/portfolio
32
- ---
33
-
34
- // Page Initializer
35
- // =============================================================================
36
- // Enable the Liquid Preprocessor
37
- :page-liquid:
38
-
39
- // Set (local) page attributes here
40
- // -----------------------------------------------------------------------------
41
- // :page--attr: <attr-value>
42
- :images-dir: {imagesdir}/pages/roundtrip/100_present_images
43
-
44
- // Load Liquid procedures
45
- // -----------------------------------------------------------------------------
46
- {% capture load_attributes %}themes/{{site.template.name}}/procedures/global/attributes_loader.proc{%endcapture%}
47
-
48
- // Load page attributes
49
- // -----------------------------------------------------------------------------
50
- {% include {{load_attributes}} scope="none" %}
51
-
52
- // Page content
53
- // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
54
- [role="dropcap"]
55
- Slick slider is a popular jQuery plugin for creating responsive and fully
56
- customizable sliders on websites created by J1. It allows developers to easily
57
- create beautiful and dynamic carousels that can display images, videos, or any
58
- other type of content in a visually appealing way.
59
-
60
- The plugin is designed to be lightweight, fast, and easy to use, making it a
61
- popular choice for all web developers. It has many features, including
62
- multiple navigation options, lazy loading, or autoplay. Slick sliders are
63
- compatible with all modern browsers and devices, making it a great choice to
64
- create a responsive and mobile-friendly website.
65
-
66
- [role="mb-4"]
67
- The slider for J1 Template is a *best friend* for all web programmers because
68
- of its flexibility, a rich set of callbacks and simple configuration to make
69
- carousels as individual and powerful as possible. Find by the following examples
70
- what Slick sliders can do.
71
-
72
- // Include sub-documents (if any)
73
- // -----------------------------------------------------------------------------
74
- == General Features
75
-
76
- Slick sliders are using various tools and frameworks, such as Bootstrap, jQuery,
77
- and pure CSS. Slick offers a wide range of customization options, such as slide
78
- transitions, autoplay, navigation controls to create a visually appealing and
79
- interactive user experience.
80
-
81
- [role="mb-4"]
82
- * Carousels are fully responsive for configurable screen sizes
83
- * Separate slider option settings per breakpoint
84
- * Uses CSS3 if available for a browser, fully functional if not
85
- * Swipe enabled. Or disabled, if prefered
86
- * Desktop mouse dragging
87
- * Infinite looping and Autoplay
88
- * Fully accessible with arrow key and dots navigation
89
- * Add, remove, filter and unfilter slides
90
- * Rich set of callbacks to enable individual behaviour of sliders
91
-
92
-
93
- == Post Slider
94
-
95
- A Post Slider for J1 Template is a pre-defined carousel type to display news
96
- articles on a webpage. It is a popular way to showcase a selection of posts
97
- visually appealingly and can be useful for highlighting important or *featured*
98
- content for your post articles.
99
-
100
- [role="mb-4"]
101
- Post sliders pull content from a specific category/group. All Carousels for
102
- posts display the post category, the post title, the author information and
103
- date. All Slick sliders for the J1 Theme can be easily customized in various
104
- ways, such as changing the number of posts displayed, the slider speed, or
105
- the navigation options like *Arrows* and *Dots*.
106
-
107
- .Asciidoc configuration
108
- [source, config, role="noclip mb-3"]
109
- ----
110
- slick::post_slider[]
111
- ----
112
-
113
- .Post Silder + Autoplay + Arrows (responsive)
114
- slick::post_slider[role="mb-4"]
115
-
116
- .Configuration settings (YAML)
117
- [source, yaml, role="noclip mb-4"]
118
- ----
119
- # ------------------------------------------------------------------------------
120
- # POST slider
121
- #
122
- - slider:
123
- enabled: true
124
-
125
- id: post_slider
126
- type: post
127
- group: Life
128
-
129
- # ----------------------------------------------------------------------------
130
- # Slider options
131
- #
132
- options:
133
- autoplay: true
134
- slidesToShow: 3
135
- slidesToScroll: 1
136
- arrows: true
137
- dots: false
138
- responsive: true
139
-
140
- # ----------------------------------------------------------------------------
141
- # Reponsive options
142
- #
143
- responsive:
144
- - breakpoint:
145
- settings:
146
- breakOn: 1024
147
- slidesToShow: 2
148
- slidesToScroll: 2
149
- - breakpoint:
150
- settings:
151
- breakOn: 600
152
- slidesToShow: 1
153
- slidesToScroll: 1
154
- dots: true
155
- - breakpoint:
156
- settings:
157
- breakOn: 480
158
- slidesToShow: 1
159
- slidesToScroll: 1
160
-
161
- ----
162
-
163
- [role="mb-4"]
164
- Posts sliders typically used on the homepage of a website, within blog posts
165
- or articles, or on dedicated archive or category pages. They can increase
166
- user engagement and keep visitors on a website for longer by presenting
167
- content dynamically and visually appealingly.
168
-
169
-
170
- == Example Slider
171
-
172
- Responsive sliders are carousels designed to adapt and resize automatically
173
- to fit different screen sizes and devices, such as desktops, laptops, tablets,
174
- and smartphones. They are created using responsive design techniques, allowing
175
- web developers to create a single slider that can be optimized for various
176
- devices without needing separate versions or code.
177
-
178
- [role="mb-4"]
179
- Responsive Slick sliders can be useful for ensuring that content is displayed
180
- correctly and consistently across different devices and for providing an
181
- optimal user experience for all visitors to a website. They use techniques
182
- such as fluid grid layouts, flexible images, and media queries to adjust the
183
- slider size and layout based on the screen size and orientation of the device.
184
-
185
- .Asciidoc configuration
186
- [source, config, role="noclip mb-2"]
187
- ----
188
- slick::example_slider_arrows_dots[role="mb-5"]
189
- ----
190
-
191
- .Example Silder using Arrows + Dots (responsive)
192
- slick::example_slider_arrows_dots[role="mb-5"]
193
-
194
- .Configuration settings (YAML)
195
- [source, yaml, role="noclip mb-4"]
196
- ----
197
- # ------------------------------------------------------------------------------
198
- # EXAMPLE slider 1
199
- #
200
- - slider:
201
- enabled: true
202
-
203
- id: example_slider_arrows_dots
204
- type: example
205
-
206
- # ----------------------------------------------------------------------------
207
- # Slider options
208
- #
209
- options:
210
- arrows: true
211
- dots: true
212
- speed: 300
213
- autoplay: false
214
- slidesToShow: 3
215
- slidesToScroll: 1
216
- responsive: true
217
-
218
- # ----------------------------------------------------------------------------
219
- # Reponsive options
220
- #
221
- responsive:
222
- - breakpoint:
223
- settings:
224
- breakOn: 1024
225
- slidesToShow: 2
226
- slidesToScroll: 2
227
- - breakpoint:
228
- settings:
229
- breakOn: 600
230
- slidesToShow: 1
231
- slidesToScroll: 1
232
- - breakpoint:
233
- settings:
234
- breakOn: 480
235
- slidesToShow: 1
236
- slidesToScroll: 1
237
- ----
238
-
239
-
240
- == Image Sliders
241
-
242
- An image slider, also known as a slideshow, is a graphical user interface
243
- element commonly used in web design and development to showcase a series of
244
- images or visual content dynamically and interactively.
245
-
246
- === Simple Image Slider
247
-
248
- [role="mb-4"]
249
- An image slider typically consists of a container with images and a navigation
250
- system, including buttons, arrows, or dots that allow users to move back and
251
- forth between images or select a specific image. Image sliders can also include
252
- animation effects, such as fade-in or slide-in transitions between images, to
253
- make the presentation more engaging and visually appealing.
254
-
255
- .Simple Slider + Arrows + Dots
256
- slick::image_slider[role="mb-5"]
257
-
258
- .Configuration settings (YAML)
259
- [source, yaml, role="noclip mb-4"]
260
- ----
261
- # ------------------------------------------------------------------------------
262
- # IMAGE slider
263
- #
264
- - slider:
265
- enabled: true
266
-
267
- id: image_slider
268
- type: image
269
- image_base_path: /assets/images/modules/gallery/mega_cities
270
- image_styles: img-fluid img-object--cover g-height-300
271
-
272
- # ----------------------------------------------------------------------------
273
- # Lightbox options
274
- #
275
- lightbox:
276
- enabled: false
277
-
278
- # ----------------------------------------------------------------------------
279
- # Slider options
280
- #
281
- options:
282
- arrows: true
283
- dots: true
284
- speed: 300
285
- autoplay: false
286
- slidesToShow: 2
287
- slidesToScroll: 2
288
- responsive: true
289
-
290
- # ----------------------------------------------------------------------------
291
- # Reponsive options
292
- #
293
- responsive:
294
- - breakpoint:
295
- settings:
296
- breakOn: 1024
297
- slidesToShow: 2
298
- slidesToScroll: 2
299
- - breakpoint:
300
- settings:
301
- breakOn: 800
302
- slidesToShow: 1
303
- slidesToScroll: 1
304
- - breakpoint:
305
- settings:
306
- breakOn: 480
307
- dots: false
308
- slidesToShow: 1
309
- slidesToScroll: 1
310
-
311
- # ----------------------------------------------------------------------------
312
- # Slides
313
- #
314
- slides:
315
-
316
- - slide: # slide 1
317
- title: Jin Mao Tower Shanghai
318
- image: denys-nevozhai-1_b.jpg
319
-
320
- - slide: # slide 2
321
- title: Sunset over Taipei City
322
- image: thomas-tucker_b.jpg
323
-
324
- ...
325
- ----
326
-
327
- [role="mb-5"]
328
- Image sliders are commonly used in website headers, landing pages, galleries,
329
- and product showcases to draw attention to specific content or to provide an
330
- overview of a collection of images.
331
-
332
-
333
- === Image Slider + Lightbox
334
-
335
- [role="mb-4"]
336
- A Lightbox is, in general, a helper which displays enlarged, almost
337
- screen-filling versions of images (or videos) while dimming the remainder
338
- of the page. The technique, introduced by Lightbox2, gained widespread
339
- popularity thanks to its simple style. The term lightbox has been employed
340
- since then for Javascript libraries to support such functionality.
341
-
342
- .Slider + Arrows + Dots + Lightbox (responsive)
343
- slick::image_slider_lightbox[role="mb-5"]
344
-
345
- The Lighbox used for Slick sliders is _Slick-Lighbox_, an addon package
346
- build-in the J1 Module for Slick. The Lighbox is autoatically configured and
347
- fired on all images of a slider if enabled:
348
-
349
- .Configuration settings (YAML)
350
- [source, yaml, role="noclip mb-4"]
351
- ----
352
- # ------------------------------------------------------------------------------
353
- # IMAGE slider + Lightbox
354
- #
355
- - slider:
356
- enabled: true
357
-
358
- id: image_slider_lightbox
359
- type: image
360
- image_base_path: /assets/images/modules/gallery/mega_cities
361
- styles: img-fluid img-object--cover g-height-300
362
-
363
- # ----------------------------------------------------------------------------
364
- # Lightbox options
365
- #
366
- lightbox:
367
- enabled: true
368
- src: src
369
- itemSelector: .card img
370
-
371
- ...
372
- ----
373
-
374
- NOTE: For image sliders, the lightbox properties `src` and `itemSelector` are
375
- to be configured for every instance the lightbox should be applied.