Merge pull request #366 from dod-ccpo/ui/add-usa-header

Add USA header to base templates
This commit is contained in:
patricksmithdds 2018-10-02 13:37:02 -04:00 committed by GitHub
commit 90820767de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 46 additions and 0 deletions

View File

@ -36,6 +36,7 @@
@import 'components/selector';
@import 'components/budget_chart';
@import 'components/audit_log';
@import 'components/usa_banner';
@import 'sections/login';
@import 'sections/home';

View File

@ -0,0 +1,27 @@
.usa-banner {
display: flex;
align-items: center;
padding: ($gap / 2) $gap;
z-index: 5;
img {
flex-grow: 0;
margin-right: $gap;
}
p {
margin: 0;
}
button.icon-tooltip {
@include small-label;
color: $color-blue;
padding: 0 ($gap / 2);
margin: 0 ($gap / 2);
font-weight: normal;
.icon {
@include icon-size(12);
}
}
}

View File

@ -16,6 +16,8 @@
{% block template_vars %}{% endblock %}
{% include 'components/usa_header.html' %}
{% include 'navigation/topbar.html' %}
<div class='global-layout'>

View File

@ -16,6 +16,8 @@
<div id='app-root'>
{% include 'components/usa_header.html' %}
<header class="topbar topbar--public">
<nav class="topbar__navigation">
<a href="{{ url_for('atst.home') }}" class="topbar__link topbar__link--home">
@ -47,6 +49,10 @@
{% include 'footer.html' %}
</div>
{% assets "js_all" %}
<script src="{{ ASSET_URL }}"></script>
{% endassets %}
</body>
</html>

View File

@ -0,0 +1,10 @@
{% from "components/tooltip.html" import Tooltip %}
<aside class='usa-banner'>
<img src='{{ url_for("static", filename="img/us_flag_small.png") }}' alt='U.S. Flag' />
<p>An official website of the United States government</p>
{{ Tooltip('<p><strong>The .mil means its official.</strong><br/>Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure youre on a federal government site.</p><br/><p><strong>The site is secure.</strong><br>The <strong>https://</strong> ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.</p>',
title='Heres how you know') }}
</aside>