Skip to content

Commit

Permalink
Update examples of 3 header variants
Browse files Browse the repository at this point in the history
Closes #89
  • Loading branch information
thatbudakguy committed Jan 17, 2025
1 parent 93524fd commit eae92cd
Show file tree
Hide file tree
Showing 9 changed files with 1,028 additions and 48 deletions.
238 changes: 238 additions & 0 deletions header/dark.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,238 @@
<!doctype html>
<html lang="en">
<head>
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH"
crossorigin="anonymous"
/>

<link href="../styles/sul.css" rel="stylesheet" />

<style>
.palo-alto-dark {
--bs-dark-rgb: var(--stanford-palo-alto-dark-rgb);
}
</style>
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz"
crossorigin="anonymous"
></script>
<script
type="module"
src="https://unpkg.com/@github/auto-complete-element@latest/dist/bundle.js"
></script>
</head>
<body>
<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 primary-nav">
<li class="nav-item">
<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>
</ul>
<hr class="text-bg-dark"/>
<ul class="navbar-nav secondary-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>
<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-primary"
data-disable-with="Send"
/>
<button
name="button"
type="button"
data-action="feedback#cancel"
class="btn btn-outline-primary"
>
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 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>
</body>
</html>
Loading

0 comments on commit eae92cd

Please sign in to comment.