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

Dark mode: add new navbar mode selector example #2436

Merged
Merged
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
24 changes: 24 additions & 0 deletions site/content/docs/5.3/examples/navbar-mode-selector/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
layout: examples
title: Navbar with mode selector
theme_selector: false
aliases:
- "/examples/navbar-mode-selector"
- "/docs/examples/navbar-mode-selector"
---

<main>
<header class="sticky-top" data-bs-theme="dark">
{{< orange-supra mode="languages" aria_label="Supra navigation - Mode selector example" >}}
{{< /orange-supra >}}

{{< orange-global-headers id="global-header-1" mode="theme" supra=true demo=true aria_label="Global navigation - Mode selector example">}}
{{< /orange-global-headers >}}
</header>
<div class="container-xxl pt-4">
<h1>Title</h1>
<p class="lead">Lorem ipsum dolor sit amet consectetur adipisicing elit. Dolorum mollitia provident fuga animi voluptatem consequatur perspiciatis cum quos maiores, nesciunt dicta et dolor repellat eum odio id nihil, eos nostrum?</p>
<button type="button" class="btn btn-primary">Primary</button>
<button type="button" class="btn btn-secondary">Secondary</button>
</div>
</main>
2 changes: 2 additions & 0 deletions site/data/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@
description: "Demonstration of all responsive and container options for the navbar."
- name: Navbar sticky
description: "Single navbar example of a sticky-top navbar along with some additional content."
- name: Navbar mode selector
description: "Single navbar example with a mode selector to switch between light and dark mode."

- category: Pages
description: "Complete reusable pages that can be found in the Design Guidelines."
Expand Down
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.