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

@ -9,36 +9,47 @@
<!-- Font Awesome CSS for spinner --> <!-- Font Awesome CSS for spinner -->
<link rel="stylesheet" type="text/css" <link rel="stylesheet" type="text/css"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css"> href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
<link rel="stylesheet" type="text/css" <link rel="stylesheet" type="text/css"
href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css"> href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css">
</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">
<a class="navbar-brand" href="/"> <div class="container-fluid">
<img src="/static/favicon.ico" alt="" width="24" height="24" class="d-inline-block align-text-top"> <a class="navbar-brand" href="/">
Notatio <img src="/static/favicon.ico" alt="" width="24" height="24" class="d-inline-block align-text-top">
</a> Notatio
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" </a>
aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span> <div class="ms-auto order-lg-2">
</button> <button class="btn" id="darkModeButton">
<div class="collapse navbar-collapse justify-content-end" id="navbarNav"> <i id="darkModeIcon" class="fas fa-sun"></i>
<ul class="navbar-nav"> </button>
<li class="nav-item"> </div>
<a class="nav-link" href="#" data-bs-toggle="modal" data-bs-target="#loginModal">Login</a>
</li> <div class="order-lg-1">
<li class="nav-item"> <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav"
<a class="nav-link" href="#" data-bs-toggle="modal" data-bs-target="#signupModal">Sign up</a> aria-expanded="false" aria-label="Toggle navigation">
</li> <span class="navbar-toggler-icon"></span>
<li class="nav-item"> </button>
<button id="darkModeButton" class="btn"> </div>
<i id="darkModeIcon" class="fas fa-sun"></i>
</button> <div class="collapse navbar-collapse justify-content-end order-lg-1" id="navbarNav">
</ul> <ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="#" data-bs-toggle="modal" data-bs-target="#loginModal">Login</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#" data-bs-toggle="modal" data-bs-target="#signupModal">Sign up</a>
</li>
</ul>
</div>
</div> </div>
</nav> </nav>
<main class="container"> <main class="container">
<br> <br>
@ -49,7 +60,7 @@
Notatio provides a user-friendly interface combined with robust features, making it the perfect choice for Notatio provides a user-friendly interface combined with robust features, making it the perfect choice for
developers, writers, and anyone who interacts with text on a daily basis. developers, writers, and anyone who interacts with text on a daily basis.
</p> </p>
<p><strong>Notatio is <u>currently</u> an alpha software! Do not use it as your daily driver!</strong></p> <p><strong>Notatio is <u>currently</u> an alpha software! Do not use it as your daily driver!</strong></p>
<h1 class="mt-4">Text Editor Comparison</h1> <h1 class="mt-4">Text Editor Comparison</h1>
<div class="table-responsive"> <div class="table-responsive">
@ -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>
@ -215,7 +226,7 @@
<a href="https://codeberg.org/notatio/notatio#download" class="mx-2 text-muted">Download</a> <a href="https://codeberg.org/notatio/notatio#download" class="mx-2 text-muted">Download</a>
<a href="https://codeberg.org/notatio/notatio/wiki" class="mx-2 text-muted">Documentation</a> <a href="https://codeberg.org/notatio/notatio/wiki" class="mx-2 text-muted">Documentation</a>
<a href="https://codeberg.org/notatio/notatio/issues" class="mx-2 text-muted">Report Issues</a> <a href="https://codeberg.org/notatio/notatio/issues" class="mx-2 text-muted">Report Issues</a>
</div> </div>
</footer> </footer>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"></script>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script> <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>