larva modules: newsletter
Available Variants
prototypenewsletter
README
This needs docs!
Create a README.md in the pattern's directory and add details about using this pattern in markdown.
newsletter
Twig The markup file.
<div class="newsletter // {{ newsletter_classes }} {{ newsletter_typography_class }} {{ newsletter_text_align_class }} {{ newsletter_color_class }} {{ newsletter_background_color_class }}">
{% if c_title %}
{% include "@larva/components/c-title/c-title.twig" with c_title %}
{% endif %}
{% if c_logo %}
{% include "@larva/components/c-logo/c-logo.twig" with c_logo %}
{% endif %}
{% if c_tagline %}
{% include "@larva/components/c-tagline/c-tagline.twig" with c_tagline %}
{% endif %}
{% if o_email_capture_form %}
{% include "@larva/objects/o-email-capture-form/o-email-capture-form.twig" with o_email_capture_form %}
{% endif %}
{% if c_tagline_terms %}
{% include "@larva/components/c-tagline/c-tagline.twig" with c_tagline_terms %}
{% endif %}
</div>
newsletter
JSON The data object for this pattern.
{
"newsletter_classes": "lrv-u-padding-tb-2 lrv-u-padding-lr-2 lrv-u-flex lrv-u-flex-direction-column lrv-u-align-items-center",
"newsletter_typography_class": "",
"newsletter_text_align_class": "",
"newsletter_color_class": "",
"newsletter_background_color_class": "",
"c_title": {
"c_title_classes": "",
"c_title_tag_text": "",
"c_title_id_attr": "title-of-a-story",
"c_title_text": "Title of a story",
"c_title_markup": "",
"c_title_link_classes": "",
"c_title_url": "#"
},
"c_logo": {
"c_logo_is_h1": false,
"c_logo_classes": "lrv-a-unstyle-link lrv-u-display-contents lrv-u-width-100p lrv-u-color-black",
"c_logo_url": "/",
"c_logo_svg": "brand-logo",
"c_logo_screen_reader_text": "Logo text"
},
"c_tagline": {
"c_tagline_classes": "lrv-u-margin-t-1 lrv-u-margin-b-00 lrv-u-text-align-center lrv-u-font-size-20 lrv-u-line-height-small lrv-u-margin-b-2",
"c_tagline_text": "Sign Up for our Newsletters"
},
"o_email_capture_form": {
"o_email_capture_form_classes": "",
"o_email_capture_form_context_name_attr": "FormPost",
"o_email_capture_form_inner_classes": "",
"o_email_capture_form_action_url": "",
"o_email_capture_form_button_text": "Sign up",
"o_email_capture_form_name_attr": "email-capture-form",
"o_email_capture_form_success_url": "",
"c_button": {
"c_button_classes": "lrv-a-unstyle-button lrv-u-cursor-pointer lrv-u-background-color-black lrv-u-color-white lrv-u-border-radius-5 lrv-u-width-100p lrv-u-text-align-center lrv-u-padding-a-050 lrv-u-font-weight-bold",
"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": "Subscribe Today",
"c_button_type_attr": "submit",
"c_button_url": ""
},
"c_email_field": {
"c_email_field_classes": "",
"c_email_field_label_classes": "lrv-a-screen-reader-only",
"c_email_field_label_text": "Email Address",
"c_email_field_input_id_attr": "EmailAddress",
"c_email_field_input_name_attr": "EmailAddress",
"c_email_field_input_placeholder_attr": "Email",
"c_email_field_input_classes": "undefined lrv-u-border-a-0 lrv-u-font-size-14 lrv-u-width-100p lrv-u-margin-b-1 lrv-u-padding-lr-1 lrv-u-padding-tb-050 lrv-u-border-radius-5"
},
"o_email_capture_form_hidden_field_items": []
},
"c_tagline_terms": {
"c_tagline_classes": "lrv-u-margin-t-1 lrv-a-font-basic-xxs lrv-a-children-link-decoration-underline",
"c_tagline_text": false,
"c_tagline_markup": "By subscribing, I agree to the Terms of Use and Privacy Policy."
}
}