293 lines
9.4 KiB
HTML
293 lines
9.4 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=390, initial-scale=1">
|
|
<title>Kalei — Notification Settings</title>
|
|
<link rel="stylesheet" href="../../assets/design-system.css">
|
|
<style>
|
|
.settings-section {
|
|
margin-bottom: 20px;
|
|
}
|
|
.toggle-row {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 14px 16px;
|
|
background: var(--kalei-navy);
|
|
border-bottom: 1px solid rgba(28,34,64,0.6);
|
|
}
|
|
.toggle-row:first-child { border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
|
|
.toggle-row:last-child {
|
|
border-radius: 0 0 var(--radius-xl) var(--radius-xl);
|
|
border-bottom: none;
|
|
}
|
|
.toggle-row:only-child { border-radius: var(--radius-xl); }
|
|
.toggle-info { flex: 1; }
|
|
.toggle-title {
|
|
font-size: 15px;
|
|
font-weight: 500;
|
|
color: var(--pure-light);
|
|
}
|
|
.toggle-desc {
|
|
font-size: 12px;
|
|
color: var(--dim-light);
|
|
margin-top: 2px;
|
|
}
|
|
/* Toggle switch */
|
|
.toggle-switch {
|
|
position: relative;
|
|
width: 50px;
|
|
height: 28px;
|
|
flex-shrink: 0;
|
|
}
|
|
.toggle-switch input {
|
|
opacity: 0;
|
|
width: 0;
|
|
height: 0;
|
|
position: absolute;
|
|
}
|
|
.toggle-track {
|
|
position: absolute;
|
|
inset: 0;
|
|
border-radius: var(--radius-full);
|
|
background: var(--twilight);
|
|
cursor: pointer;
|
|
transition: background 0.2s;
|
|
}
|
|
.toggle-thumb {
|
|
position: absolute;
|
|
top: 3px;
|
|
left: 3px;
|
|
width: 22px;
|
|
height: 22px;
|
|
border-radius: 50%;
|
|
background: var(--dim-light);
|
|
transition: transform 0.2s, background 0.2s;
|
|
}
|
|
.toggle-switch input:checked + .toggle-track {
|
|
background: var(--amethyst);
|
|
box-shadow: 0 0 8px rgba(139,92,246,0.3);
|
|
}
|
|
.toggle-switch input:checked + .toggle-track .toggle-thumb {
|
|
transform: translateX(22px);
|
|
background: var(--pure-light);
|
|
}
|
|
|
|
.time-picker-row {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 12px 16px;
|
|
gap: 12px;
|
|
}
|
|
.time-picker-label {
|
|
font-size: 13px;
|
|
color: var(--dim-light);
|
|
flex: 1;
|
|
}
|
|
.time-picker-input {
|
|
height: 34px;
|
|
background: var(--deep-glass);
|
|
border: 1px solid var(--twilight);
|
|
border-radius: var(--radius-md);
|
|
padding: 0 10px;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
color: var(--amethyst-light);
|
|
font-family: var(--font-primary);
|
|
cursor: pointer;
|
|
outline: none;
|
|
transition: border-color 0.2s;
|
|
width: 100px;
|
|
text-align: center;
|
|
}
|
|
.time-picker-input:focus { border-color: var(--amethyst); }
|
|
|
|
.section-card {
|
|
background: var(--kalei-navy);
|
|
border: 1px solid rgba(28,34,64,0.8);
|
|
border-radius: var(--radius-xl);
|
|
overflow: hidden;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.save-area {
|
|
padding: 8px 0 20px;
|
|
}
|
|
|
|
.screen-content { padding-bottom: 20px; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="device-frame">
|
|
<div class="status-bar">
|
|
<span class="time">9:41</span>
|
|
<div class="icons">
|
|
<svg width="16" height="16" viewBox="0 0 16 16" fill="none">
|
|
<rect x="1" y="7" width="2.5" height="5" rx="0.5" fill="#E2E8F0" opacity="0.4"/>
|
|
<rect x="4.5" y="5" width="2.5" height="7" rx="0.5" fill="#E2E8F0" opacity="0.6"/>
|
|
<rect x="8" y="3" width="2.5" height="9" rx="0.5" fill="#E2E8F0" opacity="0.8"/>
|
|
<rect x="11.5" y="1" width="2.5" height="11" rx="0.5" fill="#E2E8F0"/>
|
|
</svg>
|
|
<svg width="16" height="16" viewBox="0 0 16 16" fill="none">
|
|
<path d="M 2,8 C 4,4 12,4 14,8" stroke="#E2E8F0" stroke-width="1.2" fill="none" stroke-linecap="round"/>
|
|
<path d="M 4,10 C 6,7 10,7 12,10" stroke="#E2E8F0" stroke-width="1" fill="none" opacity="0.8" stroke-linecap="round"/>
|
|
<circle cx="8" cy="12" r="1.2" fill="#E2E8F0"/>
|
|
</svg>
|
|
<svg width="24" height="12" viewBox="0 0 24 12" fill="none">
|
|
<rect x="0.5" y="0.5" width="21" height="11" rx="2.5" stroke="#E2E8F0" stroke-width="1" opacity="0.5"/>
|
|
<rect x="22" y="3" width="2" height="6" rx="1" fill="#E2E8F0" opacity="0.3"/>
|
|
<rect x="2" y="2" width="16" height="8" rx="1.5" fill="#10B981" opacity="0.9"/>
|
|
</svg>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="nav-header">
|
|
<a class="nav-back" href="../you/37-you-settings.html">
|
|
<svg width="20" height="20" viewBox="0 0 20 20" fill="none">
|
|
<path d="M12 4L6 10L12 16" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
</svg>
|
|
</a>
|
|
<span class="nav-title">Notifications</span>
|
|
<span class="nav-action"></span>
|
|
</div>
|
|
|
|
<div class="screen-content">
|
|
<!-- Notification toggles -->
|
|
<div class="settings-section">
|
|
<div class="section-header" style="margin-top: 8px;">
|
|
<span class="section-title">Reminders</span>
|
|
</div>
|
|
|
|
<div class="section-card">
|
|
<!-- Daily Ritual Reminder -->
|
|
<div class="toggle-row">
|
|
<div class="toggle-info">
|
|
<div class="toggle-title">Daily Ritual Reminder</div>
|
|
<div class="toggle-desc">Gentle nudge to start your daily ritual</div>
|
|
</div>
|
|
<label class="toggle-switch" onclick="toggleChange(this)">
|
|
<input type="checkbox" checked onchange="toggleChange(this)">
|
|
<div class="toggle-track">
|
|
<div class="toggle-thumb"></div>
|
|
</div>
|
|
</label>
|
|
</div>
|
|
|
|
<!-- Time picker for ritual -->
|
|
<div class="time-picker-row" id="ritualTimePicker">
|
|
<span class="time-picker-label">Reminder time</span>
|
|
<input type="time" class="time-picker-input" value="08:00">
|
|
</div>
|
|
|
|
<div class="divider" style="margin: 0 16px;"></div>
|
|
|
|
<!-- Mirror Check-in -->
|
|
<div class="toggle-row">
|
|
<div class="toggle-info">
|
|
<div class="toggle-title">Mirror Check-in</div>
|
|
<div class="toggle-desc">Remind you to journal each day</div>
|
|
</div>
|
|
<label class="toggle-switch">
|
|
<input type="checkbox" checked onchange="toggleChange(this)">
|
|
<div class="toggle-track">
|
|
<div class="toggle-thumb"></div>
|
|
</div>
|
|
</label>
|
|
</div>
|
|
|
|
<!-- Time picker for mirror -->
|
|
<div class="time-picker-row">
|
|
<span class="time-picker-label">Reminder time</span>
|
|
<input type="time" class="time-picker-input" value="21:00">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Insights -->
|
|
<div class="settings-section">
|
|
<div class="section-header">
|
|
<span class="section-title">Insights</span>
|
|
</div>
|
|
|
|
<div class="section-card">
|
|
<!-- Weekly Spectrum Summary -->
|
|
<div class="toggle-row">
|
|
<div class="toggle-info">
|
|
<div class="toggle-title">Weekly Spectrum Summary</div>
|
|
<div class="toggle-desc">Your weekly Spectrum report every Sunday</div>
|
|
</div>
|
|
<label class="toggle-switch">
|
|
<input type="checkbox" onchange="toggleChange(this)">
|
|
<div class="toggle-track">
|
|
<div class="toggle-thumb"></div>
|
|
</div>
|
|
</label>
|
|
</div>
|
|
|
|
<div class="divider" style="margin: 0 16px;"></div>
|
|
|
|
<!-- Streak Alerts -->
|
|
<div class="toggle-row">
|
|
<div class="toggle-info">
|
|
<div class="toggle-title">Streak Alerts</div>
|
|
<div class="toggle-desc">Alerts when you're about to break a streak</div>
|
|
</div>
|
|
<label class="toggle-switch">
|
|
<input type="checkbox" checked onchange="toggleChange(this)">
|
|
<div class="toggle-track">
|
|
<div class="toggle-thumb"></div>
|
|
</div>
|
|
</label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Milestones -->
|
|
<div class="settings-section">
|
|
<div class="section-header">
|
|
<span class="section-title">Achievements</span>
|
|
</div>
|
|
|
|
<div class="section-card">
|
|
<div class="toggle-row">
|
|
<div class="toggle-info">
|
|
<div class="toggle-title">Milestone Celebrations</div>
|
|
<div class="toggle-desc">Notify when you earn new Evidence Wall tiles</div>
|
|
</div>
|
|
<label class="toggle-switch">
|
|
<input type="checkbox" checked onchange="toggleChange(this)">
|
|
<div class="toggle-track">
|
|
<div class="toggle-thumb"></div>
|
|
</div>
|
|
</label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Save button -->
|
|
<div class="save-area">
|
|
<button class="btn btn-primary" onclick="saveSettings()">Save Preferences</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
function toggleChange(el) {
|
|
// Visual feedback is handled by CSS
|
|
}
|
|
|
|
function saveSettings() {
|
|
const btn = document.querySelector('.btn-primary');
|
|
btn.textContent = 'Saved';
|
|
btn.style.background = 'var(--emerald)';
|
|
btn.style.boxShadow = 'var(--glow-emerald)';
|
|
setTimeout(() => {
|
|
btn.textContent = 'Save Preferences';
|
|
btn.style.background = '';
|
|
btn.style.boxShadow = '';
|
|
}, 2000);
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|