-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
75 lines (69 loc) · 3.14 KB
/
Copy pathindex.html
File metadata and controls
75 lines (69 loc) · 3.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>StaffSyncAPI - Helpdesk</title>
<!-- Google Fonts: Inter -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<!-- Tailwind CSS (via CDN for zero-build setup) -->
<script src="https://cdn.tailwindcss.com"></script>
<script>
tailwind.config = {
darkMode: 'class',
theme: {
extend: {
fontFamily: { sans: ['Inter', 'Geist', 'sans-serif'] },
colors: {
brand: {
50: '#eef2ff', 100: '#e0e7ff', 200: '#c7d2fe',
300: '#a5b4fc', 400: '#818cf8', 500: '#6366f1',
600: '#4f46e5', 700: '#4338ca', 800: '#3730a3', 900: '#312e81',
},
primary: { // Alias for backward compatibility
50: '#eef2ff', 100: '#e0e7ff', 200: '#c7d2fe',
300: '#a5b4fc', 400: '#818cf8', 500: '#6366f1',
600: '#4f46e5', 700: '#4338ca', 800: '#3730a3', 900: '#312e81',
}
},
boxShadow: {
'soft': '0 2px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -2px rgba(0, 0, 0, 0.05)',
}
}
}
}
</script>
<script>
if (localStorage.getItem('color-theme') === 'dark' || (!('color-theme' in localStorage) && window.matchMedia('(prefers-color-scheme: dark)').matches)) {
document.documentElement.classList.add('dark');
} else {
document.documentElement.classList.remove('dark');
}
</script>
</head>
<body
class="bg-[#F9FAFB] dark:bg-gray-950 text-gray-900 dark:text-gray-100 font-sans antialiased transition-colors duration-200">
<!-- Toast Notification Container -->
<div id="toast-container" class="fixed bottom-4 right-4 z-50 flex flex-col gap-2 pointer-events-none"></div>
<!-- Main App Container -->
<div id="app" class="min-h-screen flex flex-col">
<!-- JS will render the UI (Login or Dashboard) here -->
<div class="flex-grow flex items-center justify-center">
<div class="animate-pulse flex flex-col items-center">
<div class="h-12 w-12 bg-gray-300 rounded-full mb-4"></div>
<div class="h-4 w-32 bg-gray-300 rounded"></div>
</div>
</div>
</div>
<!-- Application Script -->
<!-- Define API Base URL dynamically if possible, or statically -->
<script>
const basePath = window.location.pathname.includes('StaffSyncAPI') ? '/StaffSyncAPI' : '';
const API_BASE_URL = window.location.origin + basePath + '/api';
</script>
<script src="assets/js/api.js"></script>
<script src="assets/js/app.js"></script>
</body>
</html>