Skip to content

Commit

Permalink
Part of #4012: Create variables for value props subtemplate.
Browse files Browse the repository at this point in the history
  • Loading branch information
mejiaj committed May 28, 2021
1 parent 4a0dfc7 commit fe9e246
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 20 deletions.
18 changes: 17 additions & 1 deletion src/components/layouts/sign-in-partials/value-props.config.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
label: Login
handle: layout--value-props
hidden: true
hidden: true

context:
value_props:
tagline: A tagline that explains the benefit of creating an account.
description: |-
Here’s space for a longer description to introduce 3-5 easily scannable bullet points. Note that on mobile, this text block will bump below the Create Account form.
values:
- img: circle-gray-20.svg
description: |-
<strong>Value proposition 1:</strong> Vivamus nec velit sed leo scelerisque laoreet vestibulum.
- img: circle-gray-20.svg
description: |-
<strong>Value proposition 1:</strong> Vivamus nec velit sed leo scelerisque laoreet vestibulum.
- img: circle-gray-20.svg
description: |-
<strong>Value proposition 3:</strong> Vivamus nec velit sed leo scelerisque laoreet vestibulum.
31 changes: 12 additions & 19 deletions src/components/layouts/sign-in-partials/value-props.njk
Original file line number Diff line number Diff line change
@@ -1,28 +1,21 @@

<h2 class="display-none desktop:display-block">A tagline that explains the benefit of creating an account.</h2>
<h2 class="display-none desktop:display-block">{{ value_props.tagline }}</h2>
<div class="usa-prose">
<p>Here’s space for a longer description to introduce 3-5 easily scannable bullet points. Note that on mobile, this text block will bump below the Create Account form.</p>
<p>{{ value_props.description }}</p>
<section class="usa-graphic-list">
<div class="usa-graphic-list__row">
<div class="usa-media-block margin-y-2">
<img class="usa-media-block__img height-7 width-7" src="{{ uswds.path }}/img/circle-gray-20.svg" alt="Alt text">
<div class="usa-media-block__body">
<p><strong>Value proposition 1:</strong> Vivamus nec velit sed leo scelerisque laoreet vestibulum.</p>
</div>
</div>
<div class="usa-media-block margin-y-2">
<img class="usa-media-block__img height-7 width-7" src="{{ uswds.path }}/img/circle-gray-20.svg" alt="Alt text">
<div class="usa-media-block__body">
<p><strong>Value proposition 2:</strong> Ut ac dictum elit. Vivamus nec velit sed leo laoreet vestibulum.</p>
</div>
</div>
<div class="usa-graphic-list__row">
{% for value in value_props.values %}
<div class="usa-media-block margin-y-2">
<img class="usa-media-block__img height-7 width-7" src="{{ uswds.path }}/img/circle-gray-20.svg" alt="Alt text">
<img
class="usa-media-block__img height-7 width-7"
src="{{ uswds.path }}/img/{{ value.img }}"
alt="Alt text"
>
<div class="usa-media-block__body">
<p><strong>Value proposition 3:</strong> Vivamus nec velit sed leo scelerisque laoreet vestibulum.</p>
<p>{{ value.description | safe }}</p>
</div>
</div>
</div>
{% endfor %}
</div>
</section>
</div>

0 comments on commit fe9e246

Please sign in to comment.