Files
NextChair/templates/2-NextChair - Staff - Current.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

120 lines
6.2 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>Active Appointment — 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">
<h1 class="text-2xl font-bold tracking-tight">Current Visit</h1>
</header>
<main class="px-6 space-y-6">
<!-- Active Client Card -->
<div class="bg-ink text-white p-8 rounded-jumbo shadow-xl relative overflow-hidden">
<div class="relative z-10">
<div class="flex items-center gap-4 mb-8">
<img src="https://storage.googleapis.com/uxpilot-auth.appspot.com/avatars/avatar-1.jpg" class="w-20 h-20 rounded-full border-2 border-white/20" alt="Client">
<div>
<h2 class="text-2xl font-bold">Alex Chen</h2>
<div class="flex items-center gap-2 mt-1">
<span class="text-[10px] font-bold uppercase tracking-widest text-accent">Arrived</span>
<div class="w-1 h-1 bg-white/20 rounded-full"></div>
<span class="text-[10px] font-bold uppercase tracking-widest text-white/60">Regular</span>
</div>
</div>
</div>
<div class="space-y-6 mb-10">
<div class="flex items-center justify-between">
<span class="text-[10px] font-bold uppercase tracking-widest text-white/40">Service</span>
<span class="text-sm font-bold">Standard Cut • 30m</span>
</div>
<div class="flex items-center justify-between">
<span class="text-[10px] font-bold uppercase tracking-widest text-white/40">Notes</span>
<span class="text-sm font-medium italic">Keep length on top.</span>
</div>
</div>
<div class="flex gap-3">
<button class="flex-1 bg-accent text-white py-4 rounded-xl font-bold uppercase text-xs tracking-widest">Start Visit</button>
<button class="w-14 h-14 bg-white/10 rounded-xl flex items-center justify-center border border-white/20">
<i class="fa-solid fa-phone"></i>
</button>
</div>
</div>
<div class="absolute -right-12 -bottom-12 w-48 h-48 bg-white/5 rounded-full blur-3xl"></div>
</div>
<!-- Post-Visit Actions -->
<div class="bg-white p-6 rounded-jumbo border border-line space-y-4">
<h3 class="text-xs font-bold uppercase tracking-widest text-muted ml-1">Post-Visit Tasks</h3>
<button class="w-full py-5 bg-stone border border-line rounded-xl flex items-center justify-center gap-3 text-sm font-bold hover:bg-ink hover:text-white transition-all group">
<i class="fa-solid fa-stamp text-accent group-hover:text-white"></i>
Add Loyalty Stamp
</button>
<button class="w-full py-5 bg-stone border border-line rounded-xl flex items-center justify-center gap-3 text-sm font-bold hover:bg-ink hover:text-white transition-all group">
<i class="fa-solid fa-calendar-check text-accent group-hover:text-white"></i>
Mark as Completed
</button>
</div>
<!-- Customer Profile Note -->
<div class="bg-white p-6 rounded-jumbo border border-line">
<h3 class="text-xs font-bold uppercase tracking-widest text-muted mb-4 ml-1">Customer History</h3>
<div class="flex gap-2">
<div class="flex-1 bg-stone/50 p-3 rounded-lg">
<span class="text-[8px] font-bold uppercase text-muted block mb-1">Last Visit</span>
<p class="text-xs font-bold">Aug 12, 2024</p>
</div>
<div class="flex-1 bg-stone/50 p-3 rounded-lg">
<span class="text-[8px] font-bold uppercase text-muted block mb-1">Stamps</span>
<p class="text-xs font-bold">8 / 10</p>
</div>
</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="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 text-white">
<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 hover:text-white transition-colors">
<i class="fa-solid fa-gear text-xl"></i>
<span class="text-[10px] font-medium">Settings</span>
</a>
</nav>
</body>
</html>