Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
akraut1 authored Nov 22, 2024
1 parent 06e6262 commit fcdc426
Showing 1 changed file with 24 additions and 6 deletions.
30 changes: 24 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,25 +1,43 @@
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Meta Tags, Title, etc. -->
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dark Mode</title>
<link rel="stylesheet" href="styles.css">
<!-- External Stylesheet -->
<link rel="stylesheet" href="https://akraut1.github.io/pricing-engine/styles.css">
<!-- External Dark Mode Javascript -->
<script src="https://akraut1.github.io/pricing-engine/darkmode.js"></script>
</head>
<body>
<div class="darkmode.toggle" id="darkmode-container">
<input type="checkbox" id="darkmode-toggle">
<label for="darkmode-toggle">
<!-- Your Form and Other Content -->

<!-- Dark Mode Toggle Container -->
<div id="darkmode-container">
<!-- Hidden Checkbox Input -->
<input type="checkbox" id="darkmode-toggle" aria-label="Toggle Dark Mode">

<!-- Label for the Checkbox to Style the Toggle -->
<label for="darkmode-toggle" class="toggle-label">
<div class="circle">
<!-- Sun Icon -->
<svg class="sun" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
<!-- Sun SVG path -->
<!-- Sun SVG Path -->
<path d="M12 2.25a.75.75 0 0 1 .75.75v2.25a.75.75 0 0 1-1.5 0V3a.75.75 0 0 1 .75-.75ZM7.5 12a4.5 4.5 0 1 1 9 0 4.5 4.5 0 0 1-9 0ZM18.894 6.166a.75.75 0 0 0-1.06-1.06l-1.591 1.59a.75.75 0 1 0 1.06 1.061l1.591-1.59ZM21.75 12a.75.75 0 0 1-.75.75h-2.25a.75.75 0 0 1 0-1.5H21a.75.75 0 0 1 .75.75ZM17.834 18.894a.75.75 0 0 0 1.06-1.06l-1.59-1.591a.75.75 0 1 0-1.061 1.06l1.59 1.591ZM12 18a.75.75 0 0 1 .75.75V21a.75.75 0 0 1-1.5 0v-2.25A.75.75 0 0 1 12 18ZM7.758 17.303a.75.75 0 0 0-1.061-1.06l-1.591 1.59a.75.75 0 0 0 1.06 1.061l1.591-1.59ZM6 12a.75.75 0 0 1-.75.75H3a.75.75 0 0 1 0-1.5h2.25A.75.75 0 0 1 6 12ZM6.697 7.757a.75.75 0 0 0 1.06-1.06l-1.59-1.591a.75.75 0 0 0-1.061 1.06l1.59 1.591Z" />
</svg>
<!-- Moon Icon -->
<svg class="moon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
<!-- Moon SVG path -->
<!-- Moon SVG Path -->
<path fill-rule="evenodd" d="M9.528 1.718a.75.75 0 0 1 .162.819A8.97 8.97 0 0 0 9 6a9 9 0 0 0 9 9 8.97 8.97 0 0 0 3.463-.69.75.75 0 0 1 .981.98 10.503 10.503 0 0 1-9.694 6.46c-5.799 0-10.5-4.7-10.5-10.5 0-4.368 2.667-8.112 6.46-9.694a.75.75 0 0 1 .818.162Z" clip-rule="evenodd" />
</svg>
</div>
</label>
</div>

<!-- Your Form and Other Content -->

<!-- External Scripts (if any) -->
<script src="darkmode.js"></script>
</body>
</html>

0 comments on commit fcdc426

Please sign in to comment.