Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update main role on home page #334

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions _includes/header.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="usa-overlay"></div>
<header class="usa-header usa-header--extended" role="banner">
<section class="usa-header usa-header--extended">
<div class="usa-navbar">
<div class="usa-logo" id="extended-logo">
<em class="usa-logo__text"><a href="{{ '/' | relative_url }}" title="Home" aria-label="Home"><img src="{{ '/assets/img/guide-to-pra--desktop--light.svg' | relative_url }}" alt="{{site.title}}" class="display-block" /></a></em>
Expand Down Expand Up @@ -36,7 +36,7 @@
</ul>
<form class="usa-search usa-search--small site-search" role="search" action="https://search.usa.gov/search" accept-charset="UTF-8" method="get">
<input type="hidden" name="affiliate" id="affiliate" value="digitalgov-pra" autocomplete="off" />
<label for="query" class="usa-sr-only"></label>
<label for="query" class="usa-sr-only">Search</label>
<input type="text" name="query" id="query" autocomplete="off" class="usagov-search-autocomplete" />
<button class="usa-button" type="submit">
<img
Expand All @@ -49,4 +49,4 @@
</div>
</div>
</nav>
</header>
</section>
38 changes: 20 additions & 18 deletions _layouts/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,27 @@
class: home
---

<div class="bg-primary text-white margin-bottom-3 tablet:margin-bottom-6" id="main-content">
<div class="grid-container padding-y-3 tablet:padding-y-6">
<div class="measure-1 font-heading-md tablet:font-heading-xl line-height-serif-4 margin-bottom-4">
{{page.tagline}}
<main>
<div class="bg-primary text-white margin-bottom-3 tablet:margin-bottom-6" id="main-content">
<div class="grid-container padding-y-3 tablet:padding-y-6">
<div class="measure-1 font-heading-md tablet:font-heading-xl line-height-serif-4 margin-bottom-4">
{{page.tagline}}
</div>
<a href="{{page.button.href | relative_url}}" class="usa-button usa-button--secondary width-auto">{{page.button.text}}</a>
</div>
<a href="{{page.button.href | relative_url}}" class="usa-button usa-button--secondary width-auto">{{page.button.text}}</a>
</div>
</div>
<div class="grid-container margin-bottom-3 tablet:margin-bottom-6 usa-layout__docs-main">
<h2 class="hr font-family-serif margin-bottom-3 tablet:margin-bottom-6"><span>Get started with the PRA</span></h2>
<div class="grid-row grid-gap">
{% for card in page.cards %}
<div class="tablet:grid-col-4 display-flex margin-bottom-205 tablet:margin-bottom-0">
<a href="{{ card.href | relative_url}}" class="border border-base radius-sm padding-x-5 padding-y-3 tablet:padding-5 hover:bg-base-lightest hover:shadow-2 text-no-underline">
<h3 class="margin-top-0 text-primary-vivid icon-arrow font-heading-sm">{{ card.heading }}</h3>
<p class="text-ink margin-bottom-0 line-height-sans-4">{{ card.body }}</p>
</a>
<div class="grid-container margin-bottom-3 tablet:margin-bottom-6 usa-layout__docs-main">
<h2 class="hr font-family-serif margin-bottom-3 tablet:margin-bottom-6"><span>Get started with the PRA</span></h2>
<div class="grid-row grid-gap">
{% for card in page.cards %}
<div class="tablet:grid-col-4 display-flex margin-bottom-205 tablet:margin-bottom-0">
<a href="{{ card.href | relative_url}}" class="border border-base radius-sm padding-x-5 padding-y-3 tablet:padding-5 hover:bg-base-lightest hover:shadow-2 text-no-underline">
<h3 class="margin-top-0 text-primary-vivid icon-arrow font-heading-sm">{{ card.heading }}</h3>
<p class="text-ink margin-bottom-0 line-height-sans-4">{{ card.body }}</p>
</a>
</div>
{% endfor %}
</div>
{% endfor %}
{{ content }}
</div>
{{ content }}
</div>
</main>