-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #113 from GSA/26/eval-footer
#26 Eval footer
- Loading branch information
Showing
10 changed files
with
300 additions
and
85 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
// Entry point for your Sass build | ||
// Entry point for your Sass build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,121 @@ | ||
<footer class="usa-footer usa-footer--big"> | ||
<div class="usa-footer__primary-section"> | ||
<div class="grid-container"> | ||
<div class="usa-footer__return-to-top"> | ||
<a href="#">Return to top</a> | ||
</div> | ||
<nav class="usa-footer__nav" aria-label="Footer navigation,,"> | ||
<div class="grid-row grid-gap-4 usa-footer__primary-content padding-top-2 mobile-lg:padding-top-0 usa-footer__primary-content--collapsible"> | ||
<div class="grid-col-5 mobile-lg:grid-col-6 desktop:grid-col-3"> | ||
<%# Col 1 %> | ||
<ul class="usa-list usa-list--unstyled"> | ||
<li class="usa-footer__secondary-link"> | ||
<a href="/about">About</a> | ||
</li> | ||
<li class="usa-footer__secondary-link"> | ||
<a href="/contact">Contact</a> | ||
</li> | ||
<li class="usa-footer__secondary-link"> | ||
<a href="/terms">Terms of use</a> | ||
</li> | ||
<li class="usa-footer__secondary-link"> | ||
<a href="/privacy-policy">Privacy Policy</a> | ||
</li> | ||
</ul> | ||
</div> | ||
<div class="grid-col-5 display-block desktop:display-none mobile-lg:grid-col-6"> | ||
</div> | ||
<div class="grid-col-5 mobile-lg:grid-col-6 desktop:grid-col-3"> | ||
<%# Col 2 %> | ||
<ul class="usa-list usa-list--unstyled"> | ||
<li class="usa-footer__secondary-link"> | ||
<a href="/resources">Innovator Resources</a> | ||
</li> | ||
<li class="usa-footer__secondary-link"> | ||
<a href="/resources-managers">Agency Resources</a> | ||
</li> | ||
<li class="usa-footer__secondary-link"> | ||
<a href="/?state=archived">Archived Challenges</a> | ||
</li> | ||
<li class="usa-footer__secondary-link"> | ||
<a href="/#active-challenges">Active Challenges</a> | ||
</li> | ||
</ul> | ||
</div> | ||
<div class="grid-col-5 mobile-lg:grid-col-6 desktop:grid-col-3"> | ||
<%# Col 3 %> | ||
<ul class="usa-list usa-list--unstyled"> | ||
<li class="usa-footer__secondary-link"> | ||
<a href="https://www.gsa.gov/website-information/website-policies#privacy">GSA Privacy Policy</a> | ||
</li> | ||
<li class="usa-footer__secondary-link"> | ||
<a href="https://www.gsa.gov/website-information/accessibility-aids">Accessibility</a> | ||
</li> | ||
<li class="usa-footer__secondary-link"> | ||
<a href="https://www.gsa.gov/reference/freedom-of-information-act-foia">FOIA</a> | ||
</li> | ||
<li class="usa-footer__secondary-link"> | ||
<a href="https://www.usa.gov/">USA.gov</a> | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
</nav> | ||
</div> | ||
</div> | ||
<div class="usa-footer__secondary-section bg-primary-darker footer-white"> | ||
<div class="grid-container"> | ||
<div class="grid-row"> | ||
<div class="usa-footer__logo flex-no-wrap flex-justify-end tablet:flex-justify-start margin-y-1 mobile-lg:grid-gap-2 mobile-lg:grid-col-12 tablet:grid-col-6"> | ||
<div class="order-1 tablet:order-2" style="display: flex; align-items: center;"> | ||
<img class="usa-footer__logo-img" src="<%= image_path('challenge-logo-white-orange.svg') %>" title="Challenge Gov wordmark" alt="Challenge Gov wordmark in footer" style="width: 220px; height: auto;" /> | ||
</div> | ||
<div class="order-2 tablet:order-1"> | ||
<img class="usa-footer__logo-img" src="<%= image_path('challenge-logo-square-white.svg') %>" title="GSA Star Mark" alt="GSA Star Mark" style="width: 60px; height: auto;" /> | ||
</div> | ||
</div> | ||
<div class="usa-footer__contact-links mobile-lg:grid-col-12 tablet:grid-col-6 margin-y-1 footer-white"> | ||
<div class="usa-footer__social-links flex-justify-end grid-row grid-gap-1"> | ||
<div class="grid-col-auto"> | ||
<a class="usa-social-link" href="https://www.twitter.com/ChallengeGov"> | ||
<%= image_tag('images/usa-icons/twitter.svg', class: "usa-social-link__icon", alt: "Twitter") %> | ||
</a> | ||
</div> | ||
<div class="grid-col-auto"> | ||
<a class="usa-social-link" href="https://www.facebook.com/ChallengeGov"> | ||
<%= image_tag('images/usa-icons/facebook.svg', class: "usa-social-link__icon", alt: "Facebook") %> | ||
</a> | ||
</div> | ||
<div class="grid-col-auto"> | ||
<a class="usa-social-link" href="https://www.youtube.com/@challenge-gov"> | ||
<%= image_tag('images/usa-icons/youtube.svg', class: "usa-social-link__icon", alt: "YouTube") %> | ||
</a> | ||
</div> | ||
<div class="grid-col-auto"> | ||
<a class="usa-social-link" href="https://www.linkedin.com/company/challengegov/"> | ||
<%= image_tag('images/usa-icons/linkedin.svg', class: "usa-social-link__icon", alt: "LinkedIn") %> | ||
</a> | ||
</div> | ||
<div class="grid-col-auto"> | ||
<a class="usa-social-link" href="https://github.com/GSA/Challenge_gov"> | ||
<%= image_tag('images/usa-icons/github.svg', class: "usa-social-link__icon", alt: "Github") %> | ||
</a> | ||
</div> | ||
</div> | ||
<div class="grid-row flex-column text-right"> | ||
<p class="usa-footer__contact-heading"> | ||
Contact Us | ||
</p> | ||
<address class="usa-footer__address"> | ||
<div class="usa-footer__contact-info"> | ||
<div class="text-white"> | ||
<a style="color:white" href="mailto:[email protected]">[email protected]</a> | ||
</div> | ||
</div> | ||
</address> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</footer> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,5 +16,6 @@ | |
<body> | ||
<%= render "layouts/header" %> | ||
<%= yield %> | ||
<%= render "layouts/footer" %> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -294,81 +294,4 @@ | |
</tr> | ||
</tbody> | ||
</table> | ||
<h3 class="site-preview-heading" id="slim-footer">Slim footer</h3> | ||
|
||
<footer class="usa-footer usa-footer--slim"> | ||
<div class="grid-container usa-footer__return-to-top"> | ||
<a href="#">Return to top</a> | ||
</div> | ||
<div class="usa-footer__primary-section"> | ||
<div class="usa-footer__primary-container grid-row"> | ||
<div class="mobile-lg:grid-col-8"> | ||
<nav class="usa-footer__nav" aria-label="Footer navigation,"> | ||
<ul class="grid-row grid-gap"> | ||
<li | ||
class="mobile-lg:grid-col-6 desktop:grid-col-auto usa-footer__primary-content" | ||
> | ||
<a class="usa-footer__primary-link" href="javascript:void(0);" | ||
><Primary link></a | ||
> | ||
</li> | ||
<li | ||
class="mobile-lg:grid-col-6 desktop:grid-col-auto usa-footer__primary-content" | ||
> | ||
<a class="usa-footer__primary-link" href="javascript:void(0);" | ||
><Primary link></a | ||
> | ||
</li> | ||
<li | ||
class="mobile-lg:grid-col-6 desktop:grid-col-auto usa-footer__primary-content" | ||
> | ||
<a class="usa-footer__primary-link" href="javascript:void(0);" | ||
><Primary link></a | ||
> | ||
</li> | ||
<li | ||
class="mobile-lg:grid-col-6 desktop:grid-col-auto usa-footer__primary-content" | ||
> | ||
<a class="usa-footer__primary-link" href="javascript:void(0);" | ||
><Primary link></a | ||
> | ||
</li> | ||
</ul> | ||
</nav> | ||
</div> | ||
<div class="mobile-lg:grid-col-4"> | ||
<address class="usa-footer__address"> | ||
<div class="grid-row grid-gap"> | ||
<div | ||
class="grid-col-auto mobile-lg:grid-col-12 desktop:grid-col-auto" | ||
> | ||
<div class="usa-footer__contact-info"> | ||
<a href="tel:1-800-555-5555"><(800) 555-GOVT></a> | ||
</div> | ||
</div> | ||
<div | ||
class="grid-col-auto mobile-lg:grid-col-12 desktop:grid-col-auto" | ||
> | ||
<div class="usa-footer__contact-info"> | ||
<a href="mailto:[email protected]"><[email protected]></a> | ||
</div> | ||
</div> | ||
</div> | ||
</address> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="usa-footer__secondary-section"> | ||
<div class="grid-container"> | ||
<div class="usa-footer__logo grid-row grid-gap-2"> | ||
<div class="grid-col-auto"> | ||
<img width="1024" class="usa-footer__logo-img" src="<%= image_path("challenge-logo.svg") %>" alt="" /> | ||
</div> | ||
<div class="grid-col-auto"> | ||
<p class="usa-footer__logo-heading"><Agency Contact Center></p> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</footer> | ||
</section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
require "rails_helper" | ||
|
||
RSpec.describe "DashboardController" do | ||
describe "GET /" do | ||
before { get "/" } | ||
|
||
it_behaves_like "a page with footer content" | ||
end | ||
|
||
describe "GET /dashboard" do | ||
before { get "/dashboard" } | ||
|
||
it_behaves_like "a page with footer content" | ||
end | ||
end |
Oops, something went wrong.