Skip to content

Commit

Permalink
Merge pull request #86 from sul-dlss/header-menu
Browse files Browse the repository at this point in the history
move mobile menu to under title
  • Loading branch information
jcoyne authored Jan 15, 2025
2 parents ad812a8 + 0a9713e commit 0e7050f
Show file tree
Hide file tree
Showing 3 changed files with 494 additions and 387 deletions.
389 changes: 2 additions & 387 deletions header/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,395 +29,10 @@
<body>
<h1>Headers</h1>
<h2>With navigation links</h2>
<nav
id="skip-link"
class="visually-hidden-focusable"
aria-label="Skip links"
>
<div class="container-xl">
<a class="d-inline-flex m-1 py-2 px-3" href="#search_field"
>Skip to search</a
>
<a class="d-inline-flex m-1 py-2 px-3" href="#main-container"
>Skip to main content</a
>
<a class="d-inline-flex m-1 py-2 px-3" href="#documents"
>Skip to first result</a
>
</div>
</nav>
<header>
<div class="identity-bar">
<div class="container">
<a class="su-brand-bar__logo" href="https://www.stanford.edu"
>Stanford University</a
>
</div>
</div>
<nav class="navbar navbar-expand-md bg-dark palo-alto-dark">
<div class="container">
<a
class="mb-0 navbar-brand navbar-logo"
href="https://library.stanford.edu"
>Stanford University Libraries</a
>
<button
class="navbar-toggler navbar-toggler-right collapsed"
type="button"
data-toggle="collapse"
data-bs-toggle="collapse"
data-target="#user-util-collapse"
data-bs-target="#user-util-collapse"
aria-controls="user-util-collapse"
aria-expanded="false"
aria-label="Toggle navigation"
>
<span class="navbar-toggler-icon"></span>
</button>

<div
class="collapse navbar-collapse justify-content-md-end"
id="user-util-collapse"
>
<ul class="navbar-nav">
<li class="nav-item d-md-none">
<a href="#item1" class="nav-link">Item 1</a>
</li>
<li class="nav-item d-md-none">
<a href="#item1" class="nav-link">Item 2</a>
</li>
<hr />
<li class="nav-item">
<a id="bookmarks_nav" class="nav-link" href="/bookmarks">
Bookmarks
<span
class="badge badge-secondary bg-secondary"
data-role="bookmark-counter"
>0</span
>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/search_history">History</a>
</li>
<li class="nav-item">
<a
href="#feedback"
class="nav-link"
data-bs-toggle="collapse"
data-bs-target="#feedback"
>Feedback</a
>
</li>
</ul>
</div>
</div>
</nav>

<div id="feedback" class="collapse">
<div class="container pt-3">
<div class="row justify-content-center">
<form
class="col-md-8"
action="/feedback"
accept-charset="UTF-8"
method="post"
>
<div class="alert alert-info" role="alert">
Reporting from:
https://sul-arclight-prod-a.stanford.edu/catalog?group=true&amp;q=
</div>
<div class="mb-3 row">
<label class="col-md-3 col-form-label" for="message"
>Message</label
>
<div class="col-md-9">
<textarea
class="form-control"
rows="5"
required="required"
data-form-type="other"
name="message"
id="message"
></textarea>
</div>
</div>
<div class="mb-3 row">
<label class="col-md-3 col-form-label" for="name"
>Your name</label
>
<div class="col-md-9">
<input
class="form-control"
required="required"
data-form-type="other"
autocomplete="name"
type="text"
name="name"
id="name"
/>
</div>
</div>
<div class="mb-3 row">
<label class="col-md-3 col-form-label" for="email"
>Your email</label
>
<div class="col-md-9">
<input
class="form-control"
required="required"
data-form-type="other"
autocomplete="email"
type="email"
name="email"
id="email"
/>
<p class="text-secondary mt-2 mb-0">
This site is protected by reCAPTCHA and the Google
<a href="https://policies.google.com/privacy"
>Privacy Policy</a
>
and
<a href="https://policies.google.com/terms"
>Terms of Service</a
>
apply.
</p>
</div>
</div>
<div class="mb-3 row">
<div class="col-md-9 offset-md-3">Recaptcha stuff</div>
</div>
<div class="mb-3 row">
<div class="col-md-9 offset-md-3">
<input
type="submit"
name="commit"
value="Send"
class="btn btn-secondary"
data-disable-with="Send"
/>
<button
name="button"
type="button"
data-action="feedback#cancel"
class="btn btn-outline-secondary"
>
Cancel
</button>
</div>
</div>
</form>
</div>
</div>
</div>
<div class="masthead bg-dark palo-alto-dark">
<div class="container">
<div class="row align-items-center">
<div
class="col-md-8 d-flex"
>
<div class="h1 my-4"><a href="/">Website at Stanford</a></div>
</div>
<div class="col-md-4 d-none d-md-block">
<nav
class="navbar navbar-expand d-flex justify-content-end"
aria-label="browse"
>
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="/item1">Item 1</a>
</li>
<li class="nav-item ms-3">
<a class="nav-link" href="/item2">Item 2</a>
</li>
</ul>
</nav>
</div>
</div>
</div>
</div>
</header>

<div class="container">
Note: the <code>data-form-type="other"</code> attribute is a workaround
for a bug in Dashlane password manager. See
<a href="https://github.com/sul-dlss/vt-arclight/issues/495"
>https://github.com/sul-dlss/vt-arclight/issues/495</a
>
</div>
<iframe src="with_navigation_links.html" style="width: 100vw; height: 100vh"></iframe>

<h2 class="mt-5">Without navigation links</h2>
<nav id="skip-link" aria-label="Skip links">
<!-- skip links here -->
</nav>
<header>
<div class="container">
<a class="su-brand-bar__logo" href="https://www.stanford.edu"
>Stanford University</a
>
</div>
<nav class="navbar navbar-expand-md bg-dark palo-alto-dark">
<div class="container">
<a
class="mb-0 navbar-brand navbar-logo"
href="https://library.stanford.edu"
>Stanford Libraries</a
>
<button
class="navbar-toggler navbar-toggler-right collapsed"
type="button"
data-toggle="collapse"
data-bs-toggle="collapse"
data-target="#user-util-collapse"
data-bs-target="#user-util-collapse"
aria-controls="user-util-collapse"
aria-expanded="false"
aria-label="Toggle navigation"
>
<span class="navbar-toggler-icon"></span>
</button>

<div
class="collapse navbar-collapse justify-content-md-end"
id="user-util-collapse"
>
<ul class="navbar-nav">
<li class="nav-item">
<a id="bookmarks_nav" class="nav-link" href="/bookmarks">
Bookmarks
<span
class="badge badge-secondary bg-secondary"
data-role="bookmark-counter"
>0</span
>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/search_history">History</a>
</li>
<li class="nav-item">
<a
href="#feedback"
class="nav-link"
data-bs-toggle="collapse"
data-bs-target="#feedback"
>Feedback</a
>
</li>
</ul>
</div>
</div>
</nav>
<iframe src="without_navigation_links.html" style="width: 100vw; height: 100vh"></iframe>

<div id="feedback" class="collapse">
<div class="container pt-3">
<div class="row justify-content-center">
<form
class="col-md-8"
action="/feedback"
accept-charset="UTF-8"
method="post"
>
<div class="alert alert-info" role="alert">
Reporting from:
https://sul-arclight-prod-a.stanford.edu/catalog?group=true&amp;q=
</div>
<div class="mb-3 row">
<label class="col-md-3 col-form-label" for="message"
>Message</label
>
<div class="col-md-9">
<textarea
class="form-control"
rows="5"
required="required"
data-form-type="other"
name="message"
id="message"
></textarea>
</div>
</div>
<div class="mb-3 row">
<label class="col-md-3 col-form-label" for="name"
>Your name</label
>
<div class="col-md-9">
<input
class="form-control"
required="required"
data-form-type="other"
autocomplete="name"
type="text"
name="name"
id="name"
/>
</div>
</div>
<div class="mb-3 row">
<label class="col-md-3 col-form-label" for="email"
>Your email</label
>
<div class="col-md-9">
<input
class="form-control"
required="required"
data-form-type="other"
autocomplete="email"
type="email"
name="email"
id="email"
/>
<p class="text-secondary mt-2 mb-0">
This site is protected by reCAPTCHA and the Google
<a href="https://policies.google.com/privacy"
>Privacy Policy</a
>
and
<a href="https://policies.google.com/terms"
>Terms of Service</a
>
apply.
</p>
</div>
</div>
<div class="mb-3 row">
<div class="col-md-9 offset-md-3">Recaptcha stuff</div>
</div>
<div class="mb-3 row">
<div class="col-md-9 offset-md-3">
<input
type="submit"
name="commit"
value="Send"
class="btn btn-secondary"
data-disable-with="Send"
/>
<button
name="button"
type="button"
data-action="feedback#cancel"
class="btn btn-outline-secondary"
>
Cancel
</button>
</div>
</div>
</form>
</div>
</div>
</div>
<div class="masthead bg-dark palo-alto-dark">
<div class="container">
<div class="row align-items-center">
<div
class="col-md-8 d-flex"
>
<div class="h1 my-3"><a href="/">Website at Stanford</a></div>
</div>
</div>
</div>
</div>
</header>
</body>
</html>
Loading

0 comments on commit 0e7050f

Please sign in to comment.