added light/dark mode toggle v1, unified menu
This commit is contained in:
@@ -1,138 +1,11 @@
|
||||
{% load vite %}
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<html lang="en" data-theme="dark">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Hello</title>
|
||||
<style>
|
||||
:root {
|
||||
--ink: #172033;
|
||||
--muted: #667085;
|
||||
--card: rgba(255, 255, 255, .92);
|
||||
--line: #d7ddea;
|
||||
--primary: #6255e7;
|
||||
--success-bg: #eafaf1;
|
||||
--success-ink: #176b42;
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; }
|
||||
|
||||
body {
|
||||
min-width: 320px;
|
||||
min-height: 100vh;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
margin: 0;
|
||||
padding: 1.5rem;
|
||||
color: var(--ink);
|
||||
font-family: Inter, ui-sans-serif, system-ui, -apple-system,
|
||||
BlinkMacSystemFont, "Segoe UI", sans-serif;
|
||||
background:
|
||||
radial-gradient(circle at 12% 15%, #cfe1ff 0, transparent 28rem),
|
||||
radial-gradient(circle at 88% 88%, #e6d8ff 0, transparent 26rem),
|
||||
#f6f7fb;
|
||||
}
|
||||
|
||||
.card {
|
||||
width: min(100%, 31rem);
|
||||
padding: clamp(1.75rem, 7vw, 3rem);
|
||||
border: 1px solid rgba(255, 255, 255, .85);
|
||||
border-radius: 1.5rem;
|
||||
background: var(--card);
|
||||
box-shadow: 0 1.5rem 4rem rgba(53, 56, 105, .16);
|
||||
}
|
||||
|
||||
.eyebrow {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: .5rem;
|
||||
margin: 0 0 1rem;
|
||||
color: var(--primary);
|
||||
font-size: .78rem;
|
||||
font-weight: 800;
|
||||
letter-spacing: .11em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.sparkle {
|
||||
display: grid;
|
||||
width: 1.65rem;
|
||||
aspect-ratio: 1;
|
||||
place-items: center;
|
||||
border-radius: .55rem;
|
||||
color: white;
|
||||
font-size: .95rem;
|
||||
background: linear-gradient(135deg, #7668ff, #a75ff4);
|
||||
}
|
||||
|
||||
h1 {
|
||||
margin: 0;
|
||||
font-size: clamp(2rem, 7vw, 3rem);
|
||||
letter-spacing: -.055em;
|
||||
line-height: 1.05;
|
||||
}
|
||||
|
||||
.intro {
|
||||
margin: 1rem 0 2rem;
|
||||
color: var(--muted);
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
label {
|
||||
display: block;
|
||||
margin-bottom: .55rem;
|
||||
font-size: .92rem;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
input {
|
||||
width: 100%;
|
||||
min-height: 3.15rem;
|
||||
padding: .75rem 1rem;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: .75rem;
|
||||
outline: none;
|
||||
color: var(--ink);
|
||||
font: inherit;
|
||||
background: white;
|
||||
}
|
||||
|
||||
input:focus {
|
||||
border-color: var(--primary);
|
||||
box-shadow: 0 0 0 .25rem rgba(98, 85, 231, .15);
|
||||
}
|
||||
|
||||
button {
|
||||
width: 100%;
|
||||
min-height: 3.15rem;
|
||||
margin-top: 1rem;
|
||||
border: 0;
|
||||
border-radius: .75rem;
|
||||
cursor: pointer;
|
||||
color: white;
|
||||
font: inherit;
|
||||
font-weight: 750;
|
||||
background: linear-gradient(135deg, var(--primary), #8a5ce5);
|
||||
box-shadow: 0 .65rem 1.3rem rgba(98, 85, 231, .24);
|
||||
}
|
||||
|
||||
button:hover {
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.result {
|
||||
margin: 1.5rem 0 0;
|
||||
padding: .9rem 1rem;
|
||||
border-radius: .75rem;
|
||||
color: var(--success-ink);
|
||||
line-height: 1.45;
|
||||
background: var(--success-bg);
|
||||
}
|
||||
.button { width: 100%;display:inline-flex; align-items:center; justify-content:center; gap:.6rem; min-height:2.9rem; padding:.75rem 1.05rem; border:1px solid #b3c9ff; border-radius:.8rem; color:#121a34; font:inherit; font-size:.93rem; font-weight:850; text-decoration:none; background:linear-gradient(135deg,#99c8ff,#c6adff); box-shadow:0 .65rem 1.75rem #7058dd50; transition:transform .2s ease,filter .2s ease; }
|
||||
.button:hover { transform:translateY(-2px); filter:brightness(1.08); }
|
||||
.button:focus-visible { outline:3px solid #a5c9ff80; outline-offset:3px; }
|
||||
|
||||
</style>
|
||||
{% vite_asset "frontend/src/entries/member-form.js" %}
|
||||
</head>
|
||||
<body>
|
||||
<main class="card">
|
||||
|
||||
@@ -1,218 +1,11 @@
|
||||
{% load vite %}
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<html lang="en" data-theme="dark">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Members</title>
|
||||
<style>
|
||||
:root {
|
||||
--ink: #172033;
|
||||
--muted: #667085;
|
||||
--card: rgba(255, 255, 255, .94);
|
||||
--line: #e1e6ef;
|
||||
--primary: #6255e7;
|
||||
--primary-soft: #f0eeff;
|
||||
--empty-bg: #f7f8fc;
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
min-width: 320px;
|
||||
min-height: 100vh;
|
||||
margin: 0;
|
||||
padding: clamp(1.25rem, 5vw, 4rem);
|
||||
color: var(--ink);
|
||||
font-family: Inter, ui-sans-serif, system-ui, -apple-system,
|
||||
BlinkMacSystemFont, "Segoe UI", sans-serif;
|
||||
background:
|
||||
radial-gradient(circle at 8% 8%, #d9e7ff 0, transparent 30rem),
|
||||
radial-gradient(circle at 92% 90%, #eadcff 0, transparent 30rem),
|
||||
#f6f7fb;
|
||||
}
|
||||
|
||||
.page {
|
||||
width: min(100%, 70rem);
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.card {
|
||||
overflow: hidden;
|
||||
border: 1px solid rgba(255, 255, 255, .9);
|
||||
border-radius: 1.5rem;
|
||||
background: var(--card);
|
||||
box-shadow: 0 1.5rem 4rem rgba(53, 56, 105, .14);
|
||||
}
|
||||
|
||||
.header {
|
||||
display: flex;
|
||||
align-items: end;
|
||||
justify-content: space-between;
|
||||
gap: 1.5rem;
|
||||
padding: clamp(1.5rem, 5vw, 3rem);
|
||||
border-bottom: 1px solid var(--line);
|
||||
}
|
||||
|
||||
.eyebrow {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: .5rem;
|
||||
margin: 0 0 .85rem;
|
||||
color: var(--primary);
|
||||
font-size: .78rem;
|
||||
font-weight: 800;
|
||||
letter-spacing: .11em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.sparkle {
|
||||
display: grid;
|
||||
width: 1.65rem;
|
||||
aspect-ratio: 1;
|
||||
place-items: center;
|
||||
border-radius: .55rem;
|
||||
color: white;
|
||||
font-size: .95rem;
|
||||
background: linear-gradient(135deg, #7668ff, #a75ff4);
|
||||
}
|
||||
|
||||
h1 {
|
||||
margin: 0;
|
||||
font-size: clamp(2rem, 5vw, 3.25rem);
|
||||
letter-spacing: -.06em;
|
||||
line-height: 1.05;
|
||||
}
|
||||
|
||||
.intro {
|
||||
max-width: 38rem;
|
||||
margin: .85rem 0 0;
|
||||
color: var(--muted);
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.count {
|
||||
flex: 0 0 auto;
|
||||
margin: 0;
|
||||
padding: .6rem .85rem;
|
||||
border-radius: 999px;
|
||||
color: var(--primary);
|
||||
font-size: .88rem;
|
||||
font-weight: 750;
|
||||
white-space: nowrap;
|
||||
background: var(--primary-soft);
|
||||
}
|
||||
|
||||
.table-wrap {
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
table {
|
||||
width: 100%;
|
||||
min-width: 38rem;
|
||||
border-collapse: collapse;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
th {
|
||||
padding: 1rem clamp(1.25rem, 3vw, 2rem);
|
||||
color: var(--muted);
|
||||
font-size: .75rem;
|
||||
font-weight: 800;
|
||||
letter-spacing: .08em;
|
||||
text-transform: uppercase;
|
||||
background: #fafbfe;
|
||||
}
|
||||
|
||||
td {
|
||||
padding: 1.15rem clamp(1.25rem, 3vw, 2rem);
|
||||
border-top: 1px solid var(--line);
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
tbody tr {
|
||||
transition: background .18s ease;
|
||||
}
|
||||
|
||||
tbody tr:hover {
|
||||
background: #faf9ff;
|
||||
}
|
||||
|
||||
.member {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: .85rem;
|
||||
font-weight: 750;
|
||||
}
|
||||
|
||||
.avatar {
|
||||
display: grid;
|
||||
width: 2.45rem;
|
||||
aspect-ratio: 1;
|
||||
flex: 0 0 auto;
|
||||
place-items: center;
|
||||
border-radius: 50%;
|
||||
color: var(--primary);
|
||||
font-size: .82rem;
|
||||
font-weight: 850;
|
||||
background: var(--primary-soft);
|
||||
}
|
||||
|
||||
.phone {
|
||||
color: var(--muted);
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
.date {
|
||||
color: var(--muted);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.empty {
|
||||
padding: clamp(3rem, 10vw, 6rem) 1.5rem;
|
||||
text-align: center;
|
||||
background: var(--empty-bg);
|
||||
}
|
||||
|
||||
.empty-icon {
|
||||
display: grid;
|
||||
width: 3.5rem;
|
||||
aspect-ratio: 1;
|
||||
place-items: center;
|
||||
margin: 0 auto 1rem;
|
||||
border-radius: 1rem;
|
||||
color: var(--primary);
|
||||
font-size: 1.4rem;
|
||||
background: var(--primary-soft);
|
||||
}
|
||||
|
||||
.empty h2 {
|
||||
margin: 0;
|
||||
font-size: 1.2rem;
|
||||
letter-spacing: -.03em;
|
||||
}
|
||||
|
||||
.empty p {
|
||||
margin: .5rem 0 0;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
@media (max-width: 40rem) {
|
||||
.header {
|
||||
align-items: start;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.count {
|
||||
align-self: start;
|
||||
}
|
||||
}
|
||||
.button { display:inline-flex; align-items:center; justify-content:center; gap:.6rem; min-height:2.9rem; padding:.75rem 1.05rem; border:1px solid #b3c9ff; border-radius:.8rem; color:#121a34; font:inherit; font-size:.93rem; font-weight:850; text-decoration:none; background:linear-gradient(135deg,#99c8ff,#c6adff); box-shadow:0 .65rem 1.75rem #7058dd50; transition:transform .2s ease,filter .2s ease; }
|
||||
.button:hover { transform:translateY(-2px); filter:brightness(1.08); }
|
||||
.button:focus-visible { outline:3px solid #a5c9ff80; outline-offset:3px; }
|
||||
|
||||
</style>
|
||||
{% vite_asset "frontend/src/entries/member-list.js" %}
|
||||
</head>
|
||||
<body>
|
||||
<main class="page">
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
{% load vite %}
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<html lang="en" data-theme="dark">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Sign in · Sound Signal</title>
|
||||
<style>body{min-width:320px;min-height:100vh;display:grid;place-items:center;margin:0;padding:1.5rem;color:#eef3ff;font-family:Inter,system-ui,sans-serif;background:radial-gradient(circle at 8% 0,#263a76,transparent 31rem),#090e1d}.card{width:min(100%,27rem);padding:2rem;border:1px solid #2b3d68;border-radius:1.25rem;background:#172443;box-shadow:0 1.75rem 5rem #01030c99}h1{margin:.5rem 0}.intro{color:#aab9d8;line-height:1.5}.error{margin:1rem 0;padding:.75rem;border-radius:.6rem;color:#fee2e2;background:#7f1d1d}label{display:block;margin:1rem 0 .35rem;font-weight:700}input{width:100%;min-height:2.8rem;padding:.65rem;border:1px solid #526b9f;border-radius:.55rem;color:#eef3ff;font:inherit;background:#0a1123}button{width:100%;min-height:2.9rem;margin-top:1.5rem;border:0;border-radius:.65rem;color:#17132b;font:inherit;font-weight:850;background:linear-gradient(135deg,#99c8ff,#c6adff);cursor:pointer}</style>
|
||||
{% vite_asset "frontend/src/entries/login.js" %}
|
||||
</head>
|
||||
<body>
|
||||
<main class="card">
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
{% load vite %}
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<html lang="en" data-theme="dark">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Settings · Sound Signal</title>
|
||||
<script src="https://cdn.jsdelivr.net/npm/htmx.org@2.0.4/dist/htmx.min.js"></script>
|
||||
<style>body{min-width:320px;margin:0;padding:2rem;color:#eef3ff;font-family:Inter,system-ui,sans-serif;background:#090e1d}.card{width:min(100%,42rem);margin:auto;padding:2rem;border:1px solid #2b3d68;border-radius:1rem;background:#172443}h1{margin-top:0}h2{margin:0}.intro,.help{color:#aab9d8;line-height:1.5}.section{margin-top:2rem;padding-top:1.5rem;border-top:1px solid #2b3d68}label{display:block;margin:.9rem 0 .35rem;font-weight:700}input[type=url]{width:100%;min-height:2.8rem;padding:.65rem;border:1px solid #526b9f;border-radius:.55rem;color:#eef3ff;font:inherit;background:#0a1123}.check{display:flex;gap:.6rem;align-items:center}.check label{margin:0}.button{min-height:2.8rem;margin-top:1rem;padding:.6rem 1rem;border:0;border-radius:.55rem;color:#17132b;font:inherit;font-weight:800;background:#a6ccff;cursor:pointer}.button--secondary{margin-right:.7rem;background:#d8c1fb}.alert,.errorlist{margin-top:1rem;padding:.75rem;border-radius:.55rem}.alert--success{color:#d1fae5;background:#14532d}.alert--error,.errorlist{color:#fee2e2;background:#7f1d1d}.messages{padding:0;list-style:none}@media(max-width:32rem){body{padding:1rem}.card{padding:1.4rem}}</style>
|
||||
{% vite_asset "frontend/src/entries/settings.js" %}
|
||||
</head>
|
||||
<body>
|
||||
<main class="card">
|
||||
@@ -27,6 +28,5 @@
|
||||
<button class="button" type="submit">Save settings</button>
|
||||
</form>
|
||||
</main>
|
||||
<script>document.querySelector("#ntfy-url").addEventListener("input", () => { document.querySelector("#ntfy-test-result").replaceChildren(); });</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -1,136 +1,11 @@
|
||||
{% load vite %}
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<html lang="en" data-theme="dark">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Hello</title>
|
||||
<style>
|
||||
:root {
|
||||
--ink: #172033;
|
||||
--muted: #667085;
|
||||
--card: rgba(255, 255, 255, .92);
|
||||
--line: #d7ddea;
|
||||
--primary: #6255e7;
|
||||
--success-bg: #eafaf1;
|
||||
--success-ink: #176b42;
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; }
|
||||
|
||||
body {
|
||||
min-width: 320px;
|
||||
min-height: 100vh;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
margin: 0;
|
||||
padding: 1.5rem;
|
||||
color: var(--ink);
|
||||
font-family: Inter, ui-sans-serif, system-ui, -apple-system,
|
||||
BlinkMacSystemFont, "Segoe UI", sans-serif;
|
||||
background:
|
||||
radial-gradient(circle at 12% 15%, #cfe1ff 0, transparent 28rem),
|
||||
radial-gradient(circle at 88% 88%, #e6d8ff 0, transparent 26rem),
|
||||
#f6f7fb;
|
||||
}
|
||||
|
||||
.card {
|
||||
width: min(100%, 31rem);
|
||||
padding: clamp(1.75rem, 7vw, 3rem);
|
||||
border: 1px solid rgba(255, 255, 255, .85);
|
||||
border-radius: 1.5rem;
|
||||
background: var(--card);
|
||||
box-shadow: 0 1.5rem 4rem rgba(53, 56, 105, .16);
|
||||
}
|
||||
|
||||
.eyebrow {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: .5rem;
|
||||
margin: 0 0 1rem;
|
||||
color: var(--primary);
|
||||
font-size: .78rem;
|
||||
font-weight: 800;
|
||||
letter-spacing: .11em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.sparkle {
|
||||
display: grid;
|
||||
width: 1.65rem;
|
||||
aspect-ratio: 1;
|
||||
place-items: center;
|
||||
border-radius: .55rem;
|
||||
color: white;
|
||||
font-size: .95rem;
|
||||
background: linear-gradient(135deg, #7668ff, #a75ff4);
|
||||
}
|
||||
.button { display:inline-flex; align-items:center; justify-content:center; gap:.6rem; min-height:2.9rem; padding:.75rem 1.05rem; border:1px solid #b3c9ff; border-radius:.8rem; color:#121a34; font:inherit; font-size:.93rem; font-weight:850; text-decoration:none; background:linear-gradient(135deg,#99c8ff,#c6adff); box-shadow:0 .65rem 1.75rem #7058dd50; transition:transform .2s ease,filter .2s ease; }
|
||||
.button:hover { transform:translateY(-2px); filter:brightness(1.08); }
|
||||
.button:focus-visible { outline:3px solid #a5c9ff80; outline-offset:3px; }
|
||||
h1 {
|
||||
margin: 0;
|
||||
font-size: clamp(2rem, 7vw, 3rem);
|
||||
letter-spacing: -.055em;
|
||||
line-height: 1.05;
|
||||
}
|
||||
|
||||
.intro {
|
||||
margin: 1rem 0 2rem;
|
||||
color: var(--muted);
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
label {
|
||||
display: block;
|
||||
margin-bottom: .55rem;
|
||||
font-size: .92rem;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
input {
|
||||
width: 100%;
|
||||
min-height: 3.15rem;
|
||||
padding: .75rem 1rem;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: .75rem;
|
||||
outline: none;
|
||||
color: var(--ink);
|
||||
font: inherit;
|
||||
background: white;
|
||||
}
|
||||
|
||||
input:focus {
|
||||
border-color: var(--primary);
|
||||
box-shadow: 0 0 0 .25rem rgba(98, 85, 231, .15);
|
||||
}
|
||||
|
||||
button {
|
||||
width: 100%;
|
||||
min-height: 3.15rem;
|
||||
margin-top: 1rem;
|
||||
border: 0;
|
||||
border-radius: .75rem;
|
||||
cursor: pointer;
|
||||
color: white;
|
||||
font: inherit;
|
||||
font-weight: 750;
|
||||
background: linear-gradient(135deg, var(--primary), #8a5ce5);
|
||||
box-shadow: 0 .65rem 1.3rem rgba(98, 85, 231, .24);
|
||||
}
|
||||
|
||||
button:hover {
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.result {
|
||||
margin: 1.5rem 0 0;
|
||||
padding: .9rem 1rem;
|
||||
border-radius: .75rem;
|
||||
color: var(--success-ink);
|
||||
line-height: 1.45;
|
||||
background: var(--success-bg);
|
||||
}
|
||||
</style>
|
||||
{% vite_asset "frontend/src/entries/member-success.js" %}
|
||||
</head>
|
||||
<body>
|
||||
<main class="card">
|
||||
|
||||
Reference in New Issue
Block a user