Files
trafficpumper/docs/theme-prototype/index.html
T
2026-08-29 15:53:53 +03:00

84 lines
4.3 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!doctype html>
<html lang="tr" data-bs-theme="light">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="color-scheme" content="light dark">
<title>TrafficPumper Tema Altyapısı</title>
<!-- Senkron yüklenir: ilk boya yapılmadan önce kayıtlı/aktif temayı uygular. -->
<script src="assets/js/theme-manager.js"></script>
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-sRIl4kxILFvY47J16cr9ZwB07vP4J8+LH7qKQnuqkuIAvNWLzeN8tE5YBujZqJLB"
crossorigin="anonymous"
>
<link rel="stylesheet" href="assets/css/app.css">
</head>
<body>
<nav class="navbar border-bottom bg-body-tertiary" aria-label="Ana navigasyon">
<div class="container py-2 gap-3">
<a class="navbar-brand fw-semibold" href="#">TrafficPumper</a>
<div class="dropdown ms-auto">
<button
class="btn btn-outline-secondary dropdown-toggle d-flex align-items-center gap-2"
type="button"
data-bs-toggle="dropdown"
aria-expanded="false"
aria-label="Tema seç"
>
<span data-theme-current-icon aria-hidden="true"></span>
<span data-theme-current-label>Sistem</span>
</button>
<ul class="dropdown-menu dropdown-menu-end shadow-sm" data-theme-picker>
<li><button class="dropdown-item d-flex gap-2" type="button" data-theme-value="light"><span aria-hidden="true"></span> Açık</button></li>
<li><button class="dropdown-item d-flex gap-2" type="button" data-theme-value="dark"><span aria-hidden="true"></span> Karanlık</button></li>
<li><button class="dropdown-item d-flex gap-2" type="button" data-theme-value="system"><span aria-hidden="true"></span> Sistem</button></li>
</ul>
</div>
</div>
</nav>
<main class="container py-5">
<section class="row align-items-center g-5 py-lg-5">
<div class="col-lg-7">
<span class="badge text-bg-primary mb-3">Ortak tema temeli</span>
<h1 class="display-5 fw-bold">Açık, karanlık ve sistem teması hazır.</h1>
<p class="lead text-body-secondary mt-3">
Seçiminiz bu tarayıcıda saklanır ve tüm TrafficPumper ekranlarında ortak kullanılabilir.
</p>
<div class="d-flex flex-wrap gap-2 mt-4" role="group" aria-label="Hızlı tema seçimi" data-theme-picker>
<button class="btn btn-outline-primary" type="button" data-theme-value="light">☀ Açık</button>
<button class="btn btn-outline-primary" type="button" data-theme-value="dark">☾ Karanlık</button>
<button class="btn btn-outline-primary" type="button" data-theme-value="system">◐ Sistem</button>
</div>
</div>
<div class="col-lg-5">
<div class="card border-0 shadow-sm">
<div class="card-body p-4 p-md-5">
<h2 class="h4">Tema durumu</h2>
<dl class="row mb-0 mt-4">
<dt class="col-6 text-body-secondary">Tercih</dt>
<dd class="col-6 text-end fw-semibold" data-theme-preference>Sistem</dd>
<dt class="col-6 text-body-secondary">Etkin tema</dt>
<dd class="col-6 text-end fw-semibold" data-theme-resolved></dd>
</dl>
<hr>
<p class="small text-body-secondary mb-0">
“Sistem” seçiliyken işletim sistemi teması değiştiğinde bu alan anında güncellenir.
</p>
</div>
</div>
</div>
</section>
</main>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/js/bootstrap.bundle.min.js" integrity="sha384-FKyoEForCGlyvwx9Hj09JcYn3nv7wiPVlz7YYwJrWVcXK/BmnVDxM+D2scQbITxI" crossorigin="anonymous"></script>
<script src="assets/js/app.js"></script>
</body>
</html>