larva modules: linked-gallery
Available Variants
prototypelinked-gallery
README
This needs docs!
Create a README.md in the pattern's directory and add details about using this pattern in markdown.
linked-gallery
Twig The markup file.
<div class="linked-gallery // {{ linked_gallery_classes }}">
<div class="{{ linked_gallery_container_classes }}">
<a href="{{ linked_gallery_url }}" class="linked-gallery-thumbnails // {{ linked_gallery_thumbnails_classes }} ">
{% for item in linked_gallery_items %}
<div class="linked-gallery-thumbnail // {{ item['linked_gallery_thumbnail_classes'] }}">
{% if item['c_lazy_image'] %}
{% include "@larva/components/c-lazy-image/c-lazy-image.twig" with item['c_lazy_image'] %}
{% endif %}
{% if item['c_svg'] %}
{% include "@larva/components/c-svg/c-svg.twig" with item['c_svg'] %}
{% endif %}
</div>
{% endfor %}
</a>
{% if article_kicker %}
{% include "@larva/modules/article-kicker/article-kicker.twig" with article_kicker %}
{% endif %}
{% include "@larva/components/c-title/c-title.twig" with c_title %}
</div>
</div>
linked-gallery
JSON The data object for this pattern.
{
"linked_gallery_classes": "lrv-u-border-t-1 lrv-u-border-b-1",
"linked_gallery_container_classes": "lrv-u-border-t-1 lrv-u-margin-t-025 lrv-u-padding-tb-2@desktop lrv-u-padding-lr-125@desktop lrv-u-padding-lr-050@mobile-max lrv-u-padding-tb-125@mobile-max",
"linked_gallery_thumbnails_classes": "lrv-a-grid lrv-a-cols2@desktop lrv-u-position-relative lrv-u-margin-t-2@desktop",
"linked_gallery_items": [
{
"c_lazy_image": {
"c_lazy_image_classes": "lrv-u-margin-r-2@desktop lrv-u-padding-r-2@desktop ",
"c_lazy_image_link_url": false,
"c_lazy_image_link_classes": "lrv-a-unstyle-link",
"c_lazy_image_crop_class": "lrv-a-crop-3x2",
"c_lazy_image_crop_style_attr": false,
"c_lazy_image_link_tab_index_attr": false,
"c_lazy_image_alt_attr": "Lazy loaded image",
"c_lazy_image_src_url": "https://farm5.staticflickr.com/4078/5441060528_31db7838ba_z.jpg",
"c_lazy_image_placeholder_url": "data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==",
"c_lazy_image_srcset_attr": "https://farm5.staticflickr.com/4078/5441060528_31db7838ba_m.jpg 240w,https://farm5.staticflickr.com/4078/5441060528_31db7838ba_n.jpg 320w,https://farm5.staticflickr.com/4078/5441060528_31db7838ba.jpg 500w,https://farm5.staticflickr.com/4078/5441060528_31db7838ba_z.jpg 640w,https://farm5.staticflickr.com/4078/5441060528_31db7838ba_b.jpg 1024w",
"c_lazy_image_sizes_attr": "auto",
"c_lazy_image_img_classes": "lrv-u-background-color-grey-lightest lrv-u-width-100p lrv-u-display-block lrv-u-height-auto lrv-u-filter-grayscale-100",
"c_lazy_image_height_attr": "",
"c_lazy_image_width_attr": "",
"c_lazy_image_in_initial_viewport": false,
"c_lazy_image_decoding_attr": "async"
},
"article_kicker": {
"article_kicker_classes": "",
"article_kicker_text": "Article Kicker",
"article_kicker_url": "#",
"article_kicker_link_classes": ""
},
"c_svg": false,
"linked_gallery_thumbnail_classes": "lrv-u-display-none@mobile-max"
},
{
"c_lazy_image": {
"c_lazy_image_classes": "",
"c_lazy_image_link_url": false,
"c_lazy_image_link_classes": "lrv-a-unstyle-link",
"c_lazy_image_crop_class": "lrv-a-crop-3x2",
"c_lazy_image_crop_style_attr": false,
"c_lazy_image_link_tab_index_attr": false,
"c_lazy_image_alt_attr": "Lazy loaded image",
"c_lazy_image_src_url": "https://farm5.staticflickr.com/4078/5441060528_31db7838ba_z.jpg",
"c_lazy_image_placeholder_url": "data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==",
"c_lazy_image_srcset_attr": "https://farm5.staticflickr.com/4078/5441060528_31db7838ba_m.jpg 240w,https://farm5.staticflickr.com/4078/5441060528_31db7838ba_n.jpg 320w,https://farm5.staticflickr.com/4078/5441060528_31db7838ba.jpg 500w,https://farm5.staticflickr.com/4078/5441060528_31db7838ba_z.jpg 640w,https://farm5.staticflickr.com/4078/5441060528_31db7838ba_b.jpg 1024w",
"c_lazy_image_sizes_attr": "auto",
"c_lazy_image_img_classes": "lrv-u-background-color-grey-lightest lrv-u-width-100p lrv-u-display-block lrv-u-height-auto lrv-u-filter-grayscale-100",
"c_lazy_image_height_attr": "",
"c_lazy_image_width_attr": "",
"c_lazy_image_in_initial_viewport": false,
"c_lazy_image_decoding_attr": "async"
},
"article_kicker": {
"article_kicker_classes": "",
"article_kicker_text": "Article Kicker",
"article_kicker_url": "#",
"article_kicker_link_classes": ""
},
"c_svg": {
"c_svg_classes": "lrv-a-glue lrv-a-glue--r-0 lrv-u-display-none@desktop",
"c_svg_name": "brand-logo"
},
"linked_gallery_thumbnail_classes": "lrv-u-position-absolute@desktop lrv-u-width-38p@desktop lrv-u-top-n33@desktop lrv-a-glue@tablet lrv-u-transform-translateX-n50p@desktop lrv-u-left-50p@desktop lrv-u-text-align-center"
},
{
"c_lazy_image": {
"c_lazy_image_classes": "lrv-u-margin-l-2@desktop lrv-u-padding-l-2@desktop",
"c_lazy_image_link_url": false,
"c_lazy_image_link_classes": "lrv-a-unstyle-link",
"c_lazy_image_crop_class": "lrv-a-crop-3x2",
"c_lazy_image_crop_style_attr": false,
"c_lazy_image_link_tab_index_attr": false,
"c_lazy_image_alt_attr": "Lazy loaded image",
"c_lazy_image_src_url": "https://farm5.staticflickr.com/4078/5441060528_31db7838ba_z.jpg",
"c_lazy_image_placeholder_url": "data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==",
"c_lazy_image_srcset_attr": "https://farm5.staticflickr.com/4078/5441060528_31db7838ba_m.jpg 240w,https://farm5.staticflickr.com/4078/5441060528_31db7838ba_n.jpg 320w,https://farm5.staticflickr.com/4078/5441060528_31db7838ba.jpg 500w,https://farm5.staticflickr.com/4078/5441060528_31db7838ba_z.jpg 640w,https://farm5.staticflickr.com/4078/5441060528_31db7838ba_b.jpg 1024w",
"c_lazy_image_sizes_attr": "auto",
"c_lazy_image_img_classes": "lrv-u-background-color-grey-lightest lrv-u-width-100p lrv-u-display-block lrv-u-height-auto lrv-u-filter-grayscale-100",
"c_lazy_image_height_attr": "",
"c_lazy_image_width_attr": "",
"c_lazy_image_in_initial_viewport": false,
"c_lazy_image_decoding_attr": "async"
},
"article_kicker": {
"article_kicker_classes": "",
"article_kicker_text": "Article Kicker",
"article_kicker_url": "#",
"article_kicker_link_classes": ""
},
"c_svg": {
"c_svg_classes": "lrv-a-glue lrv-a-glue--r-0",
"c_svg_name": "brand-logo"
},
"linked_gallery_thumbnail_classes": "lrv-u-display-none@mobile-max"
}
],
"linked_gallery_url": "#",
"article_kicker": {
"article_kicker_classes": "lrv-u-text-align-center lrv-a-font-basic-xs lrv-u-margin-t-1@desktop lrv-u-text-transform-uppercase",
"article_kicker_text": "Photo Portfolio",
"article_kicker_url": "#",
"article_kicker_link_classes": "lrv-a-unstyle-link lrv-u-padding-b-050 lrv-u-border-b-1"
},
"c_title": {
"c_title_classes": "lrv-a-font-secondary-xl lrv-u-text-align-center lrv-u-margin-t-2@desktop lrv-u-margin-t-2@mobile-max lrv-u-text-transform-uppercase lrv-a-unstyle-inner-links",
"c_title_tag_text": "",
"c_title_id_attr": "title-of-a-story",
"c_title_text": "The work of brad elterman",
"c_title_markup": "",
"c_title_link_classes": "",
"c_title_url": ""
}
}