Files
NextChair/templates/31-NextChair - Staff - Working Hours.html
2026-09-05 09:32:05 +01:00

182 lines
11 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<script>
window.FontAwesomeConfig = { autoReplaceSvg: 'nest' };
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/js/all.min.js" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
<title>Working Hours — TrimTime</title>
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<script>
tailwind.config = {
theme: {
extend: {
colors: { ink: '#111b15', stone: '#f4f6f4', surface: '#ffffff', muted: '#6c7870', line: '#e1e7e2', accent: '#10b981' },
fontFamily: { sans: ['Inter', 'sans-serif'] },
borderRadius: { jumbo: '1.5rem', tile: '1rem' }
}
}
}
</script>
</head>
<body class="bg-stone text-ink min-h-screen pb-32">
<!-- NOTE: New screen. Linked from "4-NextChair - Staff - Settings.html"
and "13-NextChair - Owner - Settings.html" ("Working Hours" row),
neither of which had a destination — see docs/implementation-plan.md §6.
An owner reaches the same screen scoped to a staff member from
"34-NextChair - Owner - Staff Details.html". -->
<header class="bg-white border-b border-line px-6 pt-12 pb-5 sticky top-0 z-40 flex items-center justify-between">
<div class="flex items-center gap-4">
<button onclick="history.back()" class="w-10 h-10 rounded-full border border-line flex items-center justify-center">
<i class="fa-solid fa-arrow-left text-sm"></i>
</button>
<h1 class="text-xl font-bold tracking-tight">Working Hours</h1>
</div>
<button class="bg-accent text-white text-xs font-bold uppercase tracking-widest px-5 py-2.5 rounded-full">Save</button>
</header>
<main class="mt-6 px-6 space-y-4">
<button class="text-xs font-bold text-ink border-b border-ink ml-1 mb-2">Copy Monday to all days</button>
<div class="bg-white rounded-jumbo border border-line shadow-sm divide-y divide-line">
<!-- Monday (open) -->
<div class="px-6 py-5">
<div class="flex items-center justify-between mb-4">
<span class="text-sm font-bold w-24">Monday</span>
<label class="relative inline-flex items-center cursor-pointer">
<input type="checkbox" class="sr-only peer" checked>
<div class="w-11 h-6 bg-line rounded-full peer peer-checked:bg-accent transition-colors relative after:content-[''] after:absolute after:top-0.5 after:left-0.5 after:bg-white after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:after:translate-x-5"></div>
</label>
</div>
<div class="flex items-center gap-3">
<select class="flex-1 bg-stone border border-line rounded-lg px-3 py-2.5 text-sm font-medium outline-none"><option>10:00 AM</option></select>
<span class="text-xs text-muted">to</span>
<select class="flex-1 bg-stone border border-line rounded-lg px-3 py-2.5 text-sm font-medium outline-none"><option>7:00 PM</option></select>
</div>
</div>
<!-- Tuesday (open) -->
<div class="px-6 py-5">
<div class="flex items-center justify-between mb-4">
<span class="text-sm font-bold w-24">Tuesday</span>
<label class="relative inline-flex items-center cursor-pointer">
<input type="checkbox" class="sr-only peer" checked>
<div class="w-11 h-6 bg-line rounded-full peer peer-checked:bg-accent transition-colors relative after:content-[''] after:absolute after:top-0.5 after:left-0.5 after:bg-white after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:after:translate-x-5"></div>
</label>
</div>
<div class="flex items-center gap-3">
<select class="flex-1 bg-stone border border-line rounded-lg px-3 py-2.5 text-sm font-medium outline-none"><option>10:00 AM</option></select>
<span class="text-xs text-muted">to</span>
<select class="flex-1 bg-stone border border-line rounded-lg px-3 py-2.5 text-sm font-medium outline-none"><option>7:00 PM</option></select>
</div>
</div>
<!-- Wednesday (open) -->
<div class="px-6 py-5">
<div class="flex items-center justify-between mb-4">
<span class="text-sm font-bold w-24">Wednesday</span>
<label class="relative inline-flex items-center cursor-pointer">
<input type="checkbox" class="sr-only peer" checked>
<div class="w-11 h-6 bg-line rounded-full peer peer-checked:bg-accent transition-colors relative after:content-[''] after:absolute after:top-0.5 after:left-0.5 after:bg-white after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:after:translate-x-5"></div>
</label>
</div>
<div class="flex items-center gap-3">
<select class="flex-1 bg-stone border border-line rounded-lg px-3 py-2.5 text-sm font-medium outline-none"><option>10:00 AM</option></select>
<span class="text-xs text-muted">to</span>
<select class="flex-1 bg-stone border border-line rounded-lg px-3 py-2.5 text-sm font-medium outline-none"><option>7:00 PM</option></select>
</div>
</div>
<!-- Thursday (open, extended) -->
<div class="px-6 py-5">
<div class="flex items-center justify-between mb-4">
<span class="text-sm font-bold w-24">Thursday</span>
<label class="relative inline-flex items-center cursor-pointer">
<input type="checkbox" class="sr-only peer" checked>
<div class="w-11 h-6 bg-line rounded-full peer peer-checked:bg-accent transition-colors relative after:content-[''] after:absolute after:top-0.5 after:left-0.5 after:bg-white after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:after:translate-x-5"></div>
</label>
</div>
<div class="flex items-center gap-3">
<select class="flex-1 bg-stone border border-line rounded-lg px-3 py-2.5 text-sm font-medium outline-none"><option>10:00 AM</option></select>
<span class="text-xs text-muted">to</span>
<select class="flex-1 bg-stone border border-line rounded-lg px-3 py-2.5 text-sm font-medium outline-none"><option>7:30 PM</option></select>
</div>
</div>
<!-- Friday (open) -->
<div class="px-6 py-5">
<div class="flex items-center justify-between mb-4">
<span class="text-sm font-bold w-24">Friday</span>
<label class="relative inline-flex items-center cursor-pointer">
<input type="checkbox" class="sr-only peer" checked>
<div class="w-11 h-6 bg-line rounded-full peer peer-checked:bg-accent transition-colors relative after:content-[''] after:absolute after:top-0.5 after:left-0.5 after:bg-white after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:after:translate-x-5"></div>
</label>
</div>
<div class="flex items-center gap-3">
<select class="flex-1 bg-stone border border-line rounded-lg px-3 py-2.5 text-sm font-medium outline-none"><option>10:00 AM</option></select>
<span class="text-xs text-muted">to</span>
<select class="flex-1 bg-stone border border-line rounded-lg px-3 py-2.5 text-sm font-medium outline-none"><option>7:00 PM</option></select>
</div>
</div>
<!-- Saturday (open) -->
<div class="px-6 py-5">
<div class="flex items-center justify-between mb-4">
<span class="text-sm font-bold w-24">Saturday</span>
<label class="relative inline-flex items-center cursor-pointer">
<input type="checkbox" class="sr-only peer" checked>
<div class="w-11 h-6 bg-line rounded-full peer peer-checked:bg-accent transition-colors relative after:content-[''] after:absolute after:top-0.5 after:left-0.5 after:bg-white after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:after:translate-x-5"></div>
</label>
</div>
<div class="flex items-center gap-3">
<select class="flex-1 bg-stone border border-line rounded-lg px-3 py-2.5 text-sm font-medium outline-none"><option>9:00 AM</option></select>
<span class="text-xs text-muted">to</span>
<select class="flex-1 bg-stone border border-line rounded-lg px-3 py-2.5 text-sm font-medium outline-none"><option>5:00 PM</option></select>
</div>
</div>
<!-- Sunday (closed) -->
<div class="px-6 py-5 opacity-60">
<div class="flex items-center justify-between">
<span class="text-sm font-bold w-24">Sunday</span>
<label class="relative inline-flex items-center cursor-pointer">
<input type="checkbox" class="sr-only peer">
<div class="w-11 h-6 bg-line rounded-full peer peer-checked:bg-accent transition-colors relative after:content-[''] after:absolute after:top-0.5 after:left-0.5 after:bg-white after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:after:translate-x-5"></div>
</label>
</div>
<p class="text-xs text-muted mt-1">Closed</p>
</div>
</div>
</main>
<!-- Staff Navigation -->
<nav class="fixed bottom-0 left-0 right-0 z-50 bg-[#0c0c0c] text-gray-400 py-2 px-5 border-t border-white/5 flex items-center justify-between">
<a href="1-NextChair - Staff - Calendar.html" class="flex flex-col items-center gap-1 hover:text-white transition-colors">
<i class="fa-solid fa-calendar-days text-xl"></i>
<span class="text-[10px] font-medium">Calendar</span>
</a>
<a href="2-NextChair - Staff - Current.html" class="flex flex-col items-center gap-1 hover:text-white transition-colors">
<i class="fa-solid fa-scissors text-xl"></i>
<span class="text-[10px] font-medium">Current</span>
</a>
<a href="3-NextChair - Staff - Customers.html" class="flex flex-col items-center gap-1 hover:text-white transition-colors">
<i class="fa-solid fa-users text-xl"></i>
<span class="text-[10px] font-medium">Clients</span>
</a>
<a href="4-NextChair - Staff - Settings.html" class="flex flex-col items-center gap-1 text-white">
<i class="fa-solid fa-gear text-xl"></i>
<span class="text-[10px] font-medium">Settings</span>
</a>
</nav>
</body>
</html>