Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
richgarner71 committed Jan 17, 2025
1 parent 5b5de6b commit 31b91a0
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 3 deletions.
55 changes: 55 additions & 0 deletions banner.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{% comment %}
This appears at the top of the page letting the user know it's an official government website
{% endcomment %}

<div>
<a class="usa-skipnav" href="#main-content">Skip to main content</a>
<div class="usa-banner">
<div class="usa-accordion">
<header class="usa-banner__header">
<div class="usa-banner__inner">
<!-- added custom styles to ensure header is centered -->
<div class="grid-col-auto" style="display: inline-flex;">
{% image_with_class "./node_modules/@uswds/uswds/dist/img/us_flag_small.png" "usa-banner__header-flag" "U.S. flag" %}
</div>
<div class="grid-col-fill tablet:grid-col-auto" style="display: inline-flex;">
<p class="usa-banner__header-text">An official website of the United States government</p>
</div>
<div class="grid-col-fill tablet:grid-col-auto" style="display: inline-flex;">
<p class="usa-banner__header-action" aria-hidden="true">Here’s how you know</p>
</div>
<button class="usa-accordion__button usa-banner__button" aria-expanded="false" aria-controls="gov-banner" style="display: inline-flex;">
<span class="usa-banner__button-text">Here's how you know</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">
{% comment %} {% image_with_class "./node_modules/@uswds/uswds/dist/img/icon-dot-gov.svg" "usa-banner__icon usa-media-block__img" "Dot gov" %} {% endcomment %}
<div class="usa-media-block__body">
<p>
<strong>The .gov means it’s official.</strong>
<br>
A <strong>.gov</strong> website belongs to an official government organization in the United States.
</p>
</div>
</div>
<div class="usa-banner__guidance tablet:grid-col-6">
{% comment %} {% image_with_class "./node_modules/@uswds/uswds/dist/img/icon-https.svg" "usa-banner__icon usa-media-block__img" "Https" %} {% endcomment %}
<div class="usa-media-block__body">
<p>
<strong>Secure .gov websites use HTTPS</strong>
<br/>
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 .gov website. Share sensitive information only on official, secure websites.
</p>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="usa-overlay"></div>
</div>
3 changes: 0 additions & 3 deletions index.html

This file was deleted.

2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<include src="banner.html"></include>
This is another test

0 comments on commit 31b91a0

Please sign in to comment.