j1-template 2023.8.1 → 2023.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (29) hide show
  1. checksums.yaml +4 -4
  2. data/assets/themes/j1/adapter/js/j1.js +29 -11
  3. data/assets/themes/j1/adapter/js/translator.js +4 -2
  4. data/assets/themes/j1/core/css/themes/bootstrap/bootstrap.css +31 -26
  5. data/assets/themes/j1/core/css/themes/bootstrap/bootstrap.min.css +2 -2
  6. data/assets/themes/j1/core/css/themes/unodark/bootstrap.css +31 -26
  7. data/assets/themes/j1/core/css/themes/unodark/bootstrap.min.css +2 -2
  8. data/assets/themes/j1/core/css/themes/unolight/bootstrap.css +34 -29
  9. data/assets/themes/j1/core/css/themes/unolight/bootstrap.min.css +2 -2
  10. data/lib/j1/version.rb +1 -1
  11. data/lib/starter_web/Gemfile +2 -2
  12. data/lib/starter_web/README.md +5 -5
  13. data/lib/starter_web/_config.yml +1 -1
  14. data/lib/starter_web/_data/modules/justifiedGallery.yml +3 -3
  15. data/lib/starter_web/_data/templates/feed.xml +1 -1
  16. data/lib/starter_web/_plugins/index/lunr.rb +1 -1
  17. data/lib/starter_web/package.json +1 -1
  18. data/lib/starter_web/pages/public/learn/roundtrip/_includes/documents/themes_bootstrap.asciidoc +4 -1
  19. data/lib/starter_web/pages/public/learn/roundtrip/asciidoc_extensions.adoc +20 -6
  20. data/lib/starter_web/pages/public/learn/roundtrip/bootstrap_themes.adoc +4 -1
  21. data/lib/starter_web/pages/public/learn/roundtrip/icon_fonts.adoc +27 -12
  22. data/lib/starter_web/pages/public/learn/roundtrip/lunr_search.adoc +12 -4
  23. data/lib/starter_web/pages/public/learn/roundtrip/modal_extentions.adoc +4 -1
  24. data/lib/starter_web/pages/public/learn/roundtrip/present_images.adoc +512 -470
  25. data/lib/starter_web/pages/public/learn/roundtrip/present_videos.adoc +20 -6
  26. data/lib/starter_web/pages/public/learn/roundtrip/responsive_tables.adoc +4 -2
  27. data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
  28. data/lib/starter_web/utilsrv/package.json +1 -1
  29. metadata +2 -2
@@ -1,470 +1,512 @@
1
- ---
2
- title: Image
3
- title_extention: Lightboxes, Carousels, Sliders, and Galleries for J1 Template
4
- tagline: Present Images
5
-
6
- date: 2020-11-03
7
- #last_modified: 2023-01-01
8
-
9
- description: >
10
- J1 Template support valuable features to manage your image-based
11
- content using lightboxes, carousels, sliders, and galleries.
12
- The image modules of J1 Template offer a wide range of complex
13
- functionality based on powerful OpenSource libraries like
14
- Lightbox2, Master Slider, LightGallery, or JustifiedGallery
15
- for high-end, masonry-styled preview maps.
16
- keywords: >
17
- open source, free, template, jekyll, jekyllone, web,
18
- sites, static, jamstack, bootstrap,
19
- image, lightbox, carousel, slider, gallery,
20
- lightbox2, master slider, lightgallery, justifiedgallery
21
-
22
- categories: [ Roundtrip ]
23
- tags: [ Module, Carousel, Lightbox, Image, Slider, Slick ]
24
-
25
- image:
26
- path: /assets/images/modules/attics/1920x1280/quino-al-2.jpg
27
- width: 1920
28
- height: 1280
29
-
30
- regenerate: false
31
- permalink: /pages/public/learn/roundtrip/present_images/
32
-
33
- resources: [
34
- animate, clipboard, carousel, comments,
35
- justifiedGallery, lightbox, lightGallery,
36
- masterslider, rouge, slick
37
- ]
38
- resource_options:
39
- - attic:
40
- slides:
41
- - url: /assets/images/modules/attics/1920x1280/quino-al-2.jpg
42
- alt: Photo by Quino Al Angel on Unsplash
43
- badge:
44
- type: unsplash
45
- author: Quino Al Angel
46
- href: https://unsplash.com/@quinoal
47
- ---
48
-
49
- // Page Initializer
50
- // =============================================================================
51
- // Enable the Liquid Preprocessor
52
- :page-liquid:
53
-
54
- // Set (local) page attributes here
55
- // -----------------------------------------------------------------------------
56
- // :page--attr: <attr-value>
57
- :url-lightbox2--home: https://lokeshdhakar.com/projects/lightbox2/
58
- :url-lightbox2--github: https://github.com/lokesh/lightbox2/
59
-
60
- :url-justified-gallery--home: https://miromannino.github.io/Justified-Gallery/
61
- :url-justified-gallery--github: https://github.com/miromannino/Justified-Gallery/
62
-
63
- :url-j1-docs--carousel-module: https://jekyll.one/pages/public/manuals/modules/carousel/
64
- :url-j1-docs--lightbox-module: https://jekyll.one/pages/public/manuals/modules/lightbox/
65
- :url-j1-docs--masterslider-module: https://jekyll.one/pages/public/manuals/modules/masterslider/
66
-
67
- :url-j1-masterslider-previewer: https://jekyll.one/pages/public/tools/previewer/masterslider/
68
- :url-j1-slick-previewer: https://jekyll.one/pages/public/tools/previewer/slick/
69
-
70
- // Load Liquid procedures
71
- // -----------------------------------------------------------------------------
72
- {% capture load_attributes %}themes/{{site.template.name}}/procedures/global/attributes_loader.proc{%endcapture%}
73
-
74
- // Load page attributes
75
- // -----------------------------------------------------------------------------
76
- {% include {{load_attributes}} scope="all" %}
77
-
78
- // Page content
79
- // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
80
- [role="dropcap"]
81
- Welcome to the preview page focussing on the image module. This page shows
82
- all the valuable features of the J1 Template to manage your image-based
83
- content using lightboxes, carousels, sliders, and galleries. The image modules
84
- of J1 Template offer a wide range of complex functionality based on powerful
85
- OpenSource libraries like Lightbox2, Master Slider, LightGallery, or
86
- JustifiedGallery for high-end, masonry-styled preview maps.
87
-
88
- mdi:clock-time-five-outline[24px, md-gray mt-4 mr-2]
89
- *15-30 Minutes* to read
90
-
91
- // Include sub-documents (if any)
92
- // -----------------------------------------------------------------------------
93
- // [role="notranslate"]
94
- [role="mt-5"]
95
- == Lightbox blocks
96
-
97
- A lightbox is, in general, a helper which displays enlarged, almost
98
- screen-filling versions of images (or videos) while dimming the remainder
99
- of the page. The technique, introduced by Lightbox2, gained widespread
100
- popularity thanks to its simple style. The term lightbox has been employed
101
- since then for Javascript libraries to support such functionality.
102
-
103
- For the J1 Template, different lightboxes are available:
104
-
105
- * Lightbox2
106
- * LightGallery
107
- * Slick Lightbox (for Slick Carousels only)
108
-
109
- The *default* tool employed by J1 Template is Lightbox2, a Javascript library
110
- written by _Lokesh Dhakar_. For more complex use cases, like a thumbnail
111
- gallery preview or video support, *LightGallery* can be used alternatively.
112
-
113
- NOTE: The name LightGallery implies a sort of a Gallery, but the library is a
114
- _lightbox_, and provides more functionality on image-based data rather than
115
- enlarged displaying of images.
116
-
117
- All lightboxes are fully integrated to be used as a standalone module or
118
- used as helpers *under-the-hood* by modules focussing on image-data like
119
- gallerys or carousels.
120
-
121
- TIP: For details of the default lightbox of J1 Template, see the documentation
122
- under the link:{url-j1-docs--lightbox-module}[Lightbox module, {browser-window--new}].
123
-
124
- [role="mt-4"]
125
- === Lightbox examples
126
-
127
- [role="mb-4"]
128
- Find below an example of using the lightbox used for standalone images.
129
- See how single (individual) images are linked.
130
-
131
- .Lightbox for standalone images
132
- lightbox::example-standalone[ 800, {data-images-standalone}, role="mb-4" ]
133
-
134
- [role="mb-4"]
135
- The J1 lightbox module supports image groups as well. Click on the image
136
- group below to see how a group of images is managed.
137
-
138
- .Lightbox for grouped images
139
- lightbox::example-group[ 395, {data-images-group}, group, role="mb-4 wm-800" ]
140
-
141
- [role="mt-4"]
142
- === LightGallery example
143
-
144
- LightGallery provides more complex functions on image data. The module
145
- supports a gallery-style thumbnail preview plus image resizing, a download
146
- dialog, sharing provider support, and more helpful. Check what
147
- LightGallery can do this by the following example.
148
-
149
- gallery::jg_old_times[ role="mb-4 wm-800" ]
150
-
151
-
152
- [role="mt-5"]
153
- == J1 Carousel
154
-
155
- J1 Carousel is based on OWL Carousel V1 in the latest (and unfortunately
156
- last) version of 1.3.3. OWL Carousel is a clean and neat _jQuery_ slider
157
- plugin for creating fully responsive and touch-enabled carousel sliders.
158
-
159
- ////
160
- NOTE: OWL Carousel V1 is no longer available on the Internet; for an
161
- unknown reason. Anyway, the J1 Template is using this version of OWL
162
- Carousel is a build-in carousel module because the software does an excellent
163
- job, is based on an MIT license with no issues using them for private and
164
- business use. And offers a lot of great features!
165
- ////
166
-
167
- [role="mt-4"]
168
- === Simple Text Carousel
169
-
170
- [role="mb-4"]
171
- A slider or carousel is typically used for displaying images. Still, the
172
- implementation for the J1 Template supports a lot more sources to be
173
- displayed as a slide show: simple text, for example.
174
-
175
- .Text Carousel
176
- carousel::demo_text_carousel[role="mb-4"]
177
-
178
- Important statements or topics can be placed, e.g., on top of an article or
179
- a paragraph, to give them better visibility. In one line, you can present
180
- many facts to know animated for the reader's attention within a single
181
- line. No much space is needed!
182
-
183
- [role="mt-4"]
184
- === Parallax Text Carousel
185
-
186
- [role="mb-4"]
187
- A more eye-minded type of text-based slide show is a parallax text slider. If
188
- you want to emphasize your statements focussing the meaning, this kind of a
189
- slide show may be interesting. Image-based slide shows may draw off the
190
- reader's attention from the text, therefore a pure text-based presentation
191
- maybe the better choice.
192
-
193
- .Parallax Text
194
- carousel::demo_text_carousel_parallax[role="mb-4"]
195
-
196
- Parallax text shows can be placed as banners on a page. For text shows,
197
- different animations are available. Internally, J1 Template uses some of
198
- the great CSS styles offered by _animate.css_.
199
-
200
- TIP: Have a look a https://daneden.github.io/animate.css/[Dan Eden's home page, {browser-window--new}]
201
- to see all the possible dynamic styles you can create based on pure CSS.
202
- Some of them are implemented for the J1 Carousel for animation. See the
203
- documentation for the
204
- link:{url-j1-docs--carousel-module}[Carousel module, {browser-window--new}]
205
- for more details.
206
-
207
- [role="mt-4"]
208
- === Simple Image Carousel
209
-
210
- Carousels are mostly used for pictures data to animate the images as a series.
211
- Find with the following some examples of how to use a carousel for your image
212
- data.
213
-
214
- A simple image show is useful, for example, as an animated (or not animated)
215
- banner presenting exciting things about your site or the products offered.
216
-
217
- .Image Carousel
218
- carousel::demo_simple[role="mb-4"]
219
-
220
- [role="mt-4"]
221
- === Carousel + Caption + Lightbox
222
-
223
- Carousels are used for an exceptionally compact form of image galleries.
224
- This example shows some pictures having individual caption text and supports
225
- a lightbox to enlarge images full size. For the example below, an almost simple
226
- lightbox is used: Lightbox2; or short: lightbox.
227
-
228
- .Image Carousel + Lightbox
229
- carousel::demo_cats[role="mb-3"]
230
-
231
- The J1 module lightbox is a simple Lightbox but offers a bunch of impressive
232
- features for displaying images. For example, the lightbox can display all
233
- images (of a carousel) as a group. If one picture is opened in the lightbox,
234
- others are browsed by easy-to-use control buttons.
235
-
236
- [role="mt-4"]
237
- === One Slide Carousel + Lightbox
238
-
239
- The build-in Carousel carousel supports multiple and single image shows.
240
- Here you find an example of a single image slide show with controls enabled
241
- to browse all images back and forth. An indicator below the slider shows how
242
- many images the show contains.
243
-
244
- .One Slide Carousel
245
- carousel::demo_oneslide[role="mb-4"]
246
-
247
- [role="mt-5"]
248
- == J1 Slick Carousel
249
-
250
- [role="mb-4"]
251
- _Slick_ is a popular jQuery plugin for creating responsive and fully
252
- customizable carousels. It allows developers to easily create beautiful
253
- and dynamic carousels that can display images, videos, or any other type
254
- of content in a visually appealing way. The plugin is designed to be
255
- lightweight, fast, and easy to use, making it a popular choice for all web
256
- developers. It has many features, including multiple navigation options,
257
- lazy loading, or autoplay. Slick carousels are compatible with all modern
258
- browsers and devices, making it a great choice to create a responsive and
259
- mobile-friendly website.
260
-
261
- [role="mt-4"]
262
- === Image Carousel
263
-
264
- [role="mb-4"]
265
- An _Slick_ image carousel typically consists of a container with images and
266
- a navigation system, including buttons, arrows, or dots that allow users to
267
- move back and forth between images or select a specific image. Image carousels
268
- can also include animation effects, such as fade-in or slide-in transitions
269
- between images, to make the presentation more engaging and visually appealing.
270
-
271
- .Carousel + Arrows + Dots + Captions + Lightbox
272
- slick::image_carousel_full[role="mb-5"]
273
-
274
- [role="mt-4"]
275
- === Carousel from Collections
276
-
277
- [role="mb-4"]
278
- A carousel from a collection for J1 Template is a *pre-defined* carousel
279
- type to display collection *articles* on a webpage as a carousel. Collection
280
- carousels pull content from a specific *collection*. All Carousels
281
- for collections display the article image and a link to the article as a
282
- caption. All Slick carousels for the J1 Template can be easily customized in
283
- various ways, such as changing the slider speed, or the navigation options
284
- like *Arrows* and *Dots*.
285
-
286
- .Collection Biography + Arrows + Dots + Gutters
287
- slick::collection_carousel_biography[role="mb-5"]
288
-
289
- [role="mt-4"]
290
- Carousel from Posts
291
-
292
- A Carousel from posts for J1 Template is a *pre-defined* carousel type to
293
- display post articles on a webpage. It is a popular way to showcase a
294
- selection of post articles visually appealingly and can be useful for
295
- highlighting important or *featured* content for your posts content.
296
-
297
- [role="mb-4"]
298
- Post carousels pull news articles from a specific *group*. All Carousels for
299
- posts display the post category, the title, the author information and
300
- date. All Slick carousels for the J1 Template can be easily customized in
301
- various ways, such as changing the number of posts displayed, the slider
302
- speed, or the navigation options like *Arrows* and *Dots*.
303
-
304
- .Asciidoc configuration
305
- [source, config, role="noclip mb-3"]
306
- ----
307
- slick::post_carousel_featured[]
308
- ----
309
-
310
- .Post Carousel (Featured Posts)
311
- slick::post_carousel_featured[role="mb-4"]
312
-
313
- [role="mt-4"]
314
- === More about Slick Carousels
315
-
316
- [role="mb-4"]
317
- If you're interested to learn more about _Slick_, go previewer page
318
- link:{url-j1-slick-previewer}[Slick Previewer, {browser-window--new}],
319
-
320
-
321
- [#masterSlider]
322
- [role="mt-5"]
323
- == J1 Master Slider
324
-
325
- The Javascript tool _Master Slider_ is a 3rd party plugin fully integrated
326
- into the J1 Template by the module `masterslider`. J1 Template uses the
327
- *free* version of Master Slider (MS Lite). The Lite version does *not* support
328
- all features: the functionality of *filters*, *layouts* are limited and no
329
- *overlay* techniques are supported by the MS Lite version.
330
-
331
- // WARNING: The Master Slider (MS Lite and Pro version) is a so-called _jQuery_
332
- // Plugin. _jQuery_ can simplify Javascript code a lot but will slow-down
333
- // the runtime performance of the JS code. Expect for slower browsers and
334
- // platforms, like mobiles or tablets, initializing an MS Slider will take
335
- // a while to be finished.
336
-
337
- [role="mt-4"]
338
- [#carousel_versus_slider]
339
- === Carousel versus Slider
340
-
341
- Sliders and Carousels are focussing quite the same thing: presenting image data
342
- dynamically as an app. The features of Sliders go far beyond what simple
343
- Carousels can do: presenting image-based data as *slideshows*. Well-known
344
- Office Products to create *presentations* are _Microsoft Powerpoint_ or
345
- _Google Docs_. Modern sliders like _Master Slider_ provide similar features to
346
- present animated *shows* (presentations) based on digital image data combined
347
- with text elements, buttons, or overlay techniques, e.g., for images or
348
- other digital data sources.
349
-
350
- In short: Carousels are used to present images, and sliders are used to create
351
- complex image-based slideshows (presentations).
352
-
353
- TIP: For more details of the dimplementation of Master Slider of J1 Template, see
354
- find documentation at
355
- link:{url-j1-docs--masterslider-module}[Master Slider module, {browser-window--new}].
356
-
357
- [role="mt-4"]
358
- [#controls_filters_lightbox]
359
- === MS Slider using Controls + Filters + Lightbox
360
-
361
- The following slider uses the (CSS) filter feature of Master Slider.
362
- Filters can be used, for example, to *transform* the *style* of the images
363
- presented by a slider. In this example, the slider images are transformed
364
- from style *color* to *sepia*.
365
-
366
- WARNING: Lightbox support is only available for the MS Lite version of J1
367
- Theme. The product versions *MS Lite* and *MS Pro* does not support
368
- Lightboxes on sliders out-of-the-box.
369
-
370
- TIP: Click on the Lightbox symbol mdi:image-outline[18px, md-gray] in the
371
- slides to see the *colored* images configured for the slider.
372
-
373
- .Slider using Controls
374
- masterslider::ms_00001[role="mb-5"]
375
-
376
- [role="mt-4"]
377
- [#text_elements]
378
- === MS Slider using Text Elements (MSInfo)
379
-
380
- One of the major features of sliders is to present additional (animated)
381
- elements, like text data, connected to the images presented by a slider:
382
- the slideshow. MS Slider provides functions to combine images and text
383
- elements: the MSInfo element.
384
-
385
- .Slider using Text Elements
386
- masterslider::ms_00003[role="mb-5"]
387
-
388
- [role="mt-4"]
389
- [#thumb_images]
390
- === MS Slider using ThumbImages
391
-
392
- To give the users better control over a slideshow, sliders provide complex UI
393
- elements like *thumbs* placed side-by-side (left|right), at the top, or at
394
- the bottom of a slideshow. Find two examples to control a slideshow by
395
- *thumb images*.
396
-
397
- .Slider using ThumbImages
398
- masterslider::ms_00004[role="mb-5"]
399
-
400
- [role="mt-4"]
401
- [#thumb_info]
402
- === MS Slider using ThumbInfo
403
-
404
- To give the users better control over a slideshow, MS Slider provides
405
- complex UI elements like thumbs placed side-by-side (left|right), at the
406
- top, or at the bottom of a slideshow.
407
-
408
- .Slider using ThumbInfo
409
- masterslider::ms_00007[role="mb-5"]
410
-
411
- [role="mt-4"]
412
- [#partialview]
413
- === MS Slider using Layout partialview
414
-
415
- The following slider presents a slideshow that combines an MSInfo element
416
- at the bottom and the MS Layout `partialview`. A slideshow typically presents
417
- a larger number of slides. The layout `partialview` accompanies the active
418
- slide by their neighbors on the left and the right.
419
-
420
- .Slider using Layout partialview
421
- masterslider::ms_00009[role="mb-5"]
422
-
423
- [role="mt-4"]
424
- [#more_about_masterslider]
425
- === More about Master Slider
426
-
427
- If you're interested to learn more about MS Slider, go for the following
428
- documents:
429
-
430
- * MS Slider link:{url-j1-masterslider-previewer}[Previewer, {browser-window--new}]
431
- * MS Slider link:{url-j1-docs--masterslider-module}[Module documentation, {browser-window--new}]
432
-
433
- [role="mt-5"]
434
- == JustifiedGallery
435
-
436
- link:{url-justified-gallery--home}[JustifiedGallery, {browser-window--new}]
437
- is a great _jQuery_ Plugin to create responsive, infinite, and high-quality
438
- justified image galleries. J1 Template combines the Gallery with the lightboxes
439
- supported to enlarge the images of a gallery. See the gallery in action; and
440
- for sure, all that you see is even responsive. Change the size of your current
441
- browser window, by width or height to see what will happen!
442
-
443
- [role="mb-4"]
444
- Pictures you've made are typically not even in size. Images may have the
445
- same size (resolution), but some are orientated landscapes, or others
446
- may be portraits. For that reason, a more powerful gallery is needed to create
447
- so-called justified views. JustifiedGallery uses a so-called masonry grid
448
- layout. It works by placing elements in an optimal position based on available
449
- horizontal and vertical space. Sort of like mason fitting stones in a wall.
450
- You'll have seen it in use all over the Internet!
451
-
452
- .Masonry Grid Gallery
453
- gallery::jg_customizer[role="mb-5"]
454
-
455
- [role="mt-5"]
456
- == What next
457
-
458
- Hopefully, you've enjoyed exploring the possibilities J1 offers for managing
459
- and displaying digital image content. But much, much more can the J1 do for
460
- your web.
461
-
462
- The J1 Template support playing video on web pages by HTML5 Video, the new
463
- standard of HTML. HTML5 Video implements a pure HTML way to show video on
464
- the web. Modern browsers support the video tag `<video>` for the HTML5 video
465
- standard. The previous proprietary de facto standard software like Flash
466
- Player, Quicktime, or Silverlight is no longer needed as the Jekyll theme
467
- JekyllOne provides HTML5 Video support for local video content and from
468
- online sources on the Internet.
469
-
470
- Incredible? See the next example page link:{url-roundtrip--present-videos}[Present Videos].
1
+ ---
2
+ title: Image
3
+ title_extention: Lightboxes, Carousels, Sliders, and Galleries for J1 Template
4
+ tagline: Present Images
5
+
6
+ date: 2020-11-03
7
+ #last_modified: 2023-01-01
8
+
9
+ description: >
10
+ J1 Template support valuable features to manage your image-based
11
+ content using lightboxes, carousels, sliders, and galleries.
12
+ The image modules of J1 Template offer a wide range of complex
13
+ functionality based on powerful OpenSource libraries like
14
+ Lightbox2, Master Slider, LightGallery, or JustifiedGallery
15
+ for high-end, masonry-styled preview maps.
16
+ keywords: >
17
+ open source, free, template, jekyll, jekyllone, web,
18
+ sites, static, jamstack, bootstrap,
19
+ image, lightbox, carousel, slider, gallery,
20
+ lightbox2, master slider, lightgallery, justifiedgallery
21
+
22
+ categories: [ Roundtrip ]
23
+ tags: [ Module, Carousel, Lightbox, Image, Slider, Slick ]
24
+
25
+ image:
26
+ path: /assets/images/modules/attics/1920x1280/quino-al-2.jpg
27
+ width: 1920
28
+ height: 1280
29
+
30
+ regenerate: false
31
+ permalink: /pages/public/learn/roundtrip/present_images/
32
+
33
+ resources: [
34
+ animate, clipboard, carousel, comments,
35
+ justifiedGallery, lightbox, lightGallery,
36
+ masterslider, masonry, rouge, slick
37
+ ]
38
+ resource_options:
39
+ - attic:
40
+ slides:
41
+ - url: /assets/images/modules/attics/1920x1280/quino-al-2.jpg
42
+ alt: Photo by Quino Al Angel on Unsplash
43
+ badge:
44
+ type: unsplash
45
+ author: Quino Al Angel
46
+ href: https://unsplash.com/@quinoal
47
+ ---
48
+
49
+ // Page Initializer
50
+ // =============================================================================
51
+ // Enable the Liquid Preprocessor
52
+ :page-liquid:
53
+
54
+ // Set (local) page attributes here
55
+ // -----------------------------------------------------------------------------
56
+ // :page--attr: <attr-value>
57
+ :url-lightbox2--home: https://lokeshdhakar.com/projects/lightbox2/
58
+ :url-lightbox2--github: https://github.com/lokesh/lightbox2/
59
+
60
+ :url-justified-gallery--home: https://miromannino.github.io/Justified-Gallery/
61
+ :url-justified-gallery--github: https://github.com/miromannino/Justified-Gallery/
62
+
63
+ :url-j1-docs--carousel-module: https://jekyll.one/pages/public/manuals/modules/carousel/
64
+ :url-j1-docs--lightbox-module: https://jekyll.one/pages/public/manuals/modules/lightbox/
65
+ :url-j1-docs--masterslider-module: https://jekyll.one/pages/public/manuals/modules/masterslider/
66
+
67
+ :url-j1-masterslider-previewer: https://jekyll.one/pages/public/tools/previewer/masterslider/
68
+ :url-j1-slick-previewer: https://jekyll.one/pages/public/tools/previewer/slick/
69
+
70
+ // Load Liquid procedures
71
+ // -----------------------------------------------------------------------------
72
+ {% capture load_attributes %}themes/{{site.template.name}}/procedures/global/attributes_loader.proc{%endcapture%}
73
+
74
+ // Load page attributes
75
+ // -----------------------------------------------------------------------------
76
+ {% include {{load_attributes}} scope="all" %}
77
+
78
+ // Page content
79
+ // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
80
+ [role="dropcap"]
81
+ Welcome to the preview page focussing on image modules. This page shows
82
+ all the valuable features of the J1 Template to manage your image-based
83
+ content using lightboxes, carousels, sliders, grids, and galleries.
84
+
85
+ The image-related modules of the J1 Template offer a wide range of complex
86
+ functionality based on powerful Open Source libraries like Lightbox V2,
87
+ Slick Slider, Master Slider, or Masonry Grid and JustifiedGallery to create
88
+ masonry-styled preview maps.
89
+
90
+ mdi:clock-time-five-outline[24px, md-gray mt-4 mr-2]
91
+ *15-30 Minutes* to read
92
+
93
+ // Include sub-documents (if any)
94
+ // -----------------------------------------------------------------------------
95
+ // [role="notranslate"]
96
+ [role="mt-5"]
97
+ == Lightboxes
98
+
99
+ A Lightbox is a helper which displays enlarged, almost screen-filling versions
100
+ of images while dimming the remainder of the page. The technique, introduced
101
+ by Lightbox V2, gained widespread popularity thanks to its simple style. The
102
+ term *Lightbox* has been employed since then for Javascript libraries to
103
+ support such functionality.
104
+
105
+ For J1 Template, different lightbox modules are available:
106
+
107
+ * Lightbox V2 (default)
108
+ * LightGallery Lightbox (optional)
109
+ * Slick Lightbox (for Slick Carousels only)
110
+
111
+ The *default* tool employed by J1 Template is Lightbox V2, a Javascript
112
+ library written by _Lokesh Dhakar_. For more complex use cases, like a
113
+ thumbnail gallery preview or video support, *LightGallery* can be used
114
+ alternatively.
115
+
116
+ All Lightboxes are fully integrated to be used as standalone modules or
117
+ used as helpers *under-the-hood* by other modules focussing on image-data
118
+ like gallerys or carousels.
119
+
120
+ [TIP]
121
+ ====
122
+ For details of the default lightbox of J1 Template, see the documentation
123
+ under the link:{url-j1-docs--lightbox-module}[Lightbox module, {browser-window--new}].
124
+ ====
125
+
126
+ [role="mt-4"]
127
+ === Default Lightbox
128
+
129
+ [role="mb-4"]
130
+ Find below an example of using the rhe default lightbox used for standalone
131
+ images. See how single (individual) images are linked.
132
+
133
+ .Lightbox for standalone images
134
+ lightbox::example-standalone[ 800, {data-images-standalone}, role="mb-4" ]
135
+
136
+ [role="mb-4"]
137
+ The J1 lightbox module supports groups of images as well. Click on the image
138
+ group below to see how a group is managed.
139
+
140
+ .Lightbox for grouped images
141
+ lightbox::example-group[ 395, {data-images-group}, group, role="mb-4 wm-800" ]
142
+
143
+
144
+ [role="mt-5"]
145
+ === LightGallery
146
+
147
+ LightGallery provides more complex image data functions than the default
148
+ lightbox. The module supports a gallery-style thumbnail preview plus image
149
+ resizing, a download dialog, sharing provider support, and more helpful.
150
+
151
+ [NOTE]
152
+ ====
153
+ The name LightGallery implies a sort of a Gallery, but the library is a
154
+ _lightbox_, and provides enhannced functionality on image-based data rather
155
+ than enlarged displaying of images.
156
+ ====
157
+
158
+ Check what LightGallery can do this by the following example.
159
+
160
+ gallery::jg_old_times[]
161
+
162
+
163
+ [role="mt-5"]
164
+ == J1 Carousel
165
+
166
+ J1 Carousel is based on OWL Carousel V1 in the latest version. OWL Carousel
167
+ is a clean and neat _jQuery_ slider plugin for creating fully responsive and
168
+ touch-enabled carousel sliders.
169
+
170
+ [role="mt-4"]
171
+ === Simple Text Carousel
172
+
173
+ [role="mb-4"]
174
+ A slider or carousel is typically used for displaying images. Still, the
175
+ implementation for the J1 Template supports a lot more sources to be
176
+ displayed as a slide show: simple text, for example.
177
+
178
+ .Text Carousel
179
+ carousel::demo_text_carousel[role="mb-4"]
180
+
181
+ Important statements or topics can be placed, e.g., on top of an article or
182
+ a paragraph, to give them better visibility. In one line, you can present
183
+ many facts to know animated for the reader's attention within a single
184
+ line. No much space is needed!
185
+
186
+ [role="mt-4"]
187
+ === Parallax Text Carousel
188
+
189
+ [role="mb-4"]
190
+ A more eye-minded type of text-based slide show is a parallax text slider. If
191
+ you want to emphasize your statements focussing the meaning, this kind of a
192
+ slide show may be interesting. Image-based slide shows may draw off the
193
+ reader's attention from the text, therefore a pure text-based presentation
194
+ maybe the better choice.
195
+
196
+ .Parallax Text
197
+ carousel::demo_text_carousel_parallax[role="mb-4"]
198
+
199
+ Parallax text shows can be placed as banners on a page. For text shows,
200
+ different animations are available. Internally, J1 Template uses some of
201
+ the great CSS styles offered by _animate.css_.
202
+
203
+ [TIP]
204
+ ====
205
+ Have a look a https://daneden.github.io/animate.css/[Dan Eden's home page, {browser-window--new}]
206
+ to see all the possible dynamic styles you can create based on pure CSS.
207
+ Some of them are implemented for the J1 Carousel for animation. See the
208
+ documentation for the
209
+ link:{url-j1-docs--carousel-module}[Carousel module, {browser-window--new}]
210
+ for more details.
211
+ ====
212
+
213
+ [role="mt-4"]
214
+ === Simple Image Carousel
215
+
216
+ Carousels are mostly used for pictures data to animate the images as a series.
217
+ Find with the following some examples of how to use a carousel for your image
218
+ data.
219
+
220
+ A simple image show is useful, for example, as an animated (or not animated)
221
+ banner presenting exciting things about your site or the products offered.
222
+
223
+ .Image Carousel
224
+ carousel::demo_simple[role="mb-4"]
225
+
226
+ [role="mt-4"]
227
+ === Carousel + Caption + Lightbox
228
+
229
+ Carousels are used for an exceptionally compact form of image galleries.
230
+ This example shows some pictures having individual caption text and supports
231
+ a lightbox to enlarge images full size. For the example below, an almost simple
232
+ lightbox is used: Lightbox2; or short: lightbox.
233
+
234
+ .Image Carousel + Lightbox
235
+ carousel::demo_cats[role="mb-3"]
236
+
237
+ The J1 module lightbox is a simple Lightbox but offers a bunch of impressive
238
+ features for displaying images. For example, the lightbox can display all
239
+ images (of a carousel) as a group. If one picture is opened in the lightbox,
240
+ others are browsed by easy-to-use control buttons.
241
+
242
+ [role="mt-4"]
243
+ === One Slide Carousel + Lightbox
244
+
245
+ The build-in carousel supports multiple and single image shows. Here you find
246
+ an example of a single image slide show with controls enabled to browse all
247
+ images back and forth. An indicator below the slider shows how many images
248
+ the show contains.
249
+
250
+ .One Slide Carousel
251
+ carousel::demo_oneslide[role="mb-4"]
252
+
253
+ [role="mt-5"]
254
+ == J1 Slick Carousel
255
+
256
+ [role="mb-4"]
257
+ _Slick_ is a popular jQuery plugin for creating responsive and fully
258
+ customizable carousels. It allows developers to easily create beautiful
259
+ and dynamic carousels that can display images, videos, or any other type
260
+ of content in a visually appealing way.
261
+
262
+ The plugin is designed to be lightweight, fast, and easy to use, making it
263
+ a popular choice for all web developers. It has many features, including
264
+ multiple navigation options, lazy loading, or autoplay. Slick carousels are
265
+ compatible with all modern browsers and devices, making it a great choice to
266
+ create a responsive and mobile-friendly website.
267
+
268
+ All Slick carousels for the J1 Template can be easily customized in
269
+ various ways, such as changing the number of posts displayed, the slider
270
+ speed, or the navigation options like *Arrows* and *Dots*.
271
+
272
+ [role="mt-4"]
273
+ [[slick-image-carousel]]
274
+ === Image Carousel
275
+
276
+ [role="mb-4"]
277
+ An _Slick_ image carousel typically consists of a container with images and
278
+ a navigation system, including buttons, arrows, or dots that allow users to
279
+ move back and forth between images or select a specific image. Image carousels
280
+ can also include animation effects, such as fade-in or slide-in transitions
281
+ between images, to make the presentation more engaging and visually appealing.
282
+
283
+ .Carousel + Arrows + Dots + Captions + Lightbox
284
+ slick::image_carousel_full[]
285
+
286
+ [role="mt-4"]
287
+ === Carousel from Collections
288
+
289
+ [role="mb-4"]
290
+ A carousel from a collection for J1 Template is a *pre-defined* element
291
+ type to display *articles* from a Jekyll collection on a webpage. All
292
+ carousels for collections display the article image and a link to the article
293
+ as a caption.
294
+
295
+ .Collection Biography + Arrows + Dots + Gutters
296
+ slick::collection_carousel_biography[]
297
+
298
+ [role="mt-4"]
299
+ === Carousel from Posts
300
+
301
+ A Carousel from posts for J1 Template is a *pre-defined* carousel type to
302
+ display post articles on a webpage. It is a popular way to showcase a
303
+ selection of post articles visually appealingly and can be useful for
304
+ highlighting important or *featured* content for your posts content.
305
+
306
+ [role="mb-4"]
307
+ Post carousels pull news articles from a specific *group*. All Carousels for
308
+ posts display the post category, the title, the author information and
309
+ date.
310
+
311
+ .Asciidoc configuration
312
+ [source, config, role="noclip mb-3"]
313
+ ----
314
+ slick::post_carousel_featured[]
315
+ ----
316
+
317
+ .Post Carousel (Featured Posts)
318
+ slick::post_carousel_featured[]
319
+
320
+ [role="mt-4"]
321
+ === More about Slick Carousels
322
+
323
+ [role="mb-4"]
324
+ If you're interested to learn more about _Slick_, go previewer page
325
+ link:{url-j1-slick-previewer}[Slick Previewer, {browser-window--new}],
326
+
327
+
328
+ [role="mt-5"]
329
+ [[masterSlider]]
330
+ == J1 Master Slider
331
+
332
+ The Javascript library _Master Slider_ is a 3rd party plugin fully integrated
333
+ into the J1 Template by the module `masterslider`. J1 Template uses the *free*
334
+ version *MS Lite*. The free version of Master Slider does *not* support
335
+ all features: the functionality of *filters*, *layouts* are limited and no
336
+ *overlay* techniques are supported by MS Lite.
337
+
338
+ [role="mt-4"]
339
+ [[carousel_versus_slider]]
340
+ === Carousel versus Slider
341
+
342
+ Sliders and Carousels are focussing quite the same thing: presenting images
343
+ dynamically. The features of Sliders go far beyond what simple carousels can
344
+ do: presenting image-based data as slide *shows*.
345
+
346
+ Well-known Office Products to create *presentations* are Powerpoint from
347
+ _Microsoft_ or _Google Docs_. Modern sliders like _Master Slider_ provide
348
+ similar features to present animated presentations based on digital image
349
+ data combined with text elements, buttons, or overlay techniques for images
350
+ or other digital data sources.
351
+
352
+ In short: Carousels are used to present images, and sliders are used to create
353
+ complex image-based presentations.
354
+
355
+ [TIP]
356
+ ====
357
+ For more details of the dimplementation of Master Slider of J1 Template, see
358
+ find documentation at
359
+ link:{url-j1-docs--masterslider-module}[Master Slider module, {browser-window--new}].
360
+ ====
361
+
362
+ [role="mt-4"]
363
+ === Featured MS Slider
364
+
365
+ The following slider uses the (CSS) filter feature of Master Slider.
366
+ Filters can be used, for example, to *transform* the *style* of the images
367
+ presented by a slider. In this example, the slider images are transformed
368
+ from style *color* to *sepia*.
369
+
370
+ [WARNING]
371
+ ====
372
+ Lightbox support is only available for the MS Lite version of J1
373
+ Theme. The product versions *MS Lite* and *MS Pro* does not support
374
+ Lightboxes on sliders out-of-the-box.
375
+ ====
376
+
377
+ .Slider using Controls + Filters + Lightbox
378
+ masterslider::ms_00002[]
379
+
380
+ [role="mt-4"]
381
+ [TIP]
382
+ ====
383
+ Click on the Lightbox symbol mdi:image-outline[18px, md-gray] in the
384
+ slides to see the *colored* images configured for the slider.
385
+ ====
386
+
387
+ [role="mt-4"]
388
+ [[text_elements]]
389
+ === MS Slider using Text Elements
390
+
391
+ One of the major features of sliders is to present additional animated
392
+ elements, like text data, connected to the images presented by an slideshow.
393
+ MS Slider additionally provides functions to combine images and text by
394
+ so-called *MSInfo* blocks out-of-the-box.
395
+
396
+ .Slider using Images + Text
397
+ masterslider::ms_00003[]
398
+
399
+ [role="mt-4"]
400
+ [[thumb_images]]
401
+ === MS Slider using ThumbImages
402
+
403
+ To give the users better control over a slideshow, sliders provide complex UI
404
+ elements like *thumbs* placed side-by-side (left|right), at the top, or at
405
+ the bottom of a slideshow. Find two examples to control a slideshow by
406
+ *thumb images*.
407
+
408
+ .Slider using ThumbImages
409
+ masterslider::ms_00004[]
410
+
411
+ [role="mt-4"]
412
+ [[thumb_info]]
413
+ === MS Slider using ThumbInfo
414
+
415
+ To give the users better control over a slideshow, MS Slider provides
416
+ complex UI elements like thumbs placed side-by-side (left|right), at the
417
+ top, or at the bottom of a slideshow.
418
+
419
+ .Slider using ThumbInfo
420
+ masterslider::ms_00007[]
421
+
422
+ [role="mt-4"]
423
+ [[partialview]]
424
+ === MS Slider using Layout PartialView
425
+
426
+ The following slider presents a slideshow that combines an MSInfo element
427
+ at the bottom and the MS Layout `partialview`. A slideshow typically presents
428
+ a larger number of slides. The layout `partialview` accompanies the active
429
+ slide by their neighbors on the left and the right.
430
+
431
+ .Slider using PartialView
432
+ masterslider::ms_00009[]
433
+
434
+ [role="mt-4"]
435
+ [[more_about_masterslider]]
436
+ === More about Master Slider
437
+
438
+ If you're interested to learn more about MS Slider, go for the following
439
+ documents:
440
+
441
+ * MS Slider link:{url-j1-masterslider-previewer}[Previewer, {browser-window--new}]
442
+ * MS Slider link:{url-j1-docs--masterslider-module}[Module documentation, {browser-window--new}]
443
+
444
+
445
+ [role="mt-5"]
446
+ == J1 Masonry
447
+
448
+ J1 Masonry is based on the popular JavaScript library _Masonry_, enabling
449
+ the creation of responsive, dynamic grid layouts of *groups* of content
450
+ elements. It uses a unique algorithm to arrange elements vertically, then
451
+ horizontally in a responsive grid.
452
+
453
+ The module provides a flexible configuration to enabling developers to
454
+ customize the layout, adjust the column width, gutter size, and add
455
+ animations.
456
+
457
+ [role="mt-4"]
458
+ === Grid of Images
459
+
460
+ Bootstrap cards are a popular component of the Bootstrap front-end framework
461
+ that provides a flexible and customizable way to display content on a website.
462
+ Find an example below of how Bootstrap cards can be combined with the Masonry
463
+ module for a fully responsive image grid.
464
+
465
+ [TIP]
466
+ ====
467
+ Resize your browser window for the width to see the J1 Masonry module
468
+ in action.
469
+ ====
470
+
471
+ .Grid of Images
472
+ masonry::card_example[]
473
+
474
+
475
+ [role="mt-5"]
476
+ == JustifiedGallery
477
+
478
+ link:{url-justified-gallery--home}[JustifiedGallery, {browser-window--new}]
479
+ is a great _jQuery_ Plugin to create responsive, infinite, and high-quality
480
+ justified image galleries. J1 Template combines the Gallery with the lightboxes
481
+ supported to enlarge the images of a gallery. See the gallery in action; and
482
+ for sure, all that you see is even responsive. Change the size of your current
483
+ browser window, by width or height to see what will happen!
484
+
485
+ [role="mb-4"]
486
+ Pictures you've made are typically not even in size. Images may have the
487
+ same size (resolution), but some are orientated landscapes, or others
488
+ may be portraits. For that reason, a more powerful gallery is needed to create
489
+ so-called justified views. JustifiedGallery uses a so-called masonry grid
490
+ layout. It works by placing elements in an optimal position based on available
491
+ horizontal and vertical space. Sort of like mason fitting stones in a wall.
492
+ You'll have seen it in use all over the Internet!
493
+
494
+ .Masonry Grid Gallery
495
+ gallery::jg_customizer[]
496
+
497
+ [role="mt-5"]
498
+ == What next
499
+
500
+ Hopefully, you've enjoyed exploring the possibilities J1 offers for managing
501
+ and displaying digital image content. But much, much more can the J1 do for
502
+ your web.
503
+
504
+ The J1 Template support playing video on web pages by HTML5 Video, the new
505
+ standard of HTML. HTML5 Video implements a pure HTML way to show video on
506
+ the web. Modern browsers support the video tag `<video>` for the HTML5 video
507
+ standard. The previous proprietary de facto standard software like Flash
508
+ Player, Quicktime, or Silverlight is no longer needed as the Jekyll theme
509
+ JekyllOne provides HTML5 Video support for local video content and from
510
+ online sources on the Internet.
511
+
512
+ Incredible? See the next example page link:{url-roundtrip--present-videos}[Present Videos].