-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use static embed markup for mobile preview
- Loading branch information
Showing
6 changed files
with
126 additions
and
80 deletions.
There are no files selected for viewing
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
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,116 @@ | ||
--- | ||
title: Mobile Embed | ||
layout: base | ||
--- | ||
|
||
<div class="usa-overlay"></div> | ||
<div class="usa-header usa-header--extended"> | ||
<div class="usa-nav-container"> | ||
<div class="usa-navbar"> | ||
<div class="usa-logo"> | ||
<a href="{{ site.baseurl }}"> | ||
<img | ||
src="{{ site.baseurl }}/assets/img/login-gov-logo.svg" | ||
class="usa-logo__img" | ||
alt="Login.gov Homepage" | ||
width="179" | ||
height="24" | ||
/> | ||
</a> | ||
</div> | ||
|
||
<button class="usa-menu-btn">Menu</button> | ||
</div> | ||
|
||
<nav class="usa-nav" aria-label="Primary links"> | ||
<div class="usa-nav__inner"> | ||
<button class="usa-nav__close" aria-label="Close"> | ||
<svg class="usa-icon usa-icon--size-3" aria-hidden="true" role="img"> | ||
<use xlink:href="{{ site.baseurl }}/assets/img/sprite.svg#close"></use> | ||
</svg> | ||
</button> | ||
<ul class="usa-nav__primary usa-accordion"> | ||
<li class="usa-nav__primary-item"> | ||
<a class="usa-nav__link" href="{{ site.baseurl }}"> | ||
Navigation Link | ||
</a> | ||
</li> | ||
<li class="usa-nav__primary-item"> | ||
<a class="usa-nav__link usa-current" href="{{ site.baseurl }}"> | ||
Current Navigation Link | ||
</a> | ||
</li> | ||
<li class="usa-nav__primary-item"> | ||
<button | ||
type="button" | ||
class="usa-accordion__button usa-nav__link" | ||
aria-expanded="false" | ||
aria-controls="nav-section" | ||
> | ||
<span>Section</span> | ||
</button> | ||
<ul id="nav-section" class="usa-nav__submenu" hidden> | ||
<li class="usa-nav__submenu-item"> | ||
<a href="{{ site.baseurl }}"> | ||
<span>Navigation Link</span> | ||
</a> | ||
</li> | ||
<li class="usa-nav__submenu-item"> | ||
<a href="{{ site.baseurl }}"> | ||
<span>Navigation Link</span> | ||
</a> | ||
</li> | ||
<li class="usa-nav__submenu-item"> | ||
<a href="{{ site.baseurl }}"> | ||
<span>Navigation Link</span> | ||
</a> | ||
</li> | ||
</ul> | ||
</li> | ||
<li class="usa-nav__primary-item"> | ||
<button | ||
type="button" | ||
class="usa-accordion__button usa-nav__link usa-current" | ||
aria-expanded="false" | ||
aria-controls="current-nav-section" | ||
> | ||
<span>Current Section</span> | ||
</button> | ||
<ul id="current-nav-section" class="usa-nav__submenu" hidden> | ||
<li class="usa-nav__submenu-item"> | ||
<a href="{{ site.baseurl }}"> | ||
<span>Navigation Link</span> | ||
</a> | ||
</li> | ||
<li class="usa-nav__submenu-item"> | ||
<a href="{{ site.baseurl }}"> | ||
<span>Navigation Link</span> | ||
</a> | ||
</li> | ||
<li class="usa-nav__submenu-item"> | ||
<a href="{{ site.baseurl }}"> | ||
<span>Navigation Link</span> | ||
</a> | ||
</li> | ||
</ul> | ||
</li> | ||
</ul> | ||
</div> | ||
</nav> | ||
</div> | ||
</div> | ||
|
||
<style> | ||
.usa-nav.is-visible { | ||
animation: none !important; | ||
} | ||
|
||
.usa-overlay { | ||
transition: none !important; | ||
} | ||
</style> | ||
<script> | ||
window.addEventListener('load', () => { | ||
document.querySelector('.usa-menu-btn').click(); | ||
}); | ||
</script> |
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 |
---|---|---|
@@ -1,9 +1,7 @@ | ||
require 'json' | ||
|
||
Jekyll::Hooks.register :site, :post_read do |site| | ||
site.collections.each do |name, collection| | ||
site.data['nav'] = collection.docs. | ||
filter { |doc| doc.basename != 'index.md'}. | ||
map { |doc| { 'href' => doc.url } } | ||
end | ||
site.data['nav'] = site.collections['components'].docs. | ||
filter { |doc| doc.basename != 'index.md'}. | ||
map { |doc| { 'href' => doc.url } } | ||
end |
This file was deleted.
Oops, something went wrong.