larva modules: top-stories

Available Variants

prototype xl
top-stories README

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

top-stories Twig The markup file.
<div class="top-stories // {{ top_stories_classes }}">
	<div class="featured-story-item {{ featured_story_classes }}">
		{% include "@larva/modules/story/story.twig" with o_story_featured %}
	</div>
	<div class="story-items {{ story_items_classes }}">
		{% for item in stories %}
			<div class="story-item {{ story_item_classes }}">
				{% include "@larva/modules/story/story.twig" with item %}
			</div>
		{% endfor %}
	</div>
</div>
top-stories JSON The data object for this pattern.
{
	"o_story_featured": {
		"story_classes": "",
		"story_nav_classes": "lrv-a-font-body-m lrv-u-color-black lrv-u-text-transform-uppercase lrv-u-color-black  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-050",
		"story_grid_classes": "",
		"story_grid_primary_classes": "lrv-u-margin-r-00",
		"story_grid_secondary_classes": "lrv-u-flex lrv-u-flex-direction-column lrv-u-height-100p lrv-u-justify-content-center@tablet lrv-u-text-align-center@tablet",
		"story_links_classes": "lrv-u-justify-content-center@tablet lrv-u-transform-translateY-n50p u-z-index-middle-bottom lrv-u-position-relative lrv-u-margin-b-00@mobile-max",
		"c_span": {
			"modifier_class": "",
			"c_span_classes": "lrv-u-display-inline-block lrv-u-padding-a-050 lrv-u-background-color-white lrv-u-text-transform-uppercase lrv-a-font-basic-l lrv-u-display-inline-block",
			"c_span_text": "News",
			"c_span_url": "#",
			"c_span_link_classes": "lrv-u-color-white lrv-u-background-color-brand-primary lrv-u-line-height-normal lrv-u-padding-a-025 lrv-u-padding-lr-050 lrv-u-display-inline-block"
		},
		"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-l c-title lrv-u-display-block lrv-u-margin-b-050",
			"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": {
			"c_dek_classes": "lrv-a-font-secondary-xs lrv-u-margin-tb-050 lrv-u-letter-spacing-0006@tablet lrv-u-width-70p lrv-u-width-100p@mobile-max lrv-u-margin-lr-auto",
			"c_dek_markup": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation.",
			"c_dek_text": 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-color-black lrv-u-margin-l-050",
			"c_tagline_text": false,
			"c_tagline_markup": "Staff Writer"
		},
		"c_timestamp": false
	},
	"top_stories_classes": "lrv-u-flex lrv-u-flex-wrap-wrap lrv-u-margin-b-075",
	"featured_story_classes": "lrv-u-width-100p@mobile-max lrv-u-width-70p lrv-u-padding-r-125 lrv-u-padding-r-150@desktop lrv-u-padding-r-00@mobile-max lrv-u-padding-b-2@mobile-max lrv-u-margin-b-2@mobile-max u-border-b-1@mobile-max",
	"story_items_classes": "lrv-u-width-30p lrv-u-width-100p@mobile-max lrv-a-children-border-vertical lrv-a-space-children lrv-a-space-children--2 lrv-a-space-children-vertical lrv-u-padding-l-125 lrv-u-padding-l-150@desktop lrv-u-padding-l-00@mobile-max",
	"story_item_classes": "",
	"stories": [
		{
			"story_classes": "",
			"story_nav_classes": "lrv-a-font-body-xxs lrv-u-color-black lrv-u-text-transform-uppercase lrv-u-color-black ",
			"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-050",
			"story_grid_classes": "",
			"story_grid_primary_classes": "lrv-u-margin-r-00",
			"story_grid_secondary_classes": "",
			"story_links_classes": "",
			"c_span": {
				"modifier_class": "",
				"c_span_classes": "lrv-a-font-basic-xs lrv-u-border-b-1 lrv-u-text-transform-uppercase lrv-u-padding-b-050",
				"c_span_text": "News",
				"c_span_url": "#",
				"c_span_link_classes": ""
			},
			"c_link": false,
			"c_link_bottom": false,
			"c_link_bottom_wrapper_classes": "",
			"c_title": {
				"c_title_classes": "lrv-a-font-primary-m lrv-u-margin-b-050 lrv-u-font-size-26@mobile-max lrv-u-margin-t-050",
				"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": "lrv-u-margin-b-125",
				"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-a-font-body-xxs lrv-u-color-black lrv-u-margin-l-050 lrv-u-letter-spacing-0106@tablet lrv-u-letter-spacing-0140@mobile-max",
				"c_tagline_text": false,
				"c_tagline_markup": "Staff Writer"
			},
			"c_timestamp": false
		},
		{
			"story_classes": "",
			"story_nav_classes": "lrv-a-font-body-xxs lrv-u-color-black lrv-u-text-transform-uppercase lrv-u-color-black ",
			"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-050",
			"story_grid_classes": "",
			"story_grid_primary_classes": "lrv-u-margin-r-00",
			"story_grid_secondary_classes": "",
			"story_links_classes": "",
			"c_span": {
				"modifier_class": "",
				"c_span_classes": "lrv-a-font-basic-xs lrv-u-border-b-1 lrv-u-text-transform-uppercase lrv-u-padding-b-050",
				"c_span_text": "News",
				"c_span_url": "#",
				"c_span_link_classes": ""
			},
			"c_link": false,
			"c_link_bottom": false,
			"c_link_bottom_wrapper_classes": "",
			"c_title": {
				"c_title_classes": "lrv-a-font-primary-m lrv-u-margin-b-050 lrv-u-font-size-26@mobile-max lrv-u-margin-t-050",
				"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": "lrv-u-margin-b-125",
				"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-a-font-body-xxs lrv-u-color-black lrv-u-margin-l-050 lrv-u-letter-spacing-0106@tablet lrv-u-letter-spacing-0140@mobile-max",
				"c_tagline_text": false,
				"c_tagline_markup": "Staff Writer"
			},
			"c_timestamp": false
		}
	]
}