Spaces:
Running
Running
layout admin dashboard is broken - Initial Deployment
Browse files- README.md +7 -5
- index.html +762 -19
README.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 1 |
---
|
| 2 |
+
title: teste-1
|
| 3 |
+
emoji: 🐳
|
| 4 |
+
colorFrom: gray
|
| 5 |
+
colorTo: green
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite
|
| 10 |
---
|
| 11 |
|
| 12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
index.html
CHANGED
|
@@ -1,19 +1,762 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>LUXE | Premium Barbershop Booking System</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
| 9 |
+
<script src="https://cdn.jsdelivr.net/npm/@supabase/supabase-js@2"></script>
|
| 10 |
+
<style>
|
| 11 |
+
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
|
| 12 |
+
|
| 13 |
+
body {
|
| 14 |
+
font-family: 'Poppins', sans-serif;
|
| 15 |
+
background-color: #0f172a;
|
| 16 |
+
color: #f8fafc;
|
| 17 |
+
}
|
| 18 |
+
|
| 19 |
+
.gold-gradient {
|
| 20 |
+
background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #d97706 100%);
|
| 21 |
+
}
|
| 22 |
+
|
| 23 |
+
.card-hover:hover {
|
| 24 |
+
transform: translateY(-5px);
|
| 25 |
+
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
|
| 26 |
+
}
|
| 27 |
+
|
| 28 |
+
.transition-slow {
|
| 29 |
+
transition: all 0.3s ease;
|
| 30 |
+
}
|
| 31 |
+
|
| 32 |
+
.barber-avatar {
|
| 33 |
+
border: 3px solid transparent;
|
| 34 |
+
transition: all 0.3s ease;
|
| 35 |
+
}
|
| 36 |
+
|
| 37 |
+
.barber-avatar:hover {
|
| 38 |
+
border-color: #f59e0b;
|
| 39 |
+
transform: scale(1.05);
|
| 40 |
+
}
|
| 41 |
+
|
| 42 |
+
.selected-barber {
|
| 43 |
+
border-color: #f59e0b;
|
| 44 |
+
box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.5);
|
| 45 |
+
}
|
| 46 |
+
|
| 47 |
+
.time-slot {
|
| 48 |
+
transition: all 0.2s ease;
|
| 49 |
+
}
|
| 50 |
+
|
| 51 |
+
.time-slot:hover {
|
| 52 |
+
background-color: #1e293b;
|
| 53 |
+
}
|
| 54 |
+
|
| 55 |
+
.selected-time {
|
| 56 |
+
background-color: #f59e0b !important;
|
| 57 |
+
color: #1e293b;
|
| 58 |
+
font-weight: 600;
|
| 59 |
+
}
|
| 60 |
+
|
| 61 |
+
.service-card:hover .service-select {
|
| 62 |
+
opacity: 1;
|
| 63 |
+
}
|
| 64 |
+
|
| 65 |
+
.admin-card:hover {
|
| 66 |
+
box-shadow: 0 10px 15px -3px rgba(245, 158, 11, 0.3);
|
| 67 |
+
}
|
| 68 |
+
|
| 69 |
+
.scrollbar-hide::-webkit-scrollbar {
|
| 70 |
+
display: none;
|
| 71 |
+
}
|
| 72 |
+
|
| 73 |
+
.scrollbar-hide {
|
| 74 |
+
-ms-overflow-style: none;
|
| 75 |
+
scrollbar-width: none;
|
| 76 |
+
}
|
| 77 |
+
|
| 78 |
+
.animate-float {
|
| 79 |
+
animation: float 6s ease-in-out infinite;
|
| 80 |
+
}
|
| 81 |
+
|
| 82 |
+
@keyframes float {
|
| 83 |
+
0% { transform: translateY(0px); }
|
| 84 |
+
50% { transform: translateY(-20px); }
|
| 85 |
+
100% { transform: translateY(0px); }
|
| 86 |
+
}
|
| 87 |
+
|
| 88 |
+
.animate-pulse-slow {
|
| 89 |
+
animation: pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
| 90 |
+
}
|
| 91 |
+
|
| 92 |
+
@keyframes pulse {
|
| 93 |
+
0%, 100% { opacity: 1; }
|
| 94 |
+
50% { opacity: 0.5; }
|
| 95 |
+
}
|
| 96 |
+
|
| 97 |
+
.bg-barbershop {
|
| 98 |
+
background-image: url('https://images.unsplash.com/photo-1595476108010-b4d1f102b1b1?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1920&q=80');
|
| 99 |
+
background-size: cover;
|
| 100 |
+
background-position: center;
|
| 101 |
+
background-repeat: no-repeat;
|
| 102 |
+
}
|
| 103 |
+
</style>
|
| 104 |
+
</head>
|
| 105 |
+
<body class="min-h-screen">
|
| 106 |
+
<!-- Login Modal -->
|
| 107 |
+
<div id="loginModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden">
|
| 108 |
+
<div class="bg-slate-800 rounded-xl p-8 max-w-md w-full">
|
| 109 |
+
<h2 class="text-2xl font-bold text-amber-400 mb-6">Login to LUXE</h2>
|
| 110 |
+
<form id="loginForm" class="space-y-4">
|
| 111 |
+
<div>
|
| 112 |
+
<label class="block text-slate-300 mb-2">Email</label>
|
| 113 |
+
<input type="email" id="loginEmail" class="w-full bg-slate-700 rounded-lg px-4 py-2 text-white">
|
| 114 |
+
</div>
|
| 115 |
+
<div>
|
| 116 |
+
<label class="block text-slate-300 mb-2">Password</label>
|
| 117 |
+
<input type="password" id="loginPassword" class="w-full bg-slate-700 rounded-lg px-4 py-2 text-white">
|
| 118 |
+
</div>
|
| 119 |
+
<button type="submit" class="w-full bg-amber-400 text-slate-900 py-2 rounded-lg font-medium">
|
| 120 |
+
Sign In
|
| 121 |
+
</button>
|
| 122 |
+
<p class="text-center text-slate-400 mt-4">
|
| 123 |
+
Don't have an account?
|
| 124 |
+
<button type="button" id="switchToSignup" class="text-amber-400">Sign up</button>
|
| 125 |
+
</p>
|
| 126 |
+
</form>
|
| 127 |
+
|
| 128 |
+
<form id="signupForm" class="space-y-4 hidden">
|
| 129 |
+
<h2 class="text-2xl font-bold text-amber-400 mb-6">Create Account</h2>
|
| 130 |
+
<div>
|
| 131 |
+
<label class="block text-slate-300 mb-2">Name</label>
|
| 132 |
+
<input type="text" id="signupName" class="w-full bg-slate-700 rounded-lg px-4 py-2 text-white">
|
| 133 |
+
</div>
|
| 134 |
+
<div>
|
| 135 |
+
<label class="block text-slate-300 mb-2">Email</label>
|
| 136 |
+
<input type="email" id="signupEmail" class="w-full bg-slate-700 rounded-lg px-4 py-2 text-white">
|
| 137 |
+
</div>
|
| 138 |
+
<div>
|
| 139 |
+
<label class="block text-slate-300 mb-2">Password</label>
|
| 140 |
+
<input type="password" id="signupPassword" class="w-full bg-slate-700 rounded-lg px-4 py-2 text-white">
|
| 141 |
+
</div>
|
| 142 |
+
<button type="submit" class="w-full bg-amber-400 text-slate-900 py-2 rounded-lg font-medium">
|
| 143 |
+
Sign Up
|
| 144 |
+
</button>
|
| 145 |
+
<p class="text-center text-slate-400 mt-4">
|
| 146 |
+
Already have an account?
|
| 147 |
+
<button type="button" id="switchToLogin" class="text-amber-400">Sign in</button>
|
| 148 |
+
</p>
|
| 149 |
+
</form>
|
| 150 |
+
</div>
|
| 151 |
+
</div>
|
| 152 |
+
|
| 153 |
+
<!-- Main Container -->
|
| 154 |
+
<div class="container mx-auto px-4 sm:px-6 py-8 sm:py-12">
|
| 155 |
+
<!-- Header -->
|
| 156 |
+
<header class="flex flex-col items-center mb-16">
|
| 157 |
+
<div class="gold-gradient text-transparent bg-clip-text">
|
| 158 |
+
<h1 class="text-5xl font-bold mb-2">LUXE</h1>
|
| 159 |
+
</div>
|
| 160 |
+
<p class="text-slate-400 text-lg">Premium Barbershop Booking System</p>
|
| 161 |
+
</header>
|
| 162 |
+
|
| 163 |
+
<!-- Scene Container -->
|
| 164 |
+
<div class="relative">
|
| 165 |
+
<!-- Background Scene -->
|
| 166 |
+
<div class="absolute inset-0 bg-barbershop bg-opacity-20 rounded-3xl -z-10"></div>
|
| 167 |
+
|
| 168 |
+
<!-- Devices Container -->
|
| 169 |
+
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 relative z-10">
|
| 170 |
+
<!-- Mobile Client App -->
|
| 171 |
+
<div class="bg-slate-900 rounded-3xl overflow-hidden shadow-2xl border border-slate-800 transform transition-slow hover:scale-[1.02]">
|
| 172 |
+
<div class="bg-slate-800 py-3 px-4 flex items-center justify-between">
|
| 173 |
+
<div class="text-slate-400 text-sm">3:24 PM</div>
|
| 174 |
+
<div class="flex space-x-1">
|
| 175 |
+
<i class="fas fa-signal text-slate-400 text-xs"></i>
|
| 176 |
+
<i class="fas fa-wifi text-slate-400 text-xs"></i>
|
| 177 |
+
<i class="fas fa-battery-three-quarters text-slate-400 text-xs"></i>
|
| 178 |
+
</div>
|
| 179 |
+
</div>
|
| 180 |
+
|
| 181 |
+
<div class="p-4">
|
| 182 |
+
<!-- App Header -->
|
| 183 |
+
<div class="flex justify-between items-center mb-6">
|
| 184 |
+
<div class="gold-gradient text-transparent bg-clip-text">
|
| 185 |
+
<h2 class="text-2xl font-bold">Book Now</h2>
|
| 186 |
+
</div>
|
| 187 |
+
<div class="flex items-center space-x-3">
|
| 188 |
+
<button class="text-slate-400 hover:text-amber-400 transition-slow">
|
| 189 |
+
<i class="fas fa-bell"></i>
|
| 190 |
+
</button>
|
| 191 |
+
<div class="w-8 h-8 rounded-full bg-slate-700 flex items-center justify-center">
|
| 192 |
+
<i class="fas fa-user text-slate-400"></i>
|
| 193 |
+
</div>
|
| 194 |
+
</div>
|
| 195 |
+
</div>
|
| 196 |
+
|
| 197 |
+
<!-- Current View: Booking Flow -->
|
| 198 |
+
<div class="mb-4">
|
| 199 |
+
<div class="flex justify-between mb-6">
|
| 200 |
+
<div class="flex-1 text-center border-b-2 border-amber-400 pb-2">
|
| 201 |
+
<span class="text-amber-400 font-medium">Services</span>
|
| 202 |
+
</div>
|
| 203 |
+
<div class="flex-1 text-center border-b-2 border-slate-700 pb-2">
|
| 204 |
+
<span class="text-slate-400">Barber</span>
|
| 205 |
+
</div>
|
| 206 |
+
<div class="flex-1 text-center border-b-2 border-slate-700 pb-2">
|
| 207 |
+
<span class="text-slate-400">Time</span>
|
| 208 |
+
</div>
|
| 209 |
+
<div class="flex-1 text-center border-b-2 border-slate-700 pb-2">
|
| 210 |
+
<span class="text-slate-400">Confirm</span>
|
| 211 |
+
</div>
|
| 212 |
+
</div>
|
| 213 |
+
|
| 214 |
+
<!-- Services Selection -->
|
| 215 |
+
<div class="mb-6">
|
| 216 |
+
<h3 class="text-lg font-medium mb-4 text-slate-200">Select Service</h3>
|
| 217 |
+
<div class="space-y-3">
|
| 218 |
+
<!-- Service Card 1 -->
|
| 219 |
+
<div class="bg-slate-800 rounded-xl p-4 flex justify-between items-center service-card transition-slow">
|
| 220 |
+
<div>
|
| 221 |
+
<h4 class="font-medium text-slate-100">Classic Haircut</h4>
|
| 222 |
+
<p class="text-sm text-slate-400">45 min • $45</p>
|
| 223 |
+
</div>
|
| 224 |
+
<button class="service-select bg-amber-400 text-slate-900 w-6 h-6 rounded-full flex items-center justify-center opacity-0 transition-slow">
|
| 225 |
+
<i class="fas fa-check text-xs"></i>
|
| 226 |
+
</button>
|
| 227 |
+
</div>
|
| 228 |
+
|
| 229 |
+
<!-- Service Card 2 -->
|
| 230 |
+
<div class="bg-slate-800 rounded-xl p-4 flex justify-between items-center service-card transition-slow">
|
| 231 |
+
<div>
|
| 232 |
+
<h4 class="font-medium text-slate-100">Beard Trim</h4>
|
| 233 |
+
<p class="text-sm text-slate-400">30 min • $30</p>
|
| 234 |
+
</div>
|
| 235 |
+
<button class="service-select bg-amber-400 text-slate-900 w-6 h-6 rounded-full flex items-center justify-center opacity-0 transition-slow">
|
| 236 |
+
<i class="fas fa-check text-xs"></i>
|
| 237 |
+
</button>
|
| 238 |
+
</div>
|
| 239 |
+
|
| 240 |
+
<!-- Service Card 3 -->
|
| 241 |
+
<div class="bg-slate-800 rounded-xl p-4 flex justify-between items-center service-card transition-slow">
|
| 242 |
+
<div>
|
| 243 |
+
<h4 class="font-medium text-slate-100">Royal Treatment</h4>
|
| 244 |
+
<p class="text-sm text-slate-400">90 min • $95</p>
|
| 245 |
+
</div>
|
| 246 |
+
<button class="service-select bg-amber-400 text-slate-900 w-6 h-6 rounded-full flex items-center justify-center opacity-100 transition-slow">
|
| 247 |
+
<i class="fas fa-check text-xs"></i>
|
| 248 |
+
</button>
|
| 249 |
+
</div>
|
| 250 |
+
</div>
|
| 251 |
+
</div>
|
| 252 |
+
|
| 253 |
+
<!-- Next Button -->
|
| 254 |
+
<button class="w-full bg-amber-400 text-slate-900 py-3 rounded-xl font-medium flex items-center justify-center space-x-2 transition-slow hover:bg-amber-300">
|
| 255 |
+
<span>Next: Choose Barber</span>
|
| 256 |
+
<i class="fas fa-chevron-right"></i>
|
| 257 |
+
</button>
|
| 258 |
+
</div>
|
| 259 |
+
|
| 260 |
+
<!-- Bottom Navigation -->
|
| 261 |
+
<div class="flex justify-around items-center pt-4 border-t border-slate-800">
|
| 262 |
+
<button class="text-amber-400 flex flex-col items-center">
|
| 263 |
+
<i class="fas fa-calendar-alt mb-1"></i>
|
| 264 |
+
<span class="text-xs">Book</span>
|
| 265 |
+
</button>
|
| 266 |
+
<button class="text-slate-400 flex flex-col items-center">
|
| 267 |
+
<i class="fas fa-clock mb-1"></i>
|
| 268 |
+
<span class="text-xs">Appointments</span>
|
| 269 |
+
</button>
|
| 270 |
+
<button class="text-slate-400 flex flex-col items-center">
|
| 271 |
+
<i class="fas fa-cut mb-1"></i>
|
| 272 |
+
<span class="text-xs">Services</span>
|
| 273 |
+
</button>
|
| 274 |
+
<button class="text-slate-400 flex flex-col items-center">
|
| 275 |
+
<i class="fas fa-user mb-1"></i>
|
| 276 |
+
<span class="text-xs">Profile</span>
|
| 277 |
+
</button>
|
| 278 |
+
</div>
|
| 279 |
+
</div>
|
| 280 |
+
</div>
|
| 281 |
+
|
| 282 |
+
<!-- Tablet Barber App -->
|
| 283 |
+
<div class="bg-slate-900 rounded-3xl overflow-hidden shadow-2xl border border-slate-800 transform transition-slow hover:scale-[1.02]">
|
| 284 |
+
<div class="bg-slate-800 py-3 px-6 flex items-center justify-between">
|
| 285 |
+
<div class="text-slate-400 text-sm">Barber Dashboard</div>
|
| 286 |
+
<div class="flex items-center space-x-3">
|
| 287 |
+
<div class="text-slate-400 text-sm">3:24 PM</div>
|
| 288 |
+
<div class="w-8 h-8 rounded-full bg-slate-700 flex items-center justify-center">
|
| 289 |
+
<i class="fas fa-user text-slate-400"></i>
|
| 290 |
+
</div>
|
| 291 |
+
</div>
|
| 292 |
+
</div>
|
| 293 |
+
|
| 294 |
+
<div class="p-4 sm:p-6">
|
| 295 |
+
<!-- Barber Header -->
|
| 296 |
+
<div class="flex items-center mb-6">
|
| 297 |
+
<div class="w-12 h-12 rounded-full bg-slate-700 flex items-center justify-center mr-4">
|
| 298 |
+
<i class="fas fa-user-tie text-xl text-amber-400"></i>
|
| 299 |
+
</div>
|
| 300 |
+
<div>
|
| 301 |
+
<h2 class="text-xl font-bold text-slate-100">Marcus Johnson</h2>
|
| 302 |
+
<p class="text-sm text-slate-400">Master Barber</p>
|
| 303 |
+
</div>
|
| 304 |
+
</div>
|
| 305 |
+
|
| 306 |
+
<!-- Today's Stats -->
|
| 307 |
+
<div class="grid grid-cols-3 gap-3 mb-6">
|
| 308 |
+
<div class="bg-slate-800 rounded-lg p-3 text-center">
|
| 309 |
+
<p class="text-sm text-slate-400">Appointments</p>
|
| 310 |
+
<p class="text-xl font-bold text-amber-400">7</p>
|
| 311 |
+
</div>
|
| 312 |
+
<div class="bg-slate-800 rounded-lg p-3 text-center">
|
| 313 |
+
<p class="text-sm text-slate-400">Earnings</p>
|
| 314 |
+
<p class="text-xl font-bold text-amber-400">$420</p>
|
| 315 |
+
</div>
|
| 316 |
+
<div class="bg-slate-800 rounded-lg p-3 text-center">
|
| 317 |
+
<p class="text-sm text-slate-400">Rating</p>
|
| 318 |
+
<p class="text-xl font-bold text-amber-400">4.9</p>
|
| 319 |
+
</div>
|
| 320 |
+
</div>
|
| 321 |
+
|
| 322 |
+
<!-- Current Appointments -->
|
| 323 |
+
<div class="mb-6">
|
| 324 |
+
<div class="flex justify-between items-center mb-4">
|
| 325 |
+
<h3 class="text-lg font-medium text-slate-200">Today's Appointments</h3>
|
| 326 |
+
<button class="text-slate-400 hover:text-amber-400 transition-slow text-sm">
|
| 327 |
+
View All
|
| 328 |
+
</button>
|
| 329 |
+
</div>
|
| 330 |
+
|
| 331 |
+
<div class="space-y-3 max-h-64 overflow-y-auto scrollbar-hide">
|
| 332 |
+
<!-- Appointment 1 -->
|
| 333 |
+
<div class="bg-slate-800 rounded-xl p-4 transition-slow card-hover">
|
| 334 |
+
<div class="flex justify-between items-start mb-2">
|
| 335 |
+
<div>
|
| 336 |
+
<h4 class="font-medium text-slate-100">James Wilson</h4>
|
| 337 |
+
<p class="text-sm text-slate-400">Royal Treatment</p>
|
| 338 |
+
</div>
|
| 339 |
+
<div class="text-amber-400 font-medium">10:30 AM</div>
|
| 340 |
+
</div>
|
| 341 |
+
<div class="flex items-center text-sm text-slate-400">
|
| 342 |
+
<i class="fas fa-info-circle mr-2 text-xs"></i>
|
| 343 |
+
<span>Prefers skin fade, medium length on top</span>
|
| 344 |
+
</div>
|
| 345 |
+
</div>
|
| 346 |
+
|
| 347 |
+
<!-- Appointment 2 -->
|
| 348 |
+
<div class="bg-slate-800 rounded-xl p-4 transition-slow card-hover">
|
| 349 |
+
<div class="flex justify-between items-start mb-2">
|
| 350 |
+
<div>
|
| 351 |
+
<h4 class="font-medium text-slate-100">Michael Brown</h4>
|
| 352 |
+
<p class="text-sm text-slate-400">Classic Haircut</p>
|
| 353 |
+
</div>
|
| 354 |
+
<div class="text-amber-400 font-medium">12:15 PM</div>
|
| 355 |
+
</div>
|
| 356 |
+
<div class="flex items-center text-sm text-slate-400">
|
| 357 |
+
<i class="fas fa-info-circle mr-2 text-xs"></i>
|
| 358 |
+
<span>Regular client, no notes</span>
|
| 359 |
+
</div>
|
| 360 |
+
</div>
|
| 361 |
+
|
| 362 |
+
<!-- Appointment 3 -->
|
| 363 |
+
<div class="bg-slate-800 rounded-xl p-4 transition-slow card-hover">
|
| 364 |
+
<div class="flex justify-between items-start mb-2">
|
| 365 |
+
<div>
|
| 366 |
+
<h4 class="font-medium text-slate-100">David Miller</h4>
|
| 367 |
+
<p class="text-sm text-slate-400">Beard Trim</p>
|
| 368 |
+
</div>
|
| 369 |
+
<div class="text-amber-400 font-medium">2:45 PM</div>
|
| 370 |
+
</div>
|
| 371 |
+
<div class="flex items-center text-sm text-slate-400">
|
| 372 |
+
<i class="fas fa-info-circle mr-2 text-xs"></i>
|
| 373 |
+
<span>Wants sharp lines, natural length</span>
|
| 374 |
+
</div>
|
| 375 |
+
</div>
|
| 376 |
+
</div>
|
| 377 |
+
</div>
|
| 378 |
+
|
| 379 |
+
<!-- Quick Actions -->
|
| 380 |
+
<div class="grid grid-cols-2 gap-3">
|
| 381 |
+
<button class="bg-slate-800 hover:bg-slate-700 text-slate-100 py-2 rounded-lg flex flex-col items-center justify-center transition-slow">
|
| 382 |
+
<i class="fas fa-calendar-plus text-lg mb-1 text-amber-400"></i>
|
| 383 |
+
<span class="text-xs">Availability</span>
|
| 384 |
+
</button>
|
| 385 |
+
<button class="bg-slate-800 hover:bg-slate-700 text-slate-100 py-2 rounded-lg flex flex-col items-center justify-center transition-slow">
|
| 386 |
+
<i class="fas fa-clock text-lg mb-1 text-amber-400"></i>
|
| 387 |
+
<span class="text-xs">Time Off</span>
|
| 388 |
+
</button>
|
| 389 |
+
<button class="bg-slate-800 hover:bg-slate-700 text-slate-100 py-2 rounded-lg flex flex-col items-center justify-center transition-slow">
|
| 390 |
+
<i class="fas fa-chart-line text-lg mb-1 text-amber-400"></i>
|
| 391 |
+
<span class="text-xs">Stats</span>
|
| 392 |
+
</button>
|
| 393 |
+
<button class="bg-slate-800 hover:bg-slate-700 text-slate-100 py-2 rounded-lg flex flex-col items-center justify-center transition-slow">
|
| 394 |
+
<i class="fas fa-user-cog text-lg mb-1 text-amber-400"></i>
|
| 395 |
+
<span class="text-xs">Settings</span>
|
| 396 |
+
</button>
|
| 397 |
+
</div>
|
| 398 |
+
</div>
|
| 399 |
+
</div>
|
| 400 |
+
|
| 401 |
+
<!-- Desktop Admin Dashboard -->
|
| 402 |
+
<div class="bg-slate-900 rounded-3xl overflow-hidden shadow-2xl border border-slate-800 transform transition-slow hover:scale-[1.02]">
|
| 403 |
+
<div class="bg-slate-800 py-4 px-6 flex items-center justify-between">
|
| 404 |
+
<div class="gold-gradient text-transparent bg-clip-text">
|
| 405 |
+
<h2 class="text-xl font-bold">Admin Dashboard</h2>
|
| 406 |
+
</div>
|
| 407 |
+
<div class="flex items-center space-x-4">
|
| 408 |
+
<button class="text-slate-400 hover:text-amber-400 transition-slow">
|
| 409 |
+
<i class="fas fa-bell"></i>
|
| 410 |
+
</button>
|
| 411 |
+
<button class="text-slate-400 hover:text-amber-400 transition-slow">
|
| 412 |
+
<i class="fas fa-envelope"></i>
|
| 413 |
+
</button>
|
| 414 |
+
<div class="flex items-center">
|
| 415 |
+
<div class="w-8 h-8 rounded-full bg-slate-700 flex items-center justify-center mr-2">
|
| 416 |
+
<i class="fas fa-user-shield text-slate-400"></i>
|
| 417 |
+
</div>
|
| 418 |
+
<span class="text-sm text-slate-300">Admin</span>
|
| 419 |
+
</div>
|
| 420 |
+
</div>
|
| 421 |
+
</div>
|
| 422 |
+
|
| 423 |
+
<div class="p-6">
|
| 424 |
+
<!-- Stats Overview -->
|
| 425 |
+
<div class="grid grid-cols-2 sm:grid-cols-4 gap-3 sm:gap-4 mb-6">
|
| 426 |
+
<div class="bg-slate-800 rounded-lg p-4 admin-card transition-slow">
|
| 427 |
+
<p class="text-sm text-slate-400 mb-1">Today's Bookings</p>
|
| 428 |
+
<p class="text-2xl font-bold text-amber-400">24</p>
|
| 429 |
+
<p class="text-xs text-slate-500 mt-1">+3 from yesterday</p>
|
| 430 |
+
</div>
|
| 431 |
+
<div class="bg-slate-800 rounded-lg p-4 admin-card transition-slow">
|
| 432 |
+
<p class="text-sm text-slate-400 mb-1">Weekly Revenue</p>
|
| 433 |
+
<p class="text-2xl font-bold text-amber-400">$5,820</p>
|
| 434 |
+
<p class="text-xs text-slate-500 mt-1">12% increase</p>
|
| 435 |
+
</div>
|
| 436 |
+
<div class="bg-slate-800 rounded-lg p-4 admin-card transition-slow">
|
| 437 |
+
<p class="text-sm text-slate-400 mb-1">Active Staff</p>
|
| 438 |
+
<p class="text-2xl font-bold text-amber-400">6</p>
|
| 439 |
+
<p class="text-xs text-slate-500 mt-1">2 on leave</p>
|
| 440 |
+
</div>
|
| 441 |
+
<div class="bg-slate-800 rounded-lg p-4 admin-card transition-slow">
|
| 442 |
+
<p class="text-sm text-slate-400 mb-1">Client Satisfaction</p>
|
| 443 |
+
<p class="text-2xl font-bold text-amber-400">4.8</p>
|
| 444 |
+
<p class="text-xs text-slate-500 mt-1">94% positive</p>
|
| 445 |
+
</div>
|
| 446 |
+
</div>
|
| 447 |
+
|
| 448 |
+
<!-- Main Content -->
|
| 449 |
+
<div class="grid grid-cols-1 xl:grid-cols-3 gap-6">
|
| 450 |
+
<!-- Left Column -->
|
| 451 |
+
<div class="xl:col-span-2">
|
| 452 |
+
<!-- Revenue Chart -->
|
| 453 |
+
<div class="bg-slate-800 rounded-xl p-4 mb-6 admin-card transition-slow">
|
| 454 |
+
<div class="flex justify-between items-center mb-4">
|
| 455 |
+
<h3 class="text-lg font-medium text-slate-200">Weekly Revenue</h3>
|
| 456 |
+
<select class="bg-slate-700 text-slate-300 text-sm rounded px-3 py-1">
|
| 457 |
+
<option>This Week</option>
|
| 458 |
+
<option>Last Week</option>
|
| 459 |
+
<option>This Month</option>
|
| 460 |
+
</select>
|
| 461 |
+
</div>
|
| 462 |
+
<div class="h-40 sm:h-48 flex items-end space-x-2">
|
| 463 |
+
<!-- Chart bars (simplified) -->
|
| 464 |
+
<div class="flex-1 bg-slate-700 rounded-t-sm" style="height: 30%;"></div>
|
| 465 |
+
<div class="flex-1 bg-slate-700 rounded-t-sm" style="height: 50%;"></div>
|
| 466 |
+
<div class="flex-1 bg-slate-700 rounded-t-sm" style="height: 70%;"></div>
|
| 467 |
+
<div class="flex-1 bg-amber-400 rounded-t-sm" style="height: 90%;"></div>
|
| 468 |
+
<div class="flex-1 bg-slate-700 rounded-t-sm" style="height: 60%;"></div>
|
| 469 |
+
<div class="flex-1 bg-slate-700 rounded-t-sm" style="height: 40%;"></div>
|
| 470 |
+
<div class="flex-1 bg-slate-700 rounded-t-sm" style="height: 20%;"></div>
|
| 471 |
+
</div>
|
| 472 |
+
<div class="flex justify-between text-xs text-slate-500 mt-2">
|
| 473 |
+
<span>Mon</span>
|
| 474 |
+
<span>Tue</span>
|
| 475 |
+
<span>Wed</span>
|
| 476 |
+
<span>Thu</span>
|
| 477 |
+
<span>Fri</span>
|
| 478 |
+
<span>Sat</span>
|
| 479 |
+
<span>Sun</span>
|
| 480 |
+
</div>
|
| 481 |
+
</div>
|
| 482 |
+
|
| 483 |
+
<!-- Recent Bookings -->
|
| 484 |
+
<div class="bg-slate-800 rounded-xl p-4 admin-card transition-slow">
|
| 485 |
+
<div class="flex justify-between items-center mb-4">
|
| 486 |
+
<h3 class="text-lg font-medium text-slate-200">Recent Bookings</h3>
|
| 487 |
+
<button class="text-slate-400 hover:text-amber-400 transition-slow text-sm">
|
| 488 |
+
View All
|
| 489 |
+
</button>
|
| 490 |
+
</div>
|
| 491 |
+
<div class="overflow-x-auto">
|
| 492 |
+
<table class="w-full text-xs sm:text-sm min-w-[600px]">
|
| 493 |
+
<thead>
|
| 494 |
+
<tr class="text-slate-400 border-b border-slate-700">
|
| 495 |
+
<th class="pb-2 text-left">Client</th>
|
| 496 |
+
<th class="pb-2 text-left">Service</th>
|
| 497 |
+
<th class="pb-2 text-left">Barber</th>
|
| 498 |
+
<th class="pb-2 text-left">Time</th>
|
| 499 |
+
<th class="pb-2 text-left">Status</th>
|
| 500 |
+
</tr>
|
| 501 |
+
</thead>
|
| 502 |
+
<tbody>
|
| 503 |
+
<tr class="border-b border-slate-700 hover:bg-slate-700/50 transition-slow">
|
| 504 |
+
<td class="py-3">Robert Garcia</td>
|
| 505 |
+
<td>Royal Treatment</td>
|
| 506 |
+
<td>Marcus</td>
|
| 507 |
+
<td>Today, 10:30 AM</td>
|
| 508 |
+
<td><span class="text-amber-400">Confirmed</span></td>
|
| 509 |
+
</tr>
|
| 510 |
+
<tr class="border-b border-slate-700 hover:bg-slate-700/50 transition-slow">
|
| 511 |
+
<td class="py-3">Thomas Lee</td>
|
| 512 |
+
<td>Classic Haircut</td>
|
| 513 |
+
<td>Carlos</td>
|
| 514 |
+
<td>Today, 11:15 AM</td>
|
| 515 |
+
<td><span class="text-amber-400">Confirmed</span></td>
|
| 516 |
+
</tr>
|
| 517 |
+
<tr class="border-b border-slate-700 hover:bg-slate-700/50 transition-slow">
|
| 518 |
+
<td class="py-3">Daniel Wilson</td>
|
| 519 |
+
<td>Beard Trim</td>
|
| 520 |
+
<td>Jamal</td>
|
| 521 |
+
<td>Today, 2:00 PM</td>
|
| 522 |
+
<td><span class="text-green-400">Completed</span></td>
|
| 523 |
+
</tr>
|
| 524 |
+
<tr class="hover:bg-slate-700/50 transition-slow">
|
| 525 |
+
<td class="py-3">Kevin Martinez</td>
|
| 526 |
+
<td>Classic Haircut</td>
|
| 527 |
+
<td>Marcus</td>
|
| 528 |
+
<td>Today, 3:45 PM</td>
|
| 529 |
+
<td><span class="text-blue-400">Upcoming</span></td>
|
| 530 |
+
</tr>
|
| 531 |
+
</tbody>
|
| 532 |
+
</table>
|
| 533 |
+
</div>
|
| 534 |
+
</div>
|
| 535 |
+
</div>
|
| 536 |
+
|
| 537 |
+
<!-- Right Column -->
|
| 538 |
+
<div>
|
| 539 |
+
<!-- Staff Management -->
|
| 540 |
+
<div class="bg-slate-800 rounded-xl p-4 mb-6 admin-card transition-slow">
|
| 541 |
+
<div class="flex justify-between items-center mb-4">
|
| 542 |
+
<h3 class="text-lg font-medium text-slate-200">Staff</h3>
|
| 543 |
+
<button class="text-amber-400 hover:text-amber-300 transition-slow text-sm">
|
| 544 |
+
<i class="fas fa-plus mr-1"></i> Add
|
| 545 |
+
</button>
|
| 546 |
+
</div>
|
| 547 |
+
<div class="space-y-3">
|
| 548 |
+
<div class="flex items-center p-2 hover:bg-slate-700/50 rounded-lg transition-slow">
|
| 549 |
+
<div class="w-10 h-10 rounded-full bg-slate-700 flex items-center justify-center mr-3">
|
| 550 |
+
<i class="fas fa-user-tie text-amber-400"></i>
|
| 551 |
+
</div>
|
| 552 |
+
<div>
|
| 553 |
+
<p class="font-medium text-slate-100">Marcus Johnson</p>
|
| 554 |
+
<p class="text-xs text-slate-400">Master Barber</p>
|
| 555 |
+
</div>
|
| 556 |
+
</div>
|
| 557 |
+
<div class="flex items-center p-2 hover:bg-slate-700/50 rounded-lg transition-slow">
|
| 558 |
+
<div class="w-10 h-10 rounded-full bg-slate-700 flex items-center justify-center mr-3">
|
| 559 |
+
<i class="fas fa-user-tie text-amber-400"></i>
|
| 560 |
+
</div>
|
| 561 |
+
<div>
|
| 562 |
+
<p class="font-medium text-slate-100">Carlos Mendez</p>
|
| 563 |
+
<p class="text-xs text-slate-400">Senior Barber</p>
|
| 564 |
+
</div>
|
| 565 |
+
</div>
|
| 566 |
+
<div class="flex items-center p-2 hover:bg-slate-700/50 rounded-lg transition-slow">
|
| 567 |
+
<div class="w-10 h-10 rounded-full bg-slate-700 flex items-center justify-center mr-3">
|
| 568 |
+
<i class="fas fa-user-tie text-amber-400"></i>
|
| 569 |
+
</div>
|
| 570 |
+
<div>
|
| 571 |
+
<p class="font-medium text-slate-100">Jamal Williams</p>
|
| 572 |
+
<p class="text-xs text-slate-400">Barber</p>
|
| 573 |
+
</div>
|
| 574 |
+
</div>
|
| 575 |
+
<div class="flex items-center p-2 hover:bg-slate-700/50 rounded-lg transition-slow">
|
| 576 |
+
<div class="w-10 h-10 rounded-full bg-slate-700 flex items-center justify-center mr-3">
|
| 577 |
+
<i class="fas fa-user-tie text-amber-400"></i>
|
| 578 |
+
</div>
|
| 579 |
+
<div>
|
| 580 |
+
<p class="font-medium text-slate-100">Tyler Chen</p>
|
| 581 |
+
<p class="text-xs text-slate-400">Apprentice</p>
|
| 582 |
+
</div>
|
| 583 |
+
</div>
|
| 584 |
+
</div>
|
| 585 |
+
</div>
|
| 586 |
+
|
| 587 |
+
<!-- Quick Actions -->
|
| 588 |
+
<div class="bg-slate-800 rounded-xl p-4 admin-card transition-slow">
|
| 589 |
+
<h3 class="text-lg font-medium text-slate-200 mb-4">Quick Actions</h3>
|
| 590 |
+
<div class="space-y-2">
|
| 591 |
+
<button class="w-full text-left p-3 bg-slate-700 hover:bg-slate-600 rounded-lg flex items-center transition-slow">
|
| 592 |
+
<i class="fas fa-calendar-alt text-amber-400 mr-3"></i>
|
| 593 |
+
<span>Manage Schedule</span>
|
| 594 |
+
</button>
|
| 595 |
+
<button class="w-full text-left p-3 bg-slate-700 hover:bg-slate-600 rounded-lg flex items-center transition-slow">
|
| 596 |
+
<i class="fas fa-cut text-amber-400 mr-3"></i>
|
| 597 |
+
<span>Edit Services</span>
|
| 598 |
+
</button>
|
| 599 |
+
<button class="w-full text-left p-3 bg-slate-700 hover:bg-slate-600 rounded-lg flex items-center transition-slow">
|
| 600 |
+
<i class="fas fa-chart-pie text-amber-400 mr-3"></i>
|
| 601 |
+
<span>View Reports</span>
|
| 602 |
+
</button>
|
| 603 |
+
<button class="w-full text-left p-3 bg-slate-700 hover:bg-slate-600 rounded-lg flex items-center transition-slow">
|
| 604 |
+
<i class="fas fa-cog text-amber-400 mr-3"></i>
|
| 605 |
+
<span>Shop Settings</span>
|
| 606 |
+
</button>
|
| 607 |
+
</div>
|
| 608 |
+
</div>
|
| 609 |
+
</div>
|
| 610 |
+
</div>
|
| 611 |
+
</div>
|
| 612 |
+
</div>
|
| 613 |
+
</div>
|
| 614 |
+
</div>
|
| 615 |
+
|
| 616 |
+
<!-- Footer -->
|
| 617 |
+
<footer class="mt-8 sm:mt-16 text-center text-slate-500 text-xs sm:text-sm">
|
| 618 |
+
<p>© 2023 LUXE Barbershop Booking System. All rights reserved.</p>
|
| 619 |
+
</footer>
|
| 620 |
+
</div>
|
| 621 |
+
|
| 622 |
+
<script>
|
| 623 |
+
// Initialize Supabase
|
| 624 |
+
const supabaseUrl = 'YOUR_SUPABASE_URL';
|
| 625 |
+
const supabaseKey = 'YOUR_SUPABASE_ANON_KEY';
|
| 626 |
+
const supabase = supabase.createClient(supabaseUrl, supabaseKey);
|
| 627 |
+
|
| 628 |
+
// Auth functions
|
| 629 |
+
async function signInWithEmail(email, password) {
|
| 630 |
+
const { data, error } = await supabase.auth.signInWithPassword({
|
| 631 |
+
email: email,
|
| 632 |
+
password: password
|
| 633 |
+
});
|
| 634 |
+
if (error) throw error;
|
| 635 |
+
return data;
|
| 636 |
+
}
|
| 637 |
+
|
| 638 |
+
async function signUpNewUser(email, password) {
|
| 639 |
+
const { data, error } = await supabase.auth.signUp({
|
| 640 |
+
email: email,
|
| 641 |
+
password: password
|
| 642 |
+
});
|
| 643 |
+
if (error) throw error;
|
| 644 |
+
return data;
|
| 645 |
+
}
|
| 646 |
+
|
| 647 |
+
// Booking functions
|
| 648 |
+
async function getServices() {
|
| 649 |
+
const { data, error } = await supabase
|
| 650 |
+
.from('services')
|
| 651 |
+
.select('*');
|
| 652 |
+
if (error) throw error;
|
| 653 |
+
return data;
|
| 654 |
+
}
|
| 655 |
+
|
| 656 |
+
async function getBarbers() {
|
| 657 |
+
const { data, error } = await supabase
|
| 658 |
+
.from('barbers')
|
| 659 |
+
.select('*');
|
| 660 |
+
if (error) throw error;
|
| 661 |
+
return data;
|
| 662 |
+
}
|
| 663 |
+
|
| 664 |
+
async function createBooking(bookingData) {
|
| 665 |
+
const { data, error } = await supabase
|
| 666 |
+
.from('bookings')
|
| 667 |
+
.insert(bookingData)
|
| 668 |
+
.select();
|
| 669 |
+
if (error) throw error;
|
| 670 |
+
return data;
|
| 671 |
+
}
|
| 672 |
+
|
| 673 |
+
// Simple interactive elements for demonstration
|
| 674 |
+
document.addEventListener('DOMContentLoaded', async function() {
|
| 675 |
+
// Show login modal by default
|
| 676 |
+
document.getElementById('loginModal').classList.remove('hidden');
|
| 677 |
+
|
| 678 |
+
// Form switching
|
| 679 |
+
document.getElementById('switchToSignup').addEventListener('click', () => {
|
| 680 |
+
document.getElementById('loginForm').classList.add('hidden');
|
| 681 |
+
document.getElementById('signupForm').classList.remove('hidden');
|
| 682 |
+
});
|
| 683 |
+
|
| 684 |
+
document.getElementById('switchToLogin').addEventListener('click', () => {
|
| 685 |
+
document.getElementById('signupForm').classList.add('hidden');
|
| 686 |
+
document.getElementById('loginForm').classList.remove('hidden');
|
| 687 |
+
});
|
| 688 |
+
|
| 689 |
+
// Login form submission
|
| 690 |
+
document.getElementById('loginForm').addEventListener('submit', async (e) => {
|
| 691 |
+
e.preventDefault();
|
| 692 |
+
const email = document.getElementById('loginEmail').value;
|
| 693 |
+
const password = document.getElementById('loginPassword').value;
|
| 694 |
+
|
| 695 |
+
try {
|
| 696 |
+
await signInWithEmail(email, password);
|
| 697 |
+
document.getElementById('loginModal').classList.add('hidden');
|
| 698 |
+
// Load services and barbers
|
| 699 |
+
const services = await getServices();
|
| 700 |
+
const barbers = await getBarbers();
|
| 701 |
+
console.log('Loaded data:', {services, barbers});
|
| 702 |
+
} catch (error) {
|
| 703 |
+
alert('Login failed: ' + error.message);
|
| 704 |
+
}
|
| 705 |
+
});
|
| 706 |
+
|
| 707 |
+
// Signup form submission
|
| 708 |
+
document.getElementById('signupForm').addEventListener('submit', async (e) => {
|
| 709 |
+
e.preventDefault();
|
| 710 |
+
const name = document.getElementById('signupName').value;
|
| 711 |
+
const email = document.getElementById('signupEmail').value;
|
| 712 |
+
const password = document.getElementById('signupPassword').value;
|
| 713 |
+
|
| 714 |
+
try {
|
| 715 |
+
await signUpNewUser(email, password);
|
| 716 |
+
// Add user to profiles table
|
| 717 |
+
const { error } = await supabase
|
| 718 |
+
.from('profiles')
|
| 719 |
+
.insert({ name, email });
|
| 720 |
+
|
| 721 |
+
if (error) throw error;
|
| 722 |
+
|
| 723 |
+
alert('Account created! Please sign in.');
|
| 724 |
+
document.getElementById('signupForm').classList.add('hidden');
|
| 725 |
+
document.getElementById('loginForm').classList.remove('hidden');
|
| 726 |
+
} catch (error) {
|
| 727 |
+
alert('Signup failed: ' + error.message);
|
| 728 |
+
}
|
| 729 |
+
});
|
| 730 |
+
|
| 731 |
+
// Mobile app service selection
|
| 732 |
+
const serviceCards = document.querySelectorAll('.service-card');
|
| 733 |
+
serviceCards.forEach(card => {
|
| 734 |
+
card.addEventListener('click', function() {
|
| 735 |
+
serviceCards.forEach(c => {
|
| 736 |
+
c.querySelector('.service-select').classList.remove('opacity-100');
|
| 737 |
+
c.querySelector('.service-select').classList.add('opacity-0');
|
| 738 |
+
});
|
| 739 |
+
this.querySelector('.service-select').classList.remove('opacity-0');
|
| 740 |
+
this.querySelector('.service-select').classList.add('opacity-100');
|
| 741 |
+
});
|
| 742 |
+
});
|
| 743 |
+
|
| 744 |
+
// Barber selection in mobile app (if we had that screen)
|
| 745 |
+
// Time slot selection in mobile app (if we had that screen)
|
| 746 |
+
|
| 747 |
+
// Admin dashboard chart hover effect (simulated)
|
| 748 |
+
const chartBars = document.querySelectorAll('.admin-card .bg-slate-700');
|
| 749 |
+
chartBars.forEach(bar => {
|
| 750 |
+
bar.addEventListener('mouseenter', function() {
|
| 751 |
+
this.classList.add('bg-amber-400');
|
| 752 |
+
this.classList.remove('bg-slate-700');
|
| 753 |
+
});
|
| 754 |
+
bar.addEventListener('mouseleave', function() {
|
| 755 |
+
this.classList.remove('bg-amber-400');
|
| 756 |
+
this.classList.add('bg-slate-700');
|
| 757 |
+
});
|
| 758 |
+
});
|
| 759 |
+
});
|
| 760 |
+
</script>
|
| 761 |
+
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=wellaquinodev/teste-1" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 762 |
+
</html>
|