larva modules: how-we-test-products
Available Variants
prototypeHow We Test Products
Our journalists test hundreds of products every year for readers. We’ve developed a rigorous system for reviewing products objectively. Learn More ⇢.

500+
Products Tested

500+
Products Tested

500+
Products Tested

500+
Products Tested
how-we-test-products
README
This needs docs!
Create a README.md in the pattern's directory and add details about using this pattern in markdown.
how-we-test-products
Twig The markup file.
<div class="how-we-test-products // {{ how_we_test_products_classes }}">
<div class="how-we-test-products-outer // {{ how_we_test_products_outer_classes }}">
<div class="{{ how_we_test_products_banner_classes }}">
<div class="how-we-test-products-title {{ how_we_test_products_title_classes }}">
{% if c_title %}
{% include "@larva/components/c-title/c-title.twig" with c_title %}
{% endif %}
{% if c_dek %}
{% include "@larva/components/c-dek/c-dek.twig" with c_dek %}
{% endif %}
</div>
</div>
<div class="how-we-test-product-items-outer // {{ how_we_test_products_items_classes }}">
{% for item in how_we_test_products_items %}
{% include "@larva/modules/story/story.twig" with item %}
{% endfor %}
</div>
</div>
<div>
how-we-test-products
JSON The data object for this pattern.
{
"how_we_test_products_classes": "lrv-u-text-align-center lrv-u-background-color-grey-lightest lrv-u-margin-tb-2",
"how_we_test_products_outer_classes": "lrv-u-width-75p@tablet lrv-u-margin-lr-auto lrv-u-padding-a-2",
"how_we_test_products_banner_classes": "",
"how_we_test_products_title_classes": "",
"how_we_test_products_items_classes": "lrv-u-flex lrv-u-flex-wrap-wrap@mobile-max",
"how_we_test_products_items": [
{
"story_classes": "lrv-u-width-50p@mobile-max lrv-u-border-color-grey-light lrv-u-padding-tb-125@mobile-max lrv-u-width-75p@tablet lrv-u-margin-lr-auto",
"story_nav_classes": "lrv-u-font-size-12 lrv-u-font-family-primary lrv-u-text-transform-uppercase lrv-u-font-weight-bold 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-a-hidden@mobile-max lrv-u-margin-t-050",
"story_grid_classes": "lrv-u-flex lrv-u-flex-direction-column lrv-u-height-100p lrv-u-justify-content-space-between",
"story_grid_primary_classes": "lrv-u-margin-r-2@desktop-xl lrv-u-margin-r-00 lrv-u-margin-r-1@desktop",
"story_grid_secondary_classes": "lrv-a-span2",
"story_links_classes": "",
"c_span": false,
"c_link": false,
"c_link_bottom": false,
"c_link_bottom_wrapper_classes": "",
"c_title": {
"c_title_classes": "lrv-a-font-secondary-xl lrv-u-margin-b-050",
"c_title_tag_text": "",
"c_title_id_attr": "title-of-a-story",
"c_title_text": "500+",
"c_title_markup": "",
"c_title_link_classes": "lrv-a-unstyle-link lrv-u-color-brand-primary:hover",
"c_title_url": false
},
"c_dek": {
"c_dek_classes": "lrv-u-margin-tb-00 lrv-u-font-family-primary lrv-u-font-size-16 lrv-u-color-brand-secondary",
"c_dek_markup": false,
"c_dek_text": "Products Tested"
},
"c_lazy_image": {
"c_lazy_image_classes": "lrv-u-margin-lr-auto",
"c_lazy_image_link_url": false,
"c_lazy_image_link_classes": "lrv-a-unstyle-link",
"c_lazy_image_crop_class": "",
"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://farm5.staticflickr.com/4078/5441060528_31db7838ba_z.jpg",
"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": "",
"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": false,
"c_timestamp": false
},
{
"story_classes": "lrv-u-width-50p@mobile-max lrv-u-border-color-grey-light lrv-u-padding-tb-125@mobile-max lrv-u-width-75p@tablet lrv-u-margin-lr-auto",
"story_nav_classes": "lrv-u-font-size-12 lrv-u-font-family-primary lrv-u-text-transform-uppercase lrv-u-font-weight-bold 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-a-hidden@mobile-max lrv-u-margin-t-050",
"story_grid_classes": "lrv-u-flex lrv-u-flex-direction-column lrv-u-height-100p lrv-u-justify-content-space-between",
"story_grid_primary_classes": "lrv-u-margin-r-2@desktop-xl lrv-u-margin-r-00 lrv-u-margin-r-1@desktop",
"story_grid_secondary_classes": "lrv-a-span2",
"story_links_classes": "",
"c_span": false,
"c_link": false,
"c_link_bottom": false,
"c_link_bottom_wrapper_classes": "",
"c_title": {
"c_title_classes": "lrv-a-font-secondary-xl lrv-u-margin-b-050",
"c_title_tag_text": "",
"c_title_id_attr": "title-of-a-story",
"c_title_text": "500+",
"c_title_markup": "",
"c_title_link_classes": "lrv-a-unstyle-link lrv-u-color-brand-primary:hover",
"c_title_url": false
},
"c_dek": {
"c_dek_classes": "lrv-u-margin-tb-00 lrv-u-font-family-primary lrv-u-font-size-16 lrv-u-color-brand-secondary",
"c_dek_markup": false,
"c_dek_text": "Products Tested"
},
"c_lazy_image": {
"c_lazy_image_classes": "lrv-u-margin-lr-auto",
"c_lazy_image_link_url": false,
"c_lazy_image_link_classes": "lrv-a-unstyle-link",
"c_lazy_image_crop_class": "",
"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://farm5.staticflickr.com/4078/5441060528_31db7838ba_z.jpg",
"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": "",
"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": false,
"c_timestamp": false
},
{
"story_classes": "lrv-u-width-50p@mobile-max lrv-u-border-color-grey-light lrv-u-padding-tb-125@mobile-max lrv-u-width-75p@tablet lrv-u-margin-lr-auto",
"story_nav_classes": "lrv-u-font-size-12 lrv-u-font-family-primary lrv-u-text-transform-uppercase lrv-u-font-weight-bold 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-a-hidden@mobile-max lrv-u-margin-t-050",
"story_grid_classes": "lrv-u-flex lrv-u-flex-direction-column lrv-u-height-100p lrv-u-justify-content-space-between",
"story_grid_primary_classes": "lrv-u-margin-r-2@desktop-xl lrv-u-margin-r-00 lrv-u-margin-r-1@desktop",
"story_grid_secondary_classes": "lrv-a-span2",
"story_links_classes": "",
"c_span": false,
"c_link": false,
"c_link_bottom": false,
"c_link_bottom_wrapper_classes": "",
"c_title": {
"c_title_classes": "lrv-a-font-secondary-xl lrv-u-margin-b-050",
"c_title_tag_text": "",
"c_title_id_attr": "title-of-a-story",
"c_title_text": "500+",
"c_title_markup": "",
"c_title_link_classes": "lrv-a-unstyle-link lrv-u-color-brand-primary:hover",
"c_title_url": false
},
"c_dek": {
"c_dek_classes": "lrv-u-margin-tb-00 lrv-u-font-family-primary lrv-u-font-size-16 lrv-u-color-brand-secondary",
"c_dek_markup": false,
"c_dek_text": "Products Tested"
},
"c_lazy_image": {
"c_lazy_image_classes": "lrv-u-margin-lr-auto",
"c_lazy_image_link_url": false,
"c_lazy_image_link_classes": "lrv-a-unstyle-link",
"c_lazy_image_crop_class": "",
"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://farm5.staticflickr.com/4078/5441060528_31db7838ba_z.jpg",
"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": "",
"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": false,
"c_timestamp": false
},
{
"story_classes": "lrv-u-width-50p@mobile-max lrv-u-border-color-grey-light lrv-u-padding-tb-125@mobile-max lrv-u-width-75p@tablet lrv-u-margin-lr-auto",
"story_nav_classes": "lrv-u-font-size-12 lrv-u-font-family-primary lrv-u-text-transform-uppercase lrv-u-font-weight-bold 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-a-hidden@mobile-max lrv-u-margin-t-050",
"story_grid_classes": "lrv-u-flex lrv-u-flex-direction-column lrv-u-height-100p lrv-u-justify-content-space-between",
"story_grid_primary_classes": "lrv-u-margin-r-2@desktop-xl lrv-u-margin-r-00 lrv-u-margin-r-1@desktop",
"story_grid_secondary_classes": "lrv-a-span2",
"story_links_classes": "",
"c_span": false,
"c_link": false,
"c_link_bottom": false,
"c_link_bottom_wrapper_classes": "",
"c_title": {
"c_title_classes": "lrv-a-font-secondary-xl lrv-u-margin-b-050",
"c_title_tag_text": "",
"c_title_id_attr": "title-of-a-story",
"c_title_text": "500+",
"c_title_markup": "",
"c_title_link_classes": "lrv-a-unstyle-link lrv-u-color-brand-primary:hover",
"c_title_url": false
},
"c_dek": {
"c_dek_classes": "lrv-u-margin-tb-00 lrv-u-font-family-primary lrv-u-font-size-16 lrv-u-color-brand-secondary",
"c_dek_markup": false,
"c_dek_text": "Products Tested"
},
"c_lazy_image": {
"c_lazy_image_classes": "lrv-u-margin-lr-auto",
"c_lazy_image_link_url": false,
"c_lazy_image_link_classes": "lrv-a-unstyle-link",
"c_lazy_image_crop_class": "",
"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://farm5.staticflickr.com/4078/5441060528_31db7838ba_z.jpg",
"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": "",
"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": false,
"c_timestamp": false
}
],
"c_title": {
"c_title_classes": "lrv-a-font-primary-l lrv-u-color-black",
"c_title_tag_text": "",
"c_title_id_attr": "title-of-a-story",
"c_title_text": "How We Test Products",
"c_title_markup": "",
"c_title_link_classes": "",
"c_title_url": false
},
"c_dek": {
"c_dek_classes": "lrv-a-font-secondary-l",
"c_dek_markup": "Our journalists test hundreds of products every year for readers. We’ve developed a rigorous system for reviewing products objectively. Learn More ⇢.",
"c_dek_text": false
}
}