larva modules: story-arc-stories
Available Variants
prototypestory-arc-stories
README
This needs docs!
Create a README.md in the pattern's directory and add details about using this pattern in markdown.
story-arc-stories
Twig The markup file.
<section class="story-arc-stories {{ story_arc_stories_classes }}">
<div class="lrv-u-font-family-primary lrv-u-margin-b-050">
{% include "@larva/components/c-span/c-span.twig" with c_span %}
{% include "@larva/components/c-button/c-button.twig" with c_button %}
</div>
<div class="lrv-u-overflow-hidden lrv-u-max-width-100vw lrv-u-padding-b-1">
<div class="lrv-u-width-100p lrv-u-max-width-100p a-scrollable-grid@desktop-max lrv-a-grid lrv-a-cols3@desktop">
{% for item in story_arc_stories %}
{% include "@larva/objects/o-story-arc-item/o-story-arc-item.twig" with item %}
{% endfor %}
</div>
</div>
</section>
story-arc-stories
JSON The data object for this pattern.
{
"c_span": {
"modifier_class": "",
"c_span_classes": "lrv-u-whitespace-nowrap lrv-u-font-weight-bold",
"c_span_text": "Event Coverage:",
"c_span_url": "",
"c_span_link_classes": ""
},
"c_button": {
"c_button_classes": "lrv-a-unstyle-button lrv-u-cursor-pointer",
"c_button_ga_tracking": {},
"c_button_inner_classes": "",
"c_button_rel_attr": "",
"c_button_screen_reader_text": "Sign Up",
"c_button_target_attr": "",
"c_button_text": "Art Basel Hong Kong",
"c_button_type_attr": "submit",
"c_button_url": "#"
},
"story_arc_stories": [
{
"o_story_arc_item_classes": "",
"c_timestamp": {
"c_timestamp_classes": "lrv-u-font-family-primary lrv-u-background-color-body lrv-u-font-weight-bold lrv-u-font-size-12 lrv-u-color-brand-primary",
"c_timestamp_datetime_attr": "00:00-YY-DD-MM",
"c_timestamp_text": "July 3, 2001",
"c_timestamp_aria_label_attr": false
},
"o_tease": {
"o_tease_url": "#",
"o_tease_classes": "lrv-u-flex lrv-u-align-items-center u-align-items-flex-start@mobile-max u-flex-direction-row-reverse",
"o_tease_link_classes": "lrv-u-display-contents",
"o_tease_primary_classes": "lrv-u-flex-grow-1",
"o_tease_secondary_classes": "lrv-u-flex-shrink-0 lrv-u-width-30p lrv-u-margin-r-1 u-width-65",
"c_heading": false,
"c_title": {
"c_title_classes": "lrv-u-font-family-primary lrv-u-font-size-14 lrv-u-font-size-16@desktop u-color-black lrv-u-font-weight-normal",
"c_title_tag_text": "",
"c_title_id_attr": "title-of-a-story",
"c_title_text": "Art Basel Plans ‘Interventions’ for 50th Anniversary, with Kasper König in Charge",
"c_title_markup": "",
"c_title_link_classes": "",
"c_title_url": false
},
"c_tagline": 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-1x1",
"c_lazy_image_crop_style_attr": false,
"c_lazy_image_link_tab_index_attr": false,
"c_lazy_image_alt_attr": "Post tease thumbnail 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-border-radius-5 u-box-shadow-light",
"c_lazy_image_height_attr": "",
"c_lazy_image_width_attr": "",
"c_lazy_image_in_initial_viewport": false,
"c_lazy_image_decoding_attr": "async"
},
"c_button": false,
"c_span": false
}
},
{
"o_story_arc_item_classes": "",
"c_timestamp": {
"c_timestamp_classes": "lrv-u-font-family-primary lrv-u-background-color-body lrv-u-font-weight-bold lrv-u-font-size-12 lrv-u-color-brand-primary",
"c_timestamp_datetime_attr": "00:00-YY-DD-MM",
"c_timestamp_text": "July 3, 2001",
"c_timestamp_aria_label_attr": false
},
"o_tease": {
"o_tease_url": "#",
"o_tease_classes": "lrv-u-flex lrv-u-align-items-center u-align-items-flex-start@mobile-max u-flex-direction-row-reverse",
"o_tease_link_classes": "lrv-u-display-contents",
"o_tease_primary_classes": "lrv-u-flex-grow-1",
"o_tease_secondary_classes": "lrv-u-flex-shrink-0 lrv-u-width-30p lrv-u-margin-r-1 u-width-65",
"c_heading": false,
"c_title": {
"c_title_classes": "lrv-u-font-family-primary lrv-u-font-size-14 lrv-u-font-size-16@desktop u-color-black lrv-u-font-weight-normal",
"c_title_tag_text": "",
"c_title_id_attr": "title-of-a-story",
"c_title_text": "Art Basel Plans ‘Interventions’ for 50th Anniversary, with Kasper König in Charge",
"c_title_markup": "",
"c_title_link_classes": "",
"c_title_url": false
},
"c_tagline": 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-1x1",
"c_lazy_image_crop_style_attr": false,
"c_lazy_image_link_tab_index_attr": false,
"c_lazy_image_alt_attr": "Post tease thumbnail 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-border-radius-5 u-box-shadow-light",
"c_lazy_image_height_attr": "",
"c_lazy_image_width_attr": "",
"c_lazy_image_in_initial_viewport": false,
"c_lazy_image_decoding_attr": "async"
},
"c_button": false,
"c_span": false
}
},
{
"o_story_arc_item_classes": "",
"c_timestamp": {
"c_timestamp_classes": "lrv-u-font-family-primary lrv-u-background-color-body lrv-u-font-weight-bold lrv-u-font-size-12 lrv-u-color-brand-primary",
"c_timestamp_datetime_attr": "00:00-YY-DD-MM",
"c_timestamp_text": "July 3, 2001",
"c_timestamp_aria_label_attr": false
},
"o_tease": {
"o_tease_url": "#",
"o_tease_classes": "lrv-u-flex lrv-u-align-items-center u-align-items-flex-start@mobile-max u-flex-direction-row-reverse",
"o_tease_link_classes": "lrv-u-display-contents",
"o_tease_primary_classes": "lrv-u-flex-grow-1",
"o_tease_secondary_classes": "lrv-u-flex-shrink-0 lrv-u-width-30p lrv-u-margin-r-1 u-width-65",
"c_heading": false,
"c_title": {
"c_title_classes": "lrv-u-font-family-primary lrv-u-font-size-14 lrv-u-font-size-16@desktop u-color-black lrv-u-font-weight-normal",
"c_title_tag_text": "",
"c_title_id_attr": "title-of-a-story",
"c_title_text": "Art Basel Plans ‘Interventions’ for 50th Anniversary, with Kasper König in Charge",
"c_title_markup": "",
"c_title_link_classes": "",
"c_title_url": false
},
"c_tagline": 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-1x1",
"c_lazy_image_crop_style_attr": false,
"c_lazy_image_link_tab_index_attr": false,
"c_lazy_image_alt_attr": "Post tease thumbnail 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-border-radius-5 u-box-shadow-light",
"c_lazy_image_height_attr": "",
"c_lazy_image_width_attr": "",
"c_lazy_image_in_initial_viewport": false,
"c_lazy_image_decoding_attr": "async"
},
"c_button": false,
"c_span": false
}
}
]
}