larva modules: profile-header
Available Variants
prototypeoptional screen reader
profile-header
README
This needs docs!
Create a README.md in the pattern's directory and add details about using this pattern in markdown.
profile-header
Twig The markup file.
<header class="profile-header // {{ profile_header_classes }}">
<div class="profile-header__banner // {{ profile_header_banner_classes }}">
<div class="lrv-a-wrapper lrv-u-flex lrv-u-flex-direction-column lrv-u-align-items-center lrv-u-padding-tb-1">
<h1 class="{{ profile_header_title_classes }}">
{{ profile_header_title_text }}
</h1>
{% if o_sponsored_by %}
{% include "@larva/objects/o-sponsored-by/o-sponsored-by.twig" with o_sponsored_by %}
{% endif %}
</div>
</div>
<div class="profile-header__nav // {{ profile_header_nav_classes }}">
<div class="lrv-a-wrapper lrv-a-glue-parent">
{% include "@larva/objects/o-nav/o-nav.twig" with o_nav %}
{% if o_select_nav %}
<div class="{{ profile_header_o_select_nav_classes }}">
{% include "@larva/objects/o-select-nav/o-select-nav.twig" with o_select_nav %}
</div>
{% endif %}
</div>
</div>
</header>
profile-header
JSON The data object for this pattern.
{
"profile_header_classes": "",
"profile_header_banner_classes": "",
"profile_header_title_classes": "lrv-u-font-family-primary lrv-u-font-size-50@desktop lrv-u-font-size-24 lrv-u-text-transform-uppercase lrv-u-font-weight-bold lrv-u-margin-b-050",
"profile_header_title_text": "Top 200 Collectors",
"profile_header_nav_classes": "lrv-u-background-color-grey-darkest lrv-u-padding-tb-050 lrv-u-border-t-1 lrv-u-border-color-white",
"profile_header_o_select_nav_classes": "",
"o_nav": {
"modifier_class": "",
"o_nav_classes": "lrv-u-flex lrv-u-justify-content-center",
"o_nav_title_text": "",
"o_nav_title_id_attr": "",
"o_nav_title_classes": "",
"o_nav_aria_labelledby_attr": "",
"o_nav_screen_reader_id_attr": "optional-screen-reader",
"o_nav_screen_reader_text": "optional screen reader",
"o_nav_list_classes": "lrv-a-unstyle-list lrv-u-flex lrv-a-space-children-horizontal lrv-u-align-items-center lrv-u-a-unstyle-list",
"o_nav_list_item_classes": "lrv-u-text-transform-uppercase lrv-u-color-white lrv-u-font-size-18",
"o_nav_list_items": [
{
"modifier_class": "",
"c_link_classes": "lrv-a-unstyle-link",
"c_link_text": "A plain text link",
"c_link_url": "#",
"c_link_rel_attr": false,
"c_link_aria_label_attr": false,
"c_link_target_attr": false
},
{
"modifier_class": "",
"c_link_classes": "lrv-a-unstyle-link",
"c_link_text": "A plain text link",
"c_link_url": "#",
"c_link_rel_attr": false,
"c_link_aria_label_attr": false,
"c_link_target_attr": false
},
{
"modifier_class": "",
"c_link_classes": "lrv-a-unstyle-link",
"c_link_text": "A plain text link",
"c_link_url": "#",
"c_link_rel_attr": false,
"c_link_aria_label_attr": false,
"c_link_target_attr": false
}
],
"o_nav_list_labelledby_attr": ""
},
"o_sponsored_by": {
"o_sponsored_by_classes": "lrv-u-flex lrv-u-align-items-center",
"o_sponsored_by_title_classes": "lrv-u-font-size-14 lrv-u-margin-r-050 lrv-u-font-style-italic",
"o_sponsored_by_text": "Sponsored by",
"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-5x1 lrv-u-width-100",
"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_select_nav": {
"o_select_nav_classes": " lrv-u-display-inline-block",
"o_select_nav_select_classes": "",
"c_button": {
"c_button_classes": "lrv-a-unstyle-button lrv-u-cursor-pointer lrv-u-color-white lrv-u-color-white:hover lrv-u-text-transform-uppercase lrv-u-font-size-16 lrv-u-border-color-white lrv-u-border-a-1 lrv-u-padding-lr-1 lrv-u-padding-tb-025 lrv-u-line-height-small lrv-a-icon-after lrv-a-icon-invert lrv-a-icon-arrow-down",
"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": "Year 2019",
"c_button_type_attr": "submit",
"c_button_url": ""
},
"o_select_nav_options": [
{
"c_select_option_url": "#",
"c_select_option_value_attr": "option-value",
"c_select_option_text": "Option Text"
},
{
"c_select_option_url": "#",
"c_select_option_value_attr": "option-value",
"c_select_option_text": "Option Text"
},
{
"c_select_option_url": "#",
"c_select_option_value_attr": "option-value",
"c_select_option_text": "Option Text"
}
]
}
}