Spaces:
Sleeping
Sleeping
axeronis commited on
Commit ·
dc7e33a
1
Parent(s): 8463ed1
style: Unify hardcoded colors to CSS variables
Browse files- frontend/app/chats/page.tsx +1 -1
- frontend/app/dashboard/page.tsx +14 -14
- frontend/app/globals.css +28 -0
- frontend/app/page.tsx +5 -5
- frontend/components/ChatWindow.tsx +2 -2
- frontend/components/ChatWindow/ChatHeader.tsx +1 -1
- frontend/components/ChatWindow/MessageBubble.tsx +1 -1
- frontend/components/ChatWindow/MessageInput.tsx +1 -1
- frontend/components/LeadsList.tsx +1 -1
- frontend/components/StageStepper.tsx +1 -1
- frontend/components/StatsCard.tsx +1 -1
- frontend/components/admin/UsersTab.tsx +2 -2
frontend/app/chats/page.tsx
CHANGED
|
@@ -158,7 +158,7 @@ function ChatsContent() {
|
|
| 158 |
/>
|
| 159 |
) : (
|
| 160 |
<div className="h-full flex flex-col items-center justify-center text-slate-500">
|
| 161 |
-
<div className="w-16 h-16 bg-
|
| 162 |
<MessageCircle className="w-8 h-8 text-indigo-500/40" />
|
| 163 |
</div>
|
| 164 |
<p className="font-medium text-slate-400">Выберите диалог из списка</p>
|
|
|
|
| 158 |
/>
|
| 159 |
) : (
|
| 160 |
<div className="h-full flex flex-col items-center justify-center text-slate-500">
|
| 161 |
+
<div className="w-16 h-16 bg-surface-elevated rounded-2xl flex items-center justify-center border border-white/10 mb-4 shadow-lg">
|
| 162 |
<MessageCircle className="w-8 h-8 text-indigo-500/40" />
|
| 163 |
</div>
|
| 164 |
<p className="font-medium text-slate-400">Выберите диалог из списка</p>
|
frontend/app/dashboard/page.tsx
CHANGED
|
@@ -150,7 +150,7 @@ export default function DashboardPage() {
|
|
| 150 |
|
| 151 |
if (authLoading || (loading && !data)) {
|
| 152 |
return (
|
| 153 |
-
<div className="flex items-center justify-center min-h-screen bg-
|
| 154 |
<div className="flex flex-col items-center gap-4">
|
| 155 |
<div className="w-8 h-8 rounded-full border-2 border-indigo-500 border-t-transparent animate-spin"></div>
|
| 156 |
<p className="text-indigo-400 font-mono text-xs animate-pulse">ЗАГРУЗКА АНАЛИТИКИ...</p>
|
|
@@ -161,8 +161,8 @@ export default function DashboardPage() {
|
|
| 161 |
|
| 162 |
if (error) {
|
| 163 |
return (
|
| 164 |
-
<div className="flex items-center justify-center min-h-screen bg-
|
| 165 |
-
<div className="bg-
|
| 166 |
<AlertCircle className="w-8 h-8 text-red-500 mx-auto mb-4" />
|
| 167 |
<h2 className="text-lg font-bold text-white mb-2 font-mono">ОШИБКА СИСТЕМЫ</h2>
|
| 168 |
<p className="text-slate-400 mb-6 text-sm">{error}</p>
|
|
@@ -197,7 +197,7 @@ export default function DashboardPage() {
|
|
| 197 |
<div className="relative">
|
| 198 |
<button
|
| 199 |
onClick={() => setIsDateDropdownOpen(!isDateDropdownOpen)}
|
| 200 |
-
className="px-4 py-2 bg-
|
| 201 |
>
|
| 202 |
<div className="flex items-center gap-2">
|
| 203 |
<Calendar className="w-3 h-3" />
|
|
@@ -212,7 +212,7 @@ export default function DashboardPage() {
|
|
| 212 |
initial={{ opacity: 0, y: 5 }}
|
| 213 |
animate={{ opacity: 1, y: 0 }}
|
| 214 |
exit={{ opacity: 0, y: 5 }}
|
| 215 |
-
className="absolute top-full right-0 mt-2 w-[180px] bg-
|
| 216 |
>
|
| 217 |
{[
|
| 218 |
{ val: '7d', label: '7 дней' },
|
|
@@ -243,7 +243,7 @@ export default function DashboardPage() {
|
|
| 243 |
{/* Refresh Button */}
|
| 244 |
<button
|
| 245 |
onClick={fetchAnalytics}
|
| 246 |
-
className="p-2 bg-
|
| 247 |
title="Обновить"
|
| 248 |
>
|
| 249 |
<RefreshCw className="w-4 h-4" />
|
|
@@ -254,7 +254,7 @@ export default function DashboardPage() {
|
|
| 254 |
{/* Key Metrics Grid */}
|
| 255 |
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6">
|
| 256 |
{/* Total Leads */}
|
| 257 |
-
<div className="group relative bg-
|
| 258 |
<div className="absolute inset-0 bg-gradient-to-br from-indigo-500/0 via-purple-500/0 to-pink-500/0 group-hover:from-indigo-500/5 group-hover:via-purple-500/5 group-hover:to-pink-500/5 rounded-2xl transition-all duration-500" />
|
| 259 |
<div className="relative">
|
| 260 |
<div className="h-12 w-12 rounded-xl bg-purple-500/10 border border-purple-500/20 flex items-center justify-center mb-4 group-hover:scale-110 transition-transform duration-300">
|
|
@@ -266,7 +266,7 @@ export default function DashboardPage() {
|
|
| 266 |
</div>
|
| 267 |
|
| 268 |
{/* Average Response Time */}
|
| 269 |
-
<div className="group relative bg-
|
| 270 |
<div className="absolute inset-0 bg-gradient-to-br from-indigo-500/0 via-purple-500/0 to-pink-500/0 group-hover:from-indigo-500/5 group-hover:via-purple-500/5 group-hover:to-pink-500/5 rounded-2xl transition-all duration-500" />
|
| 271 |
<div className="relative">
|
| 272 |
<div className="h-12 w-12 rounded-xl bg-indigo-500/10 border border-indigo-500/20 flex items-center justify-center mb-4 group-hover:scale-110 transition-transform duration-300">
|
|
@@ -278,7 +278,7 @@ export default function DashboardPage() {
|
|
| 278 |
</div>
|
| 279 |
|
| 280 |
{/* Conversion */}
|
| 281 |
-
<div className="group relative bg-
|
| 282 |
<div className="absolute inset-0 bg-gradient-to-br from-indigo-500/0 via-purple-500/0 to-pink-500/0 group-hover:from-indigo-500/5 group-hover:via-purple-500/5 group-hover:to-pink-500/5 rounded-2xl transition-all duration-500" />
|
| 283 |
<div className="relative">
|
| 284 |
<div className="h-12 w-12 rounded-xl bg-pink-500/10 border border-pink-500/20 flex items-center justify-center mb-4 group-hover:scale-110 transition-transform duration-300">
|
|
@@ -290,7 +290,7 @@ export default function DashboardPage() {
|
|
| 290 |
</div>
|
| 291 |
|
| 292 |
{/* Pipeline Value */}
|
| 293 |
-
<div className="group relative bg-
|
| 294 |
<div className="absolute inset-0 bg-gradient-to-br from-indigo-500/0 via-purple-500/0 to-pink-500/0 group-hover:from-indigo-500/5 group-hover:via-purple-500/5 group-hover:to-pink-500/5 rounded-2xl transition-all duration-500" />
|
| 295 |
<div className="relative">
|
| 296 |
<div className="h-12 w-12 rounded-xl bg-emerald-500/10 border border-emerald-500/20 flex items-center justify-center mb-4 group-hover:scale-110 transition-transform duration-300">
|
|
@@ -307,7 +307,7 @@ export default function DashboardPage() {
|
|
| 307 |
<div className="grid grid-cols-1 lg:grid-cols-3 gap-6">
|
| 308 |
|
| 309 |
{/* Leads by Channel (Donut Chart) */}
|
| 310 |
-
<div className="bg-
|
| 311 |
<h3 className="text-sm font-bold text-slate-400 uppercase tracking-wider mb-6">ИСТОЧНИКИ ЛИДОВ</h3>
|
| 312 |
<div className="h-[250px] w-full relative z-10 flex items-center justify-center">
|
| 313 |
{data.channel_stats && data.channel_stats.length > 0 ? (
|
|
@@ -345,7 +345,7 @@ export default function DashboardPage() {
|
|
| 345 |
</div>
|
| 346 |
|
| 347 |
{/* Funnel Drop-off (Bar Chart) */}
|
| 348 |
-
<div className="lg:col-span-2 bg-
|
| 349 |
<h3 className="text-sm font-bold text-slate-400 uppercase tracking-wider mb-6">ВОРОНКА ПРОДАЖ (ОТТОК КЛИЕНТОВ)</h3>
|
| 350 |
<div className="h-[250px] w-full relative z-10">
|
| 351 |
<ResponsiveContainer width="100%" height="100%">
|
|
@@ -377,7 +377,7 @@ export default function DashboardPage() {
|
|
| 377 |
<div className="grid grid-cols-1 lg:grid-cols-3 gap-6">
|
| 378 |
|
| 379 |
{/* Frequent Objections (List) */}
|
| 380 |
-
<div className="bg-
|
| 381 |
<h3 className="text-sm font-bold text-slate-400 uppercase tracking-wider mb-6 flex items-center gap-2">
|
| 382 |
<AlertCircle className="w-4 h-4 text-red-400" />
|
| 383 |
ЧАСТЫЕ ВОЗРАЖЕНИЯ
|
|
@@ -410,7 +410,7 @@ export default function DashboardPage() {
|
|
| 410 |
</div>
|
| 411 |
|
| 412 |
{/* Pipeline Dynamics (Area Chart) reused */}
|
| 413 |
-
<div className="lg:col-span-2 bg-
|
| 414 |
<h3 className="text-sm font-bold text-slate-400 uppercase tracking-wider mb-6">ДИНАМИКА ЦЕННОСТИ ЛИДОВ (30 ДНЕЙ)</h3>
|
| 415 |
<div className="h-[300px] w-full relative z-10">
|
| 416 |
<ResponsiveContainer width="100%" height="100%">
|
|
|
|
| 150 |
|
| 151 |
if (authLoading || (loading && !data)) {
|
| 152 |
return (
|
| 153 |
+
<div className="flex items-center justify-center min-h-screen bg-background">
|
| 154 |
<div className="flex flex-col items-center gap-4">
|
| 155 |
<div className="w-8 h-8 rounded-full border-2 border-indigo-500 border-t-transparent animate-spin"></div>
|
| 156 |
<p className="text-indigo-400 font-mono text-xs animate-pulse">ЗАГРУЗКА АНАЛИТИКИ...</p>
|
|
|
|
| 161 |
|
| 162 |
if (error) {
|
| 163 |
return (
|
| 164 |
+
<div className="flex items-center justify-center min-h-screen bg-background">
|
| 165 |
+
<div className="bg-surface p-8 rounded-xl border border-red-500/30 max-w-md text-center">
|
| 166 |
<AlertCircle className="w-8 h-8 text-red-500 mx-auto mb-4" />
|
| 167 |
<h2 className="text-lg font-bold text-white mb-2 font-mono">ОШИБКА СИСТЕМЫ</h2>
|
| 168 |
<p className="text-slate-400 mb-6 text-sm">{error}</p>
|
|
|
|
| 197 |
<div className="relative">
|
| 198 |
<button
|
| 199 |
onClick={() => setIsDateDropdownOpen(!isDateDropdownOpen)}
|
| 200 |
+
className="px-4 py-2 bg-surface border border-white/10 rounded-lg text-xs font-mono text-slate-400 flex items-center gap-2 hover:border-indigo-500/50 transition-colors w-[180px] justify-between"
|
| 201 |
>
|
| 202 |
<div className="flex items-center gap-2">
|
| 203 |
<Calendar className="w-3 h-3" />
|
|
|
|
| 212 |
initial={{ opacity: 0, y: 5 }}
|
| 213 |
animate={{ opacity: 1, y: 0 }}
|
| 214 |
exit={{ opacity: 0, y: 5 }}
|
| 215 |
+
className="absolute top-full right-0 mt-2 w-[180px] bg-surface rounded-lg border border-white/10 z-50 overflow-hidden"
|
| 216 |
>
|
| 217 |
{[
|
| 218 |
{ val: '7d', label: '7 дней' },
|
|
|
|
| 243 |
{/* Refresh Button */}
|
| 244 |
<button
|
| 245 |
onClick={fetchAnalytics}
|
| 246 |
+
className="p-2 bg-surface border border-white/10 rounded-lg hover:border-indigo-500/50 text-slate-400 transition-colors hover:rotate-180 duration-500"
|
| 247 |
title="Обновить"
|
| 248 |
>
|
| 249 |
<RefreshCw className="w-4 h-4" />
|
|
|
|
| 254 |
{/* Key Metrics Grid */}
|
| 255 |
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6">
|
| 256 |
{/* Total Leads */}
|
| 257 |
+
<div className="group relative bg-surface-elevated rounded-2xl border border-white/10 p-6 transition-all hover:border-indigo-500/30 hover:shadow-[0_0_30px_-5px_rgba(99,102,241,0.15)]">
|
| 258 |
<div className="absolute inset-0 bg-gradient-to-br from-indigo-500/0 via-purple-500/0 to-pink-500/0 group-hover:from-indigo-500/5 group-hover:via-purple-500/5 group-hover:to-pink-500/5 rounded-2xl transition-all duration-500" />
|
| 259 |
<div className="relative">
|
| 260 |
<div className="h-12 w-12 rounded-xl bg-purple-500/10 border border-purple-500/20 flex items-center justify-center mb-4 group-hover:scale-110 transition-transform duration-300">
|
|
|
|
| 266 |
</div>
|
| 267 |
|
| 268 |
{/* Average Response Time */}
|
| 269 |
+
<div className="group relative bg-surface-elevated rounded-2xl border border-white/10 p-6 transition-all hover:border-indigo-500/30 hover:shadow-[0_0_30px_-5px_rgba(99,102,241,0.15)]">
|
| 270 |
<div className="absolute inset-0 bg-gradient-to-br from-indigo-500/0 via-purple-500/0 to-pink-500/0 group-hover:from-indigo-500/5 group-hover:via-purple-500/5 group-hover:to-pink-500/5 rounded-2xl transition-all duration-500" />
|
| 271 |
<div className="relative">
|
| 272 |
<div className="h-12 w-12 rounded-xl bg-indigo-500/10 border border-indigo-500/20 flex items-center justify-center mb-4 group-hover:scale-110 transition-transform duration-300">
|
|
|
|
| 278 |
</div>
|
| 279 |
|
| 280 |
{/* Conversion */}
|
| 281 |
+
<div className="group relative bg-surface-elevated rounded-2xl border border-white/10 p-6 transition-all hover:border-indigo-500/30 hover:shadow-[0_0_30px_-5px_rgba(99,102,241,0.15)]">
|
| 282 |
<div className="absolute inset-0 bg-gradient-to-br from-indigo-500/0 via-purple-500/0 to-pink-500/0 group-hover:from-indigo-500/5 group-hover:via-purple-500/5 group-hover:to-pink-500/5 rounded-2xl transition-all duration-500" />
|
| 283 |
<div className="relative">
|
| 284 |
<div className="h-12 w-12 rounded-xl bg-pink-500/10 border border-pink-500/20 flex items-center justify-center mb-4 group-hover:scale-110 transition-transform duration-300">
|
|
|
|
| 290 |
</div>
|
| 291 |
|
| 292 |
{/* Pipeline Value */}
|
| 293 |
+
<div className="group relative bg-surface-elevated rounded-2xl border border-white/10 p-6 transition-all hover:border-indigo-500/30 hover:shadow-[0_0_30px_-5px_rgba(99,102,241,0.15)]">
|
| 294 |
<div className="absolute inset-0 bg-gradient-to-br from-indigo-500/0 via-purple-500/0 to-pink-500/0 group-hover:from-indigo-500/5 group-hover:via-purple-500/5 group-hover:to-pink-500/5 rounded-2xl transition-all duration-500" />
|
| 295 |
<div className="relative">
|
| 296 |
<div className="h-12 w-12 rounded-xl bg-emerald-500/10 border border-emerald-500/20 flex items-center justify-center mb-4 group-hover:scale-110 transition-transform duration-300">
|
|
|
|
| 307 |
<div className="grid grid-cols-1 lg:grid-cols-3 gap-6">
|
| 308 |
|
| 309 |
{/* Leads by Channel (Donut Chart) */}
|
| 310 |
+
<div className="bg-surface-elevated rounded-2xl border border-white/10 p-6 relative overflow-hidden flex flex-col">
|
| 311 |
<h3 className="text-sm font-bold text-slate-400 uppercase tracking-wider mb-6">ИСТОЧНИКИ ЛИДОВ</h3>
|
| 312 |
<div className="h-[250px] w-full relative z-10 flex items-center justify-center">
|
| 313 |
{data.channel_stats && data.channel_stats.length > 0 ? (
|
|
|
|
| 345 |
</div>
|
| 346 |
|
| 347 |
{/* Funnel Drop-off (Bar Chart) */}
|
| 348 |
+
<div className="lg:col-span-2 bg-surface-elevated rounded-2xl border border-white/10 p-6 relative overflow-hidden">
|
| 349 |
<h3 className="text-sm font-bold text-slate-400 uppercase tracking-wider mb-6">ВОРОНКА ПРОДАЖ (ОТТОК КЛИЕНТОВ)</h3>
|
| 350 |
<div className="h-[250px] w-full relative z-10">
|
| 351 |
<ResponsiveContainer width="100%" height="100%">
|
|
|
|
| 377 |
<div className="grid grid-cols-1 lg:grid-cols-3 gap-6">
|
| 378 |
|
| 379 |
{/* Frequent Objections (List) */}
|
| 380 |
+
<div className="bg-surface-elevated rounded-2xl border border-white/10 p-6 relative overflow-hidden">
|
| 381 |
<h3 className="text-sm font-bold text-slate-400 uppercase tracking-wider mb-6 flex items-center gap-2">
|
| 382 |
<AlertCircle className="w-4 h-4 text-red-400" />
|
| 383 |
ЧАСТЫЕ ВОЗРАЖЕНИЯ
|
|
|
|
| 410 |
</div>
|
| 411 |
|
| 412 |
{/* Pipeline Dynamics (Area Chart) reused */}
|
| 413 |
+
<div className="lg:col-span-2 bg-surface-elevated rounded-2xl border border-white/10 p-6 relative overflow-hidden">
|
| 414 |
<h3 className="text-sm font-bold text-slate-400 uppercase tracking-wider mb-6">ДИНАМИКА ЦЕННОСТИ ЛИДОВ (30 ДНЕЙ)</h3>
|
| 415 |
<div className="h-[300px] w-full relative z-10">
|
| 416 |
<ResponsiveContainer width="100%" height="100%">
|
frontend/app/globals.css
CHANGED
|
@@ -1,5 +1,33 @@
|
|
| 1 |
@import "tailwindcss";
|
| 2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
/* Smooth scrolling */
|
| 4 |
html {
|
| 5 |
scroll-behavior: smooth;
|
|
|
|
| 1 |
@import "tailwindcss";
|
| 2 |
|
| 3 |
+
/* Tailwind CSS v4 Theme Extension — Use CSS Variables as Tailwind Classes */
|
| 4 |
+
@theme {
|
| 5 |
+
/* Backgrounds */
|
| 6 |
+
--color-background: var(--background);
|
| 7 |
+
--color-surface: var(--surface);
|
| 8 |
+
--color-surface-elevated: var(--surface-elevated);
|
| 9 |
+
--color-surface-hover: var(--surface-hover);
|
| 10 |
+
|
| 11 |
+
/* Primary Colors */
|
| 12 |
+
--color-primary: var(--primary);
|
| 13 |
+
--color-primary-light: var(--primary-light);
|
| 14 |
+
--color-secondary: var(--secondary);
|
| 15 |
+
--color-accent: var(--accent);
|
| 16 |
+
--color-accent-cyan: var(--accent-cyan);
|
| 17 |
+
|
| 18 |
+
/* Semantic */
|
| 19 |
+
--color-success: var(--success);
|
| 20 |
+
--color-warning: var(--warning);
|
| 21 |
+
--color-error: var(--error);
|
| 22 |
+
--color-info: var(--info);
|
| 23 |
+
|
| 24 |
+
/* Text */
|
| 25 |
+
--color-foreground: var(--foreground);
|
| 26 |
+
--color-text-secondary: var(--text-secondary);
|
| 27 |
+
--color-text-muted: var(--text-muted);
|
| 28 |
+
--color-text-dim: var(--text-dim);
|
| 29 |
+
}
|
| 30 |
+
|
| 31 |
/* Smooth scrolling */
|
| 32 |
html {
|
| 33 |
scroll-behavior: smooth;
|
frontend/app/page.tsx
CHANGED
|
@@ -5,7 +5,7 @@ import { ArrowRight, Zap, Target, BarChart3, Shield, Bot, MessageSquare } from '
|
|
| 5 |
|
| 6 |
export default function HomePage() {
|
| 7 |
return (
|
| 8 |
-
<div className="min-h-screen bg-
|
| 9 |
|
| 10 |
{/* Background Grid Animation */}
|
| 11 |
<div className="fixed inset-0 z-0 pointer-events-none opacity-20"
|
|
@@ -57,10 +57,10 @@ export default function HomePage() {
|
|
| 57 |
<div className="relative glass-card rounded-xl p-1 border border-white/10 overflow-hidden">
|
| 58 |
|
| 59 |
{/* Mock Dashboard UI - Hero Image */}
|
| 60 |
-
<div className="bg-
|
| 61 |
|
| 62 |
{/* Stat 1 */}
|
| 63 |
-
<div className="p-6 rounded-lg bg-
|
| 64 |
<div className="text-slate-400 text-sm uppercase tracking-widest mb-2">Revenue Today</div>
|
| 65 |
<div className="text-4xl font-mono text-green-400 font-bold drop-shadow-[0_0_10px_rgba(74,222,128,0.5)]">$12,450</div>
|
| 66 |
<div className="text-xs text-green-500 mt-2 flex items-center gap-1">
|
|
@@ -69,7 +69,7 @@ export default function HomePage() {
|
|
| 69 |
</div>
|
| 70 |
|
| 71 |
{/* Stat 2 */}
|
| 72 |
-
<div className="p-6 rounded-lg bg-
|
| 73 |
<div className="text-slate-400 text-sm uppercase tracking-widest mb-2">Active Agents</div>
|
| 74 |
<div className="text-4xl font-mono text-indigo-400 font-bold drop-shadow-[0_0_10px_rgba(99,102,241,0.5)]">84</div>
|
| 75 |
<div className="text-xs text-indigo-500 mt-2 flex items-center gap-1">
|
|
@@ -78,7 +78,7 @@ export default function HomePage() {
|
|
| 78 |
</div>
|
| 79 |
|
| 80 |
{/* Stat 3 */}
|
| 81 |
-
<div className="p-6 rounded-lg bg-
|
| 82 |
<div className="text-slate-400 text-sm uppercase tracking-widest mb-2">Conversion Rate</div>
|
| 83 |
<div className="text-4xl font-mono text-pink-400 font-bold drop-shadow-[0_0_10px_rgba(236,72,153,0.5)]">8.4%</div>
|
| 84 |
<div className="text-xs text-pink-500 mt-2 flex items-center gap-1">
|
|
|
|
| 5 |
|
| 6 |
export default function HomePage() {
|
| 7 |
return (
|
| 8 |
+
<div className="min-h-screen bg-background overflow-hidden relative selection:bg-indigo-500/30">
|
| 9 |
|
| 10 |
{/* Background Grid Animation */}
|
| 11 |
<div className="fixed inset-0 z-0 pointer-events-none opacity-20"
|
|
|
|
| 57 |
<div className="relative glass-card rounded-xl p-1 border border-white/10 overflow-hidden">
|
| 58 |
|
| 59 |
{/* Mock Dashboard UI - Hero Image */}
|
| 60 |
+
<div className="bg-surface rounded-lg p-8 grid grid-cols-1 md:grid-cols-3 gap-6">
|
| 61 |
|
| 62 |
{/* Stat 1 */}
|
| 63 |
+
<div className="p-6 rounded-lg bg-background border border-white/5 flex flex-col items-center">
|
| 64 |
<div className="text-slate-400 text-sm uppercase tracking-widest mb-2">Revenue Today</div>
|
| 65 |
<div className="text-4xl font-mono text-green-400 font-bold drop-shadow-[0_0_10px_rgba(74,222,128,0.5)]">$12,450</div>
|
| 66 |
<div className="text-xs text-green-500 mt-2 flex items-center gap-1">
|
|
|
|
| 69 |
</div>
|
| 70 |
|
| 71 |
{/* Stat 2 */}
|
| 72 |
+
<div className="p-6 rounded-lg bg-background border border-white/5 flex flex-col items-center">
|
| 73 |
<div className="text-slate-400 text-sm uppercase tracking-widest mb-2">Active Agents</div>
|
| 74 |
<div className="text-4xl font-mono text-indigo-400 font-bold drop-shadow-[0_0_10px_rgba(99,102,241,0.5)]">84</div>
|
| 75 |
<div className="text-xs text-indigo-500 mt-2 flex items-center gap-1">
|
|
|
|
| 78 |
</div>
|
| 79 |
|
| 80 |
{/* Stat 3 */}
|
| 81 |
+
<div className="p-6 rounded-lg bg-background border border-white/5 flex flex-col items-center">
|
| 82 |
<div className="text-slate-400 text-sm uppercase tracking-widest mb-2">Conversion Rate</div>
|
| 83 |
<div className="text-4xl font-mono text-pink-400 font-bold drop-shadow-[0_0_10px_rgba(236,72,153,0.5)]">8.4%</div>
|
| 84 |
<div className="text-xs text-pink-500 mt-2 flex items-center gap-1">
|
frontend/components/ChatWindow.tsx
CHANGED
|
@@ -208,7 +208,7 @@ export function ChatWindow({
|
|
| 208 |
</div>
|
| 209 |
) : allMessages.length === 0 ? (
|
| 210 |
<div className="flex flex-col items-center justify-center h-full text-slate-500">
|
| 211 |
-
<div className="w-16 h-16 bg-
|
| 212 |
<Bot className="w-8 h-8 text-slate-600" />
|
| 213 |
</div>
|
| 214 |
<p className="text-sm font-medium">История сообщений пуста</p>
|
|
@@ -258,7 +258,7 @@ export function ChatWindow({
|
|
| 258 |
{isMobileDrawerOpen && (
|
| 259 |
<div className="fixed inset-0 z-50 md:hidden">
|
| 260 |
<div className="absolute inset-0 bg-black/60 backdrop-blur-sm" onClick={() => setIsMobileDrawerOpen(false)} />
|
| 261 |
-
<div className="absolute right-0 top-0 bottom-0 w-[85%] bg-
|
| 262 |
<div className="p-4 border-b border-white/10 flex items-center justify-between">
|
| 263 |
<h3 className="font-bold text-white">Инфо о лиде</h3>
|
| 264 |
<button onClick={() => setIsMobileDrawerOpen(false)} className="p-2 hover:bg-white/10 rounded-full">
|
|
|
|
| 208 |
</div>
|
| 209 |
) : allMessages.length === 0 ? (
|
| 210 |
<div className="flex flex-col items-center justify-center h-full text-slate-500">
|
| 211 |
+
<div className="w-16 h-16 bg-surface-elevated rounded-full flex items-center justify-center border border-white/10 mb-4">
|
| 212 |
<Bot className="w-8 h-8 text-slate-600" />
|
| 213 |
</div>
|
| 214 |
<p className="text-sm font-medium">История сообщений пуста</p>
|
|
|
|
| 258 |
{isMobileDrawerOpen && (
|
| 259 |
<div className="fixed inset-0 z-50 md:hidden">
|
| 260 |
<div className="absolute inset-0 bg-black/60 backdrop-blur-sm" onClick={() => setIsMobileDrawerOpen(false)} />
|
| 261 |
+
<div className="absolute right-0 top-0 bottom-0 w-[85%] bg-surface-elevated shadow-2xl animate-in slide-in-from-right duration-300">
|
| 262 |
<div className="p-4 border-b border-white/10 flex items-center justify-between">
|
| 263 |
<h3 className="font-bold text-white">Инфо о лиде</h3>
|
| 264 |
<button onClick={() => setIsMobileDrawerOpen(false)} className="p-2 hover:bg-white/10 rounded-full">
|
frontend/components/ChatWindow/ChatHeader.tsx
CHANGED
|
@@ -30,7 +30,7 @@ export function ChatHeader({
|
|
| 30 |
onOpenBookingModal,
|
| 31 |
}: ChatHeaderProps) {
|
| 32 |
return (
|
| 33 |
-
<div className="bg-
|
| 34 |
<div className="flex items-center gap-4">
|
| 35 |
{/* Desktop Toggle */}
|
| 36 |
<button
|
|
|
|
| 30 |
onOpenBookingModal,
|
| 31 |
}: ChatHeaderProps) {
|
| 32 |
return (
|
| 33 |
+
<div className="bg-surface-elevated border-b border-white/10 px-6 py-3 flex items-center justify-between z-10 flex-shrink-0">
|
| 34 |
<div className="flex items-center gap-4">
|
| 35 |
{/* Desktop Toggle */}
|
| 36 |
<button
|
frontend/components/ChatWindow/MessageBubble.tsx
CHANGED
|
@@ -49,7 +49,7 @@ export function MessageBubble({
|
|
| 49 |
{/* Avatar */}
|
| 50 |
<div className={cn(
|
| 51 |
"w-8 h-8 rounded-full flex items-center justify-center flex-shrink-0 mt-auto mb-1 transition-opacity",
|
| 52 |
-
isMe ? "bg-indigo-600 text-white" : "bg-
|
| 53 |
isSequence ? "opacity-0 w-0 overflow-hidden ml-0 mr-0" : "opacity-100"
|
| 54 |
)}>
|
| 55 |
{isMe ? (isAI ? <Bot className="w-4 h-4" /> : <User className="w-4 h-4" />) : <User className="w-4 h-4" />}
|
|
|
|
| 49 |
{/* Avatar */}
|
| 50 |
<div className={cn(
|
| 51 |
"w-8 h-8 rounded-full flex items-center justify-center flex-shrink-0 mt-auto mb-1 transition-opacity",
|
| 52 |
+
isMe ? "bg-indigo-600 text-white" : "bg-surface-elevated text-slate-400 border border-white/10",
|
| 53 |
isSequence ? "opacity-0 w-0 overflow-hidden ml-0 mr-0" : "opacity-100"
|
| 54 |
)}>
|
| 55 |
{isMe ? (isAI ? <Bot className="w-4 h-4" /> : <User className="w-4 h-4" />) : <User className="w-4 h-4" />}
|
frontend/components/ChatWindow/MessageInput.tsx
CHANGED
|
@@ -30,7 +30,7 @@ export function MessageInput({
|
|
| 30 |
<div className="max-w-4xl mx-auto relative">
|
| 31 |
<form
|
| 32 |
onSubmit={onSubmit}
|
| 33 |
-
className="flex items-end gap-2 bg-
|
| 34 |
>
|
| 35 |
<button
|
| 36 |
type="button"
|
|
|
|
| 30 |
<div className="max-w-4xl mx-auto relative">
|
| 31 |
<form
|
| 32 |
onSubmit={onSubmit}
|
| 33 |
+
className="flex items-end gap-2 bg-surface-elevated p-2 rounded-2xl border border-white/10 focus-within:ring-2 focus-within:ring-indigo-500/30 transition-all"
|
| 34 |
>
|
| 35 |
<button
|
| 36 |
type="button"
|
frontend/components/LeadsList.tsx
CHANGED
|
@@ -60,7 +60,7 @@ export function LeadsList({
|
|
| 60 |
return (
|
| 61 |
<div className="flex flex-col h-full bg-[#0D0E18] border-r border-white/10">
|
| 62 |
{/* Header & Search */}
|
| 63 |
-
<div className="p-4 border-b border-white/10 space-y-3 flex-shrink-0 bg-
|
| 64 |
<div className="flex items-center justify-between">
|
| 65 |
<h2 className="text-xl font-bold text-white tracking-tight">Чаты</h2>
|
| 66 |
<button className="p-2 hover:bg-white/5 rounded-lg text-slate-400 hover:text-white transition-colors">
|
|
|
|
| 60 |
return (
|
| 61 |
<div className="flex flex-col h-full bg-[#0D0E18] border-r border-white/10">
|
| 62 |
{/* Header & Search */}
|
| 63 |
+
<div className="p-4 border-b border-white/10 space-y-3 flex-shrink-0 bg-surface-elevated">
|
| 64 |
<div className="flex items-center justify-between">
|
| 65 |
<h2 className="text-xl font-bold text-white tracking-tight">Чаты</h2>
|
| 66 |
<button className="p-2 hover:bg-white/5 rounded-lg text-slate-400 hover:text-white transition-colors">
|
frontend/components/StageStepper.tsx
CHANGED
|
@@ -31,7 +31,7 @@ export function StageStepper({ stages, currentStageId, onStageClick, isLoading }
|
|
| 31 |
: -1
|
| 32 |
|
| 33 |
return (
|
| 34 |
-
<div className="w-full bg-
|
| 35 |
<div className="flex items-center justify-between min-w-max gap-4">
|
| 36 |
{stages.map((stage, index) => {
|
| 37 |
const isCompleted = currentIndex > index
|
|
|
|
| 31 |
: -1
|
| 32 |
|
| 33 |
return (
|
| 34 |
+
<div className="w-full bg-surface-elevated/50 backdrop-blur-sm border-b border-white/5 py-4 px-6 overflow-x-auto scrollbar-thin scrollbar-thumb-white/10">
|
| 35 |
<div className="flex items-center justify-between min-w-max gap-4">
|
| 36 |
{stages.map((stage, index) => {
|
| 37 |
const isCompleted = currentIndex > index
|
frontend/components/StatsCard.tsx
CHANGED
|
@@ -27,7 +27,7 @@ export function StatsCard({
|
|
| 27 |
}: StatsCardProps) {
|
| 28 |
return (
|
| 29 |
<div className={cn(
|
| 30 |
-
"group relative bg-
|
| 31 |
className
|
| 32 |
)}>
|
| 33 |
{/* Premium gradient overlay */}
|
|
|
|
| 27 |
}: StatsCardProps) {
|
| 28 |
return (
|
| 29 |
<div className={cn(
|
| 30 |
+
"group relative bg-surface-elevated rounded-2xl border border-white/10 p-6 transition-all duration-300 hover:border-indigo-500/30 hover:-translate-y-0.5 hover:shadow-[0_0_30px_-5px_rgba(99,102,241,0.15)]",
|
| 31 |
className
|
| 32 |
)}>
|
| 33 |
{/* Premium gradient overlay */}
|
frontend/components/admin/UsersTab.tsx
CHANGED
|
@@ -94,7 +94,7 @@ export default function UsersTab() {
|
|
| 94 |
value={searchQuery}
|
| 95 |
onChange={(e) => setSearchQuery(e.target.value)}
|
| 96 |
placeholder="Поиск"
|
| 97 |
-
className="w-full pl-10 pr-4 py-2.5 bg-
|
| 98 |
/>
|
| 99 |
</div>
|
| 100 |
<button
|
|
@@ -106,7 +106,7 @@ export default function UsersTab() {
|
|
| 106 |
</div>
|
| 107 |
|
| 108 |
{/* Table - Reference Design */}
|
| 109 |
-
<div className="bg-
|
| 110 |
<div className="overflow-x-auto">
|
| 111 |
<table className="w-full">
|
| 112 |
<thead>
|
|
|
|
| 94 |
value={searchQuery}
|
| 95 |
onChange={(e) => setSearchQuery(e.target.value)}
|
| 96 |
placeholder="Поиск"
|
| 97 |
+
className="w-full pl-10 pr-4 py-2.5 bg-surface-elevated border border-white/10 rounded-xl text-sm text-white placeholder:text-slate-600 focus:border-indigo-500/50 focus:ring-1 focus:ring-indigo-500/50 outline-none transition-all"
|
| 98 |
/>
|
| 99 |
</div>
|
| 100 |
<button
|
|
|
|
| 106 |
</div>
|
| 107 |
|
| 108 |
{/* Table - Reference Design */}
|
| 109 |
+
<div className="bg-surface-elevated rounded-2xl border border-white/10 overflow-hidden">
|
| 110 |
<div className="overflow-x-auto">
|
| 111 |
<table className="w-full">
|
| 112 |
<thead>
|