Add Dark mode toggle

This commit is contained in:
James Musselman 2023-11-30 02:40:55 -06:00
parent 11b374743c
commit f2251dba22

View file

@ -15,16 +15,27 @@
</head>
<body class="d-flex flex-column min-vh-100 ">
<nav class="navbar navbar-expand-lg border-bottom p-2">
<nav class="navbar navbar-expand-lg border-bottom p-2 gap-2">
<div class="container-fluid">
<a class="navbar-brand" href="/">
<img src="/static/favicon.ico" alt="" width="24" height="24" class="d-inline-block align-text-top">
Notatio
</a>
<div class="ms-auto order-lg-2">
<button class="btn" id="darkModeButton">
<i id="darkModeIcon" class="fas fa-sun"></i>
</button>
</div>
<div class="order-lg-1">
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav"
aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse justify-content-end" id="navbarNav">
</div>
<div class="collapse navbar-collapse justify-content-end order-lg-1" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="#" data-bs-toggle="modal" data-bs-target="#loginModal">Login</a>
@ -32,14 +43,14 @@
<li class="nav-item">
<a class="nav-link" href="#" data-bs-toggle="modal" data-bs-target="#signupModal">Sign up</a>
</li>
<li class="nav-item">
<button id="darkModeButton" class="btn">
<i id="darkModeIcon" class="fas fa-sun"></i>
</button>
</ul>
</div>
</div>
</nav>
<main class="container">
<br>
<p>