larva modules: profile-gallery

Available Variants

prototype
profile-gallery README

This needs docs!
Create a README.md in the pattern's directory and add details about using this pattern in markdown.

profile-gallery Twig The markup file.
<div class="profile-gallery // {{ profile_gallery_classes }} ">
	{% if c_heading %}
		{% include "@larva/components/c-heading/c-heading.twig" with c_heading %}
	{% endif %}

	<div class="js-Flickity js-Flickity--profile js-Flickity--isContained js-Flickity--nav-top-right js-Flickity--bordered-buttons js-Flickity--isFreeScroll">
		{% for item in galleries %}
			<div class="js-Flickity-cell lrv-u-margin-lr-050 u-margin-lr-1@tablet">
				{% include "@larva/objects/o-figure/o-figure.twig" with item %}
			</div>
		{% endfor %}
	</div>
</div>
profile-gallery JSON The data object for this pattern.
{
	"profile_gallery_classes": "lrv-u-padding-tb-1",
	"c_heading": {
		"c_heading_classes": "lrv-u-font-family-secondary lrv-u-font-size-32 lrv-u-padding-b-1",
		"c_heading_id_attr": "section-heading",
		"c_heading_text": "Explore Their Gallery",
		"c_heading_url": "",
		"c_heading_link_classes": "",
		"c_heading_outer": false,
		"c_heading_outer_classes": "",
		"c_heading_is_primary_heading": false
	},
	"galleries": [
		{
			"c_figcaption": {
				"c_figcaption_classes": "lrv-u-flex lrv-u-flex-direction-column lrv-u-font-size-10 lrv-u-margin-t-050",
				"c_figcaption_caption_markup": "Protest art hangs at Hong Kong International Airport.",
				"c_figcaption_caption_classes": "lrv-u-margin-b-025",
				"c_figcaption_credit_text": "Courtesty Wong Ka Ying",
				"c_figcaption_credit_text_markup": "",
				"c_figcaption_credit_classes": "lrv-u-text-transform-uppercase lrv-u-color-grey-dark",
				"c_figcaption_inner": false,
				"c_figcaption_inner_classes": ""
			},
			"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-4x3",
				"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",
				"c_lazy_image_height_attr": "",
				"c_lazy_image_width_attr": "",
				"c_lazy_image_in_initial_viewport": false,
				"c_lazy_image_decoding_attr": "async"
			},
			"o_figure_link_tabindex_attr": "",
			"o_figure_link_target_attr": "_self",
			"o_figure_link_url": false,
			"o_figure_classes": "",
			"o_figure_link_classes": "lrv-a-unstyle-link ",
			"o_figure_figcaption_outer": false,
			"o_figure_figcaption_outer_classes": ""
		},
		{
			"c_figcaption": {
				"c_figcaption_classes": "lrv-u-flex lrv-u-flex-direction-column lrv-u-font-size-10 lrv-u-margin-t-050",
				"c_figcaption_caption_markup": "Protest art hangs at Hong Kong International Airport.",
				"c_figcaption_caption_classes": "lrv-u-margin-b-025",
				"c_figcaption_credit_text": "Courtesty Wong Ka Ying",
				"c_figcaption_credit_text_markup": "",
				"c_figcaption_credit_classes": "lrv-u-text-transform-uppercase lrv-u-color-grey-dark",
				"c_figcaption_inner": false,
				"c_figcaption_inner_classes": ""
			},
			"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-4x3",
				"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",
				"c_lazy_image_height_attr": "",
				"c_lazy_image_width_attr": "",
				"c_lazy_image_in_initial_viewport": false,
				"c_lazy_image_decoding_attr": "async"
			},
			"o_figure_link_tabindex_attr": "",
			"o_figure_link_target_attr": "_self",
			"o_figure_link_url": false,
			"o_figure_classes": "",
			"o_figure_link_classes": "lrv-a-unstyle-link ",
			"o_figure_figcaption_outer": false,
			"o_figure_figcaption_outer_classes": ""
		},
		{
			"c_figcaption": {
				"c_figcaption_classes": "lrv-u-flex lrv-u-flex-direction-column lrv-u-font-size-10 lrv-u-margin-t-050",
				"c_figcaption_caption_markup": "Protest art hangs at Hong Kong International Airport.",
				"c_figcaption_caption_classes": "lrv-u-margin-b-025",
				"c_figcaption_credit_text": "Courtesty Wong Ka Ying",
				"c_figcaption_credit_text_markup": "",
				"c_figcaption_credit_classes": "lrv-u-text-transform-uppercase lrv-u-color-grey-dark",
				"c_figcaption_inner": false,
				"c_figcaption_inner_classes": ""
			},
			"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-4x3",
				"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",
				"c_lazy_image_height_attr": "",
				"c_lazy_image_width_attr": "",
				"c_lazy_image_in_initial_viewport": false,
				"c_lazy_image_decoding_attr": "async"
			},
			"o_figure_link_tabindex_attr": "",
			"o_figure_link_target_attr": "_self",
			"o_figure_link_url": false,
			"o_figure_classes": "",
			"o_figure_link_classes": "lrv-a-unstyle-link ",
			"o_figure_figcaption_outer": false,
			"o_figure_figcaption_outer_classes": ""
		},
		{
			"c_figcaption": {
				"c_figcaption_classes": "lrv-u-flex lrv-u-flex-direction-column lrv-u-font-size-10 lrv-u-margin-t-050",
				"c_figcaption_caption_markup": "Protest art hangs at Hong Kong International Airport.",
				"c_figcaption_caption_classes": "lrv-u-margin-b-025",
				"c_figcaption_credit_text": "Courtesty Wong Ka Ying",
				"c_figcaption_credit_text_markup": "",
				"c_figcaption_credit_classes": "lrv-u-text-transform-uppercase lrv-u-color-grey-dark",
				"c_figcaption_inner": false,
				"c_figcaption_inner_classes": ""
			},
			"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-4x3",
				"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",
				"c_lazy_image_height_attr": "",
				"c_lazy_image_width_attr": "",
				"c_lazy_image_in_initial_viewport": false,
				"c_lazy_image_decoding_attr": "async"
			},
			"o_figure_link_tabindex_attr": "",
			"o_figure_link_target_attr": "_self",
			"o_figure_link_url": false,
			"o_figure_classes": "",
			"o_figure_link_classes": "lrv-a-unstyle-link ",
			"o_figure_figcaption_outer": false,
			"o_figure_figcaption_outer_classes": ""
		},
		{
			"c_figcaption": {
				"c_figcaption_classes": "lrv-u-flex lrv-u-flex-direction-column lrv-u-font-size-10 lrv-u-margin-t-050",
				"c_figcaption_caption_markup": "Protest art hangs at Hong Kong International Airport.",
				"c_figcaption_caption_classes": "lrv-u-margin-b-025",
				"c_figcaption_credit_text": "Courtesty Wong Ka Ying",
				"c_figcaption_credit_text_markup": "",
				"c_figcaption_credit_classes": "lrv-u-text-transform-uppercase lrv-u-color-grey-dark",
				"c_figcaption_inner": false,
				"c_figcaption_inner_classes": ""
			},
			"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-4x3",
				"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",
				"c_lazy_image_height_attr": "",
				"c_lazy_image_width_attr": "",
				"c_lazy_image_in_initial_viewport": false,
				"c_lazy_image_decoding_attr": "async"
			},
			"o_figure_link_tabindex_attr": "",
			"o_figure_link_target_attr": "_self",
			"o_figure_link_url": false,
			"o_figure_classes": "",
			"o_figure_link_classes": "lrv-a-unstyle-link ",
			"o_figure_figcaption_outer": false,
			"o_figure_figcaption_outer_classes": ""
		},
		{
			"c_figcaption": {
				"c_figcaption_classes": "lrv-u-flex lrv-u-flex-direction-column lrv-u-font-size-10 lrv-u-margin-t-050",
				"c_figcaption_caption_markup": "Protest art hangs at Hong Kong International Airport.",
				"c_figcaption_caption_classes": "lrv-u-margin-b-025",
				"c_figcaption_credit_text": "Courtesty Wong Ka Ying",
				"c_figcaption_credit_text_markup": "",
				"c_figcaption_credit_classes": "lrv-u-text-transform-uppercase lrv-u-color-grey-dark",
				"c_figcaption_inner": false,
				"c_figcaption_inner_classes": ""
			},
			"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-4x3",
				"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",
				"c_lazy_image_height_attr": "",
				"c_lazy_image_width_attr": "",
				"c_lazy_image_in_initial_viewport": false,
				"c_lazy_image_decoding_attr": "async"
			},
			"o_figure_link_tabindex_attr": "",
			"o_figure_link_target_attr": "_self",
			"o_figure_link_url": false,
			"o_figure_classes": "",
			"o_figure_link_classes": "lrv-a-unstyle-link ",
			"o_figure_figcaption_outer": false,
			"o_figure_figcaption_outer_classes": ""
		},
		{
			"c_figcaption": {
				"c_figcaption_classes": "lrv-u-flex lrv-u-flex-direction-column lrv-u-font-size-10 lrv-u-margin-t-050",
				"c_figcaption_caption_markup": "Protest art hangs at Hong Kong International Airport.",
				"c_figcaption_caption_classes": "lrv-u-margin-b-025",
				"c_figcaption_credit_text": "Courtesty Wong Ka Ying",
				"c_figcaption_credit_text_markup": "",
				"c_figcaption_credit_classes": "lrv-u-text-transform-uppercase lrv-u-color-grey-dark",
				"c_figcaption_inner": false,
				"c_figcaption_inner_classes": ""
			},
			"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-4x3",
				"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",
				"c_lazy_image_height_attr": "",
				"c_lazy_image_width_attr": "",
				"c_lazy_image_in_initial_viewport": false,
				"c_lazy_image_decoding_attr": "async"
			},
			"o_figure_link_tabindex_attr": "",
			"o_figure_link_target_attr": "_self",
			"o_figure_link_url": false,
			"o_figure_classes": "",
			"o_figure_link_classes": "lrv-a-unstyle-link ",
			"o_figure_figcaption_outer": false,
			"o_figure_figcaption_outer_classes": ""
		},
		{
			"c_figcaption": {
				"c_figcaption_classes": "lrv-u-flex lrv-u-flex-direction-column lrv-u-font-size-10 lrv-u-margin-t-050",
				"c_figcaption_caption_markup": "Protest art hangs at Hong Kong International Airport.",
				"c_figcaption_caption_classes": "lrv-u-margin-b-025",
				"c_figcaption_credit_text": "Courtesty Wong Ka Ying",
				"c_figcaption_credit_text_markup": "",
				"c_figcaption_credit_classes": "lrv-u-text-transform-uppercase lrv-u-color-grey-dark",
				"c_figcaption_inner": false,
				"c_figcaption_inner_classes": ""
			},
			"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-4x3",
				"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",
				"c_lazy_image_height_attr": "",
				"c_lazy_image_width_attr": "",
				"c_lazy_image_in_initial_viewport": false,
				"c_lazy_image_decoding_attr": "async"
			},
			"o_figure_link_tabindex_attr": "",
			"o_figure_link_target_attr": "_self",
			"o_figure_link_url": false,
			"o_figure_classes": "",
			"o_figure_link_classes": "lrv-a-unstyle-link ",
			"o_figure_figcaption_outer": false,
			"o_figure_figcaption_outer_classes": ""
		}
	]
}