Skip to content
This repository has been archived by the owner on Aug 15, 2024. It is now read-only.

Commit

Permalink
VOTE-564: add nvrf hero logo and hide search (#956)
Browse files Browse the repository at this point in the history
  • Loading branch information
mlloydbixal authored Dec 18, 2023
1 parent eac81ae commit fd59513
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 6 deletions.
Binary file added assets/img/NVRF_hero_lockup.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions assets/styles/component/hero.scss
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@
}
}

.nvrf-hero {
padding: 20px 0;
}

.align-bottom {
display: flex;
flex-direction: column;
Expand Down
1 change: 1 addition & 0 deletions assets/styles/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ $theme-show-notifications: false,
@forward "usa-prose";
@forward "usa-intro";
@forward "usa-language-selector";

// NVRF dependencies --------------- //
@forward "usa-card";
@forward "usa-step-indicator";
Expand Down
2 changes: 1 addition & 1 deletion assets/styles/nvrf.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
border-radius: 0;
border-color: #000;
}

.error-container {
border-left: 3px solid #b50909;
padding-left: 15px;
Expand Down Expand Up @@ -82,7 +83,6 @@
border-radius: 30px;
background-color: #DEE9F0;;
color: #11385B;

text-align: center;
font-size: 18px;
margin-left: calc(50% - 24px);
Expand Down
10 changes: 10 additions & 0 deletions layouts/nvrf/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@
<link rel="stylesheet" href="{{ .Site.BaseURL }}/assets/styles/nvrf.css">
{{ partial "header.html" . }}
<main id="main-content">
<div class="bg-blue" id="skip-target">
<div class="grid-container">
<div class="tablet:grid-col-6 nvrf-hero">
<a href="{{ .Site.Home.RelPermalink }}" aria-label="Vote.gov">
<img width="150" height="59" src="{{ .Site.BaseURL }}/assets/img/NVRF_hero_lockup.png"
alt="{{ $translation.footer.vote_logo_alt_text }}" aria-label="Vote.gov"/>
</a>
</div>
</div>
</div>
<div class="grid-container">
<section class="voter-info">
{{ .Content }}
Expand Down
12 changes: 7 additions & 5 deletions layouts/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@
<span class="usa-banner__button-text">{{ $translation.homepage.banner__banner_action }}</span>
</button>
</div>

<div class="switcher-desktop">
{{ partial "language-switcher.html" . }}
</div>
<div class="switcher-desktop">
{{ partial "language-switcher.html" . }}
</div>

</div>
</div>
Expand Down Expand Up @@ -79,4 +79,6 @@

</header>

{{ partial "partials/search.html" . }}
{{ if ne .Type "nvrf" }}
{{ partial "partials/search.html" . }}
{{ end }}

0 comments on commit fd59513

Please sign in to comment.