uswds-8.x-2.1-rc1/templates/uswds/government-banner.html.twig
templates/uswds/government-banner.html.twig
<section class="usa-banner" aria-label="{{ 'Official government website' | t }}">
<div class="usa-accordion">
<header class="usa-banner__header">
<div class="usa-banner__inner">
<div class="grid-col-auto">
<img class="usa-banner__header-flag" src="{{ image_base }}/us_flag_small.png" alt="{{ 'U.S. flag' | t }}">
</div>
<div class="grid-col-fill tablet:grid-col-auto">
<p class="usa-banner__header-text">{{ 'An official website of the United States government' | t }}</p>
<p class="usa-banner__header-action" aria-hidden="true">{{ 'Here’s how you know' | t }}</p>
</div>
<button class="usa-accordion__button usa-banner__button"
aria-expanded="false" aria-controls="gov-banner">
<span class="usa-banner__button-text">{{ 'Here’s how you know' | t }}</span>
</button>
</div>
</header>
<div class="usa-banner__content usa-accordion__content" id="gov-banner">
<div class="grid-row grid-gap-lg">
<div class="usa-banner__guidance tablet:grid-col-6">
<img class="usa-banner__icon usa-media-block__img" src="{{ image_base }}/icon-dot-gov.svg" role="img" alt="{{ 'Dot gov' | t }}">
<div class="usa-media-block__body">
<p>
<strong>
{% trans %}
Official websites use {{ tld }}
{% endtrans %}
</strong>
<br/>
{% if military %}
{{ 'A <strong>.mil</strong> website belongs to an official U.S. Department of Defense organization.' | t }}
{% else %}
{{ 'A <strong>.gov</strong> website belongs to an official government organization in the United States.' | t }}
{% endif %}
</p>
</div>
</div>
<div class="usa-banner__guidance tablet:grid-col-6">
<img class="usa-banner__icon usa-media-block__img" src="{{ image_base }}/icon-https.svg" role="img" alt="{{ 'Https' | t }}">
<div class="usa-media-block__body">
<p>
<strong>
{% trans %}
Secure {{ tld }} websites use HTTPS
{% endtrans %}
</strong>
<br/>
{% trans %}
A <strong>lock</strong>
(<span class="icon-lock"><svg xmlns="http://www.w3.org/2000/svg" width="52" height="64" viewBox="0 0 52 64" class="usa-banner__lock-image" role="img" aria-labelledby="banner-lock-title banner-lock-description"><title id="banner-lock-title">Lock</title><desc id="banner-lock-description">A locked padlock</desc><path fill="#000000" fill-rule="evenodd" d="M26 0c10.493 0 19 8.507 19 19v9h3a4 4 0 0 1 4 4v28a4 4 0 0 1-4 4H4a4 4 0 0 1-4-4V32a4 4 0 0 1 4-4h3v-9C7 8.507 15.507 0 26 0zm0 8c-5.979 0-10.843 4.77-10.996 10.712L15 19v9h22v-9c0-6.075-4.925-11-11-11z"/></svg></span>)
or <strong>https://</strong> means you’ve safely connected to the {{ tld }} website. Share sensitive information only on official, secure websites.
{% endtrans %}
</p>
</div>
</div>
</div>
</div>
</div>
</section>
