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> </head>
<body class="d-flex flex-column min-vh-100 "> <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="/"> <a class="navbar-brand" href="/">
<img src="/static/favicon.ico" alt="" width="24" height="24" class="d-inline-block align-text-top"> <img src="/static/favicon.ico" alt="" width="24" height="24" class="d-inline-block align-text-top">
Notatio Notatio
</a> </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" <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav"
aria-expanded="false" aria-label="Toggle navigation"> aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span> <span class="navbar-toggler-icon"></span>
</button> </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"> <ul class="navbar-nav">
<li class="nav-item"> <li class="nav-item">
<a class="nav-link" href="#" data-bs-toggle="modal" data-bs-target="#loginModal">Login</a> <a class="nav-link" href="#" data-bs-toggle="modal" data-bs-target="#loginModal">Login</a>
@ -32,14 +43,14 @@
<li class="nav-item"> <li class="nav-item">
<a class="nav-link" href="#" data-bs-toggle="modal" data-bs-target="#signupModal">Sign up</a> <a class="nav-link" href="#" data-bs-toggle="modal" data-bs-target="#signupModal">Sign up</a>
</li> </li>
<li class="nav-item">
<button id="darkModeButton" class="btn">
<i id="darkModeIcon" class="fas fa-sun"></i>
</button>
</ul> </ul>
</div> </div>
</div>
</nav> </nav>
<main class="container"> <main class="container">
<br> <br>
<p> <p>
@ -155,7 +166,7 @@
<div class="invalid-feedback">Please provide the name you would like to be addressed by. <div class="invalid-feedback">Please provide the name you would like to be addressed by.
</div><br> </div><br>
<label for="email" class="form-label">Email:</label> <label for="email" class="form-label">Email:</label>
<input type="email" name="email" id="email" required class="form-control" > <input type="email" name="email" id="email" required class="form-control">
<div class="invalid-feedback">Please provide a valid email for password recovery.</div> <div class="invalid-feedback">Please provide a valid email for password recovery.</div>
<br> <br>
<label for="username" class="form-label">Username:</label> <label for="username" class="form-label">Username:</label>