vrfefavr commited on
Commit
a7bfdc4
·
verified ·
1 Parent(s): 811af8d

Update templates/index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +19 -12
templates/index.html CHANGED
@@ -6,7 +6,6 @@
6
  <title>Enterprise Attendance System</title>
7
  <script src="https://cdn.tailwindcss.com"></script>
8
  <link rel="stylesheet" href="/static/style.css">
9
- <!-- Load separated JS at the end -->
10
  <script src="/static/app.js" defer></script>
11
  </head>
12
  <body class="bg-slate-900 text-white min-h-screen font-sans">
@@ -26,9 +25,7 @@
26
  <div class="lg:col-span-2 space-y-4">
27
  <div class="glass rounded-2xl overflow-hidden shadow-2xl relative">
28
  <video id="videoElement" autoplay playsinline class="w-full h-auto transform -scale-x-100 object-cover aspect-video bg-black"></video>
29
- <!-- Hidden canvas for capturing frames -->
30
  <canvas id="canvasElement" class="hidden"></canvas>
31
- <!-- Visible canvas for drawing the FRAME BORDER -->
32
  <canvas id="overlayCanvas" class="absolute top-0 left-0 w-full h-full pointer-events-none"></canvas>
33
  <div id="overlay" class="absolute inset-0 border-4 border-emerald-500/0 transition-colors duration-300 pointer-events-none z-10"></div>
34
  </div>
@@ -47,21 +44,32 @@
47
  </div>
48
  </div>
49
 
50
- <!-- Debug Terminal -->
51
- <div class="bg-black/80 p-3 rounded-xl border border-slate-700 font-mono text-xs overflow-hidden h-32 flex flex-col">
52
- <div class="text-slate-500 border-b border-slate-800 pb-1 mb-1 flex justify-between">
53
- <span>>_ BACKEND_TERMINAL</span>
54
- <span class="animate-pulse">_</span>
 
 
 
 
55
  </div>
56
- <div id="terminal-logs" class="flex-1 overflow-y-auto text-slate-300 space-y-1 custom-scrollbar flex flex-col justify-end">
57
- <!-- Logs inject here -->
 
 
 
 
 
 
 
 
58
  </div>
59
  </div>
60
  </div>
61
 
62
  <!-- Attendance Log Column -->
63
  <div class="space-y-6">
64
- <!-- 1. Live Presence (Temporary) -->
65
  <div class="glass rounded-2xl p-6 shadow-2xl flex flex-col h-[300px]">
66
  <h2 class="text-xl font-bold mb-4 flex items-center gap-2">
67
  <span>🟢</span> Live Presence
@@ -71,7 +79,6 @@
71
  </div>
72
  </div>
73
 
74
- <!-- 2. Session Attendance (Permanent for this view) -->
75
  <div class="glass rounded-2xl p-6 shadow-2xl flex flex-col h-[400px]">
76
  <h2 class="text-xl font-bold mb-4 flex items-center gap-2 text-emerald-400">
77
  <span>✅</span> Confirmed Attendance
 
6
  <title>Enterprise Attendance System</title>
7
  <script src="https://cdn.tailwindcss.com"></script>
8
  <link rel="stylesheet" href="/static/style.css">
 
9
  <script src="/static/app.js" defer></script>
10
  </head>
11
  <body class="bg-slate-900 text-white min-h-screen font-sans">
 
25
  <div class="lg:col-span-2 space-y-4">
26
  <div class="glass rounded-2xl overflow-hidden shadow-2xl relative">
27
  <video id="videoElement" autoplay playsinline class="w-full h-auto transform -scale-x-100 object-cover aspect-video bg-black"></video>
 
28
  <canvas id="canvasElement" class="hidden"></canvas>
 
29
  <canvas id="overlayCanvas" class="absolute top-0 left-0 w-full h-full pointer-events-none"></canvas>
30
  <div id="overlay" class="absolute inset-0 border-4 border-emerald-500/0 transition-colors duration-300 pointer-events-none z-10"></div>
31
  </div>
 
44
  </div>
45
  </div>
46
 
47
+ <!-- Debug Row -->
48
+ <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
49
+ <!-- Terminal -->
50
+ <div class="bg-black/80 p-3 rounded-xl border border-slate-700 font-mono text-xs overflow-hidden h-40 flex flex-col">
51
+ <div class="text-slate-500 border-b border-slate-800 pb-1 mb-1 flex justify-between">
52
+ <span>>_ BACKEND_TERMINAL</span>
53
+ <span class="animate-pulse">_</span>
54
+ </div>
55
+ <div id="terminal-logs" class="flex-1 overflow-y-auto text-slate-300 space-y-1 custom-scrollbar flex flex-col justify-end"></div>
56
  </div>
57
+
58
+ <!-- AI Eye (Crops Gallery) -->
59
+ <div class="glass p-3 rounded-xl flex flex-col h-40">
60
+ <div class="text-[10px] text-amber-400 uppercase tracking-widest font-bold border-b border-slate-700/50 pb-1 mb-2 flex justify-between">
61
+ <span>👁️ AI Eye (Live Crops)</span>
62
+ <span id="crop-count" class="text-slate-500">0 faces</span>
63
+ </div>
64
+ <div id="debug-crops" class="flex-1 flex gap-2 overflow-x-auto items-center pb-2 custom-scrollbar">
65
+ <div class="text-xs text-slate-600 italic">Waiting for detection...</div>
66
+ </div>
67
  </div>
68
  </div>
69
  </div>
70
 
71
  <!-- Attendance Log Column -->
72
  <div class="space-y-6">
 
73
  <div class="glass rounded-2xl p-6 shadow-2xl flex flex-col h-[300px]">
74
  <h2 class="text-xl font-bold mb-4 flex items-center gap-2">
75
  <span>🟢</span> Live Presence
 
79
  </div>
80
  </div>
81
 
 
82
  <div class="glass rounded-2xl p-6 shadow-2xl flex flex-col h-[400px]">
83
  <h2 class="text-xl font-bold mb-4 flex items-center gap-2 text-emerald-400">
84
  <span>✅</span> Confirmed Attendance