Skip to content

Commit

Permalink
Dark mode: add new navbar mode selector example (#2436)
Browse files Browse the repository at this point in the history
Co-authored-by: louismaxime.piton <[email protected]>
  • Loading branch information
julien-deramond and louismaximepiton committed Jan 2, 2024
1 parent 3e296d0 commit aca124d
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
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.

0 comments on commit aca124d

Please sign in to comment.