Files
NextChair/templates/4-NextChair - Staff - Settings.html
Stefan Lazic 090646fdfd Phase 2
Base app architecture:

    Route groups for customer, staff and owner.
* Reusable design system with around 20 UI components.
* Complete Prisma schema.
* Authentication with email/password and Google.
* Role and permission model.
* Protected routes.
* Clean separation between features, services, components and shared utilities.
2026-08-02 17:47:23 +01:00

118 lines
6.7 KiB
HTML
Executable File

<!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>Staff Settings — TrimTime</title>
<script src="https://cdn.tailwindcss.com"></script>
<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: '1rem', tile: '0.75rem' }
}
}
}
</script>
</head>
<body class="bg-stone text-ink min-h-screen pb-32">
<header class="px-6 py-6 bg-white border-b border-line sticky top-0 z-40">
<h1 class="text-2xl font-bold tracking-tight">Staff Settings</h1>
</header>
<main class="mt-6 px-6 space-y-6">
<!-- Profile Card -->
<div class="bg-white p-5 rounded-jumbo border border-line flex items-center gap-4 shadow-sm">
<img src="https://storage.googleapis.com/uxpilot-auth.appspot.com/avatars/avatar-2.jpg" class="w-16 h-16 rounded-full border border-line" alt="Marcus">
<div class="flex-1">
<h2 class="text-lg font-bold">Marcus Reed</h2>
<p class="text-[10px] text-accent font-bold uppercase tracking-widest">Master Barber</p>
</div>
<button class="w-10 h-10 bg-stone rounded-full flex items-center justify-center text-ink">
<i class="fa-solid fa-pen text-xs"></i>
</button>
</div>
<!-- Setting Sections -->
<div class="space-y-4">
<h3 class="text-[10px] font-bold uppercase tracking-widest text-muted ml-1">Availability</h3>
<div class="bg-white rounded-jumbo border border-line overflow-hidden">
<button class="w-full px-6 py-5 flex items-center justify-between border-b border-line hover:bg-stone transition-all">
<div class="flex items-center gap-4">
<div class="w-8 h-8 bg-stone rounded-lg flex items-center justify-center text-muted"><i class="fa-solid fa-clock text-xs"></i></div>
<span class="text-sm font-bold">Working Hours</span>
</div>
<i class="fa-solid fa-chevron-right text-[10px] text-muted"></i>
</button>
<button class="w-full px-6 py-5 flex items-center justify-between border-b border-line hover:bg-stone transition-all">
<div class="flex items-center gap-4">
<div class="w-8 h-8 bg-stone rounded-lg flex items-center justify-center text-muted"><i class="fa-solid fa-mug-hot text-xs"></i></div>
<span class="text-sm font-bold">Manage Breaks</span>
</div>
<i class="fa-solid fa-chevron-right text-[10px] text-muted"></i>
</button>
<button class="w-full px-6 py-5 flex items-center justify-between hover:bg-stone transition-all">
<div class="flex items-center gap-4">
<div class="w-8 h-8 bg-stone rounded-lg flex items-center justify-center text-muted"><i class="fa-solid fa-plane-arrival text-xs"></i></div>
<span class="text-sm font-bold">Time Off / Vacation</span>
</div>
<i class="fa-solid fa-chevron-right text-[10px] text-muted"></i>
</button>
</div>
<h3 class="text-[10px] font-bold uppercase tracking-widest text-muted ml-1">Account</h3>
<div class="bg-white rounded-jumbo border border-line overflow-hidden">
<button class="w-full px-6 py-5 flex items-center justify-between border-b border-line hover:bg-stone transition-all">
<div class="flex items-center gap-4">
<div class="w-8 h-8 bg-stone rounded-lg flex items-center justify-center text-muted"><i class="fa-solid fa-bell text-xs"></i></div>
<span class="text-sm font-bold">Notifications</span>
</div>
<i class="fa-solid fa-chevron-right text-[10px] text-muted"></i>
</button>
<button onclick="location.href='Welcome__mobile.html'" class="w-full px-6 py-5 flex items-center justify-between hover:bg-red-50 transition-all text-error">
<div class="flex items-center gap-4">
<div class="w-8 h-8 bg-red-100 rounded-lg flex items-center justify-center text-error"><i class="fa-solid fa-right-from-bracket text-xs"></i></div>
<span class="text-sm font-bold">Log Out</span>
</div>
</button>
</div>
</div>
<!-- Switch Role (Admin Only - Mockup) -->
<button onclick="location.href='OwnerDashboard__mobile.html'" class="w-full py-4 border-2 border-dashed border-line rounded-jumbo text-[10px] font-bold uppercase tracking-widest text-muted hover:border-ink hover:text-ink transition-all">
Switch to Admin View
</button>
</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="StaffCalendar__mobile.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="StaffCurrent__mobile.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="StaffCustomers__mobile.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="StaffSettings__mobile.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>