Skip to content

Commit

Permalink
Add HIDIVE logo to banner (#526)
Browse files Browse the repository at this point in the history
  • Loading branch information
manzt authored Oct 15, 2024
1 parent 9979115 commit 3adf218
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 6 deletions.
9 changes: 4 additions & 5 deletions _includes/components/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@
{% if header %}
<div class="usa-navbar">
<button class="usa-menu-btn">Menu</button>
<div class="usa-logo site-logo" id="logo">
<em class="usa-logo-text">
{% assign header_link_text = header.title | default: site.title %}
<a href="/" accesskey="1" title="Home" aria-label="{{ header_link_text }}">{{ header_link_text }}</a>
</em>
<div class="site-logo">
<a href="/" accesskey="1" title="Home" aria-label="Home">
{% include logo.svg %}
</a>
</div>
</div>

Expand Down
29 changes: 29 additions & 0 deletions _includes/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 27 additions & 1 deletion assets/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,33 @@ $image-path: 'uswds/img';
}

.site-logo {
font-family: $font-sans;
display: inline-block;
margin: 1rem;
}

.site-logo a {
display: block;
text-decoration: none;
}

.site-logo svg {
width: 150px;
height: auto;
vertical-align: middle;
}

.site-logo a:hover svg {
opacity: 0.8;
}

@media screen and (min-width: 951px) {
.site-logo {
margin: 3rem 0;
}

.site-logo svg {
width: 250px;
}
}

.usa-logo {
Expand Down

0 comments on commit 3adf218

Please sign in to comment.