Add Dark mode toggle
This commit is contained in:
parent
11b374743c
commit
f2251dba22
1 changed files with 37 additions and 26 deletions
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue