ilhamdev commited on
Commit
68a5462
·
verified ·
1 Parent(s): b8c8803

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +14 -7
index.html CHANGED
@@ -366,17 +366,24 @@ footer {
366
  <h1>LuminAI API Client</h1>
367
  </header>
368
  <div class="container">
369
- <div class="toggle-switch">
370
- <input type="checkbox" id="theme-switch">
371
- <label for="theme-switch" class="toggle-container">
372
- <div class="sun">☀️</div>
373
- <div class="dot"></div>
374
- <div class="moon">🌙</div>
375
- </label>
 
 
 
 
 
 
376
  </div>
377
 
378
 
379
 
 
380
  <script>
381
  document.getElementById('theme-switch').addEventListener('change', function() {
382
  var dot = document.querySelector('.dot');
 
366
  <h1>LuminAI API Client</h1>
367
  </header>
368
  <div class="container">
369
+ <div class="toggle-switch" style="position: absolute; top: 10px; right: 10px;">
370
+ <input type="checkbox" id="theme-switch">
371
+ <label for="theme-switch" style="display: flex; align-items: center; justify-content: space-between; padding: 2px;">
372
+ <div class="sun">
373
+ <!-- Ganti dengan kode SVG untuk ikon matahari -->
374
+ </div>
375
+ <div class="slider" style="background-color: #ccc; border-radius: 34px; width: 50px; height: 26px; position: relative;">
376
+ <div class="dot" style="background-color: #fff; border-radius: 50%; width: 22px; height: 22px; position: absolute; top: 2px; left: 2px; transition: 0.3s;"></div>
377
+ </div>
378
+ <div class="moon">
379
+ <!-- Ganti dengan kode SVG untuk ikon bulan -->
380
+ </div>
381
+ </label>
382
  </div>
383
 
384
 
385
 
386
+
387
  <script>
388
  document.getElementById('theme-switch').addEventListener('change', function() {
389
  var dot = document.querySelector('.dot');