larva modules: hero-image-story

Available Variants

prototype
Lazy loaded image
1958 – 2021 Prince Dead At 57
hero-image-story README

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

hero-image-story Twig The markup file.
<div class="hero-image-story-module // {{ wrapper_classes }}">
	{% include "@larva/objects/o-figure/o-figure.twig" with o_figure %}
	<div class="stories-outer {{ stories_outer_classes }}">
		{% for item in stories %}
			{% include "@larva/modules/story/story.twig" with item %}
		{% endfor %}
	</div>
</div>
hero-image-story JSON The data object for this pattern.
{
	"wrapper_classes": "lrv-u-padding-lr-150@mobile-max",
	"stories_outer_classes": "lrv-a-grid lrv-a-cols3@tablet lrv-a-children-border-horizontal lrv-a-children-border-vertical@mobile-max lrv-u-padding-tb-150 lrv-u-padding-tb-00@mobile-max",
	"o_figure": {
		"c_figcaption": {
			"c_figcaption_classes": "lrv-u-color-white lrv-a-glue@tablet lrv-a-glue-parent@mobile-max lrv-u-flex lrv-u-flex-direction-column lrv-a-glue--b-0 lrv-a-glue--l-0 lrv-u-width-20p lrv-u-width-100p@mobile-max lrv-u-align-items-center",
			"c_figcaption_caption_markup": "1958 – 2021",
			"c_figcaption_caption_classes": "u-background-white@mobile-max lrv-a-glue@mobile-max lrv-a-glue--b-unset@mobile-max lrv-a-glue--t-0 lrv-a-glue--l-0 lrv-u-transform-translateY-n50p lrv-u-font-family-secondary lrv-u-font-size-20 u-line-height-18 u-letter-spacing-012 lrv-u-border-t-5 lrv-u-border-b-1 lrv-u-padding-tb-050 lrv-u-padding-lr-125",
			"c_figcaption_credit_text": "Prince Dead At 57",
			"c_figcaption_credit_text_markup": "",
			"c_figcaption_credit_classes": "lrv-a-font-primary-xl lrv-u-padding-tb-125@mobile-max lrv-u-border-b-1@mobile-max lrv-u-text-align-center@tablet lrv-u-text-transform-uppercase lrv-u-font-family-secondary",
			"c_figcaption_inner": false,
			"c_figcaption_inner_classes": ""
		},
		"c_lazy_image": {
			"c_lazy_image_classes": "lrv-a-wrapper-100vw@mobile-max",
			"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": "https://picsum.photos/1000/1000",
			"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": "lrv-a-glue-parent@tablet",
		"o_figure_link_classes": "lrv-a-unstyle-link ",
		"o_figure_figcaption_outer": false,
		"o_figure_figcaption_outer_classes": ""
	},
	"stories": [
		{
			"story_classes": "lrv-a-grid-item lrv-u-padding-t-125@mobile-max lrv-u-border-l-00@mobile-max",
			"story_nav_classes": "lrv-u-font-size-12 lrv-u-font-family-body lrv-u-justify-content-center@tablet",
			"story_nav_layout_classes": "lrv-u-flex lrv-u-align-items-center lrv-a-space-children-horizontal lrv-a-space-children--2 lrv-u-margin-t-075",
			"story_grid_classes": "",
			"story_grid_primary_classes": "lrv-a-hidden@tablet lrv-u-margin-b-150@mobile-max",
			"story_grid_secondary_classes": "lrv-a-span2 lrv-u-color-brand-primary:hover lrv-u-padding-lr-1 lrv-u-padding-lr-2@desktop-xl lrv-u-text-align-center@tablet",
			"story_links_classes": "lrv-u-justify-content-center@tablet lrv-u-margin-b-00",
			"c_span": false,
			"c_link": false,
			"c_link_bottom": false,
			"c_link_bottom_wrapper_classes": " lrv-u-justify-content-center",
			"c_title": {
				"c_title_classes": "lrv-a-font-primary-xs",
				"c_title_tag_text": "",
				"c_title_id_attr": "title-of-a-story",
				"c_title_text": "‘A Momentous Weekend’: LACMA’s High-Stakes Collectors Committee Event Raises $2.4 M.",
				"c_title_markup": "",
				"c_title_link_classes": "lrv-a-unstyle-link lrv-u-color-brand-primary:hover",
				"c_title_url": "#"
			},
			"c_dek": false,
			"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",
				"c_lazy_image_height_attr": "",
				"c_lazy_image_width_attr": "",
				"c_lazy_image_in_initial_viewport": false,
				"c_lazy_image_decoding_attr": "async"
			},
			"c_tagline_author": {
				"c_tagline_classes": "lrv-u-margin-l-050",
				"c_tagline_text": false,
				"c_tagline_markup": "Staff Writer"
			},
			"c_timestamp": false,
			"article_kicker": {
				"article_kicker_classes": "",
				"article_kicker_text": "Article Kicker",
				"article_kicker_url": "#",
				"article_kicker_link_classes": ""
			},
			"c_tagline_author_wrapper_classes": "lrv-u-text-transform-uppercase lrv-u-font-size-12 lrv-u-line-height-copy u-letter-spacing-011"
		},
		{
			"story_classes": "lrv-a-grid-item lrv-u-padding-t-125@mobile-max lrv-u-border-l-00@mobile-max",
			"story_nav_classes": "lrv-u-font-size-12 lrv-u-font-family-body lrv-u-justify-content-center@tablet",
			"story_nav_layout_classes": "lrv-u-flex lrv-u-align-items-center lrv-a-space-children-horizontal lrv-a-space-children--2 lrv-u-margin-t-075",
			"story_grid_classes": "",
			"story_grid_primary_classes": "lrv-a-hidden@tablet lrv-u-margin-b-150@mobile-max",
			"story_grid_secondary_classes": "lrv-a-span2 lrv-u-color-brand-primary:hover lrv-u-padding-lr-1 lrv-u-padding-lr-2@desktop-xl lrv-u-text-align-center@tablet",
			"story_links_classes": "lrv-u-justify-content-center@tablet lrv-u-margin-b-00",
			"c_span": false,
			"c_link": false,
			"c_link_bottom": false,
			"c_link_bottom_wrapper_classes": " lrv-u-justify-content-center",
			"c_title": {
				"c_title_classes": "lrv-a-font-primary-xs",
				"c_title_tag_text": "",
				"c_title_id_attr": "title-of-a-story",
				"c_title_text": "‘A Momentous Weekend’: LACMA’s High-Stakes Collectors Committee Event Raises $2.4 M.",
				"c_title_markup": "",
				"c_title_link_classes": "lrv-a-unstyle-link lrv-u-color-brand-primary:hover",
				"c_title_url": "#"
			},
			"c_dek": false,
			"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",
				"c_lazy_image_height_attr": "",
				"c_lazy_image_width_attr": "",
				"c_lazy_image_in_initial_viewport": false,
				"c_lazy_image_decoding_attr": "async"
			},
			"c_tagline_author": {
				"c_tagline_classes": "lrv-u-margin-l-050",
				"c_tagline_text": false,
				"c_tagline_markup": "Staff Writer"
			},
			"c_timestamp": false,
			"article_kicker": {
				"article_kicker_classes": "",
				"article_kicker_text": "Article Kicker",
				"article_kicker_url": "#",
				"article_kicker_link_classes": ""
			},
			"c_tagline_author_wrapper_classes": "lrv-u-text-transform-uppercase lrv-u-font-size-12 lrv-u-line-height-copy u-letter-spacing-011"
		},
		{
			"story_classes": "lrv-a-grid-item lrv-u-padding-t-125@mobile-max lrv-u-border-l-00@mobile-max",
			"story_nav_classes": "lrv-u-font-size-12 lrv-u-font-family-body lrv-u-justify-content-center@tablet",
			"story_nav_layout_classes": "lrv-u-flex lrv-u-align-items-center lrv-a-space-children-horizontal lrv-a-space-children--2 lrv-u-margin-t-075",
			"story_grid_classes": "",
			"story_grid_primary_classes": "lrv-a-hidden@tablet lrv-u-margin-b-150@mobile-max",
			"story_grid_secondary_classes": "lrv-a-span2 lrv-u-color-brand-primary:hover lrv-u-padding-lr-1 lrv-u-padding-lr-2@desktop-xl lrv-u-text-align-center@tablet",
			"story_links_classes": "lrv-u-justify-content-center@tablet lrv-u-margin-b-00",
			"c_span": false,
			"c_link": false,
			"c_link_bottom": false,
			"c_link_bottom_wrapper_classes": " lrv-u-justify-content-center",
			"c_title": {
				"c_title_classes": "lrv-a-font-primary-xs",
				"c_title_tag_text": "",
				"c_title_id_attr": "title-of-a-story",
				"c_title_text": "‘A Momentous Weekend’: LACMA’s High-Stakes Collectors Committee Event Raises $2.4 M.",
				"c_title_markup": "",
				"c_title_link_classes": "lrv-a-unstyle-link lrv-u-color-brand-primary:hover",
				"c_title_url": "#"
			},
			"c_dek": false,
			"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",
				"c_lazy_image_height_attr": "",
				"c_lazy_image_width_attr": "",
				"c_lazy_image_in_initial_viewport": false,
				"c_lazy_image_decoding_attr": "async"
			},
			"c_tagline_author": {
				"c_tagline_classes": "lrv-u-margin-l-050",
				"c_tagline_text": false,
				"c_tagline_markup": "Staff Writer"
			},
			"c_timestamp": false,
			"article_kicker": {
				"article_kicker_classes": "",
				"article_kicker_text": "Article Kicker",
				"article_kicker_url": "#",
				"article_kicker_link_classes": ""
			},
			"c_tagline_author_wrapper_classes": "lrv-u-text-transform-uppercase lrv-u-font-size-12 lrv-u-line-height-copy u-letter-spacing-011"
		}
	]
}