Spaces:
Sleeping
Sleeping
axeronis commited on
Commit ·
f2886f4
1
Parent(s): dc7e33a
style: Align UI with reference designs - unify colors and layout
Browse files
frontend/app/admin/page.tsx
CHANGED
|
@@ -48,11 +48,11 @@ export default function AdminPanelPage() {
|
|
| 48 |
]
|
| 49 |
|
| 50 |
return (
|
| 51 |
-
<div className="min-h-screen bg-
|
| 52 |
{/* Sidebar is handled by layout, this is the page content */}
|
| 53 |
|
| 54 |
{/* Header - Reference Design */}
|
| 55 |
-
<div className="border-b border-white/10 bg-
|
| 56 |
<div className="max-w-[1400px] mx-auto px-6">
|
| 57 |
<div className="py-6">
|
| 58 |
<h1 className="text-2xl font-black text-white mb-2">Админ</h1>
|
|
|
|
| 48 |
]
|
| 49 |
|
| 50 |
return (
|
| 51 |
+
<div className="min-h-screen bg-background font-['Inter']">
|
| 52 |
{/* Sidebar is handled by layout, this is the page content */}
|
| 53 |
|
| 54 |
{/* Header - Reference Design */}
|
| 55 |
+
<div className="border-b border-white/10 bg-background sticky top-0 z-40">
|
| 56 |
<div className="max-w-[1400px] mx-auto px-6">
|
| 57 |
<div className="py-6">
|
| 58 |
<h1 className="text-2xl font-black text-white mb-2">Админ</h1>
|
frontend/app/appointments/page.tsx
CHANGED
|
@@ -79,7 +79,7 @@ export default function AppointmentsPage() {
|
|
| 79 |
{/* Left: Main Calendar */}
|
| 80 |
<div className="lg:col-span-8 h-full flex flex-col min-h-0">
|
| 81 |
{isLoading ? (
|
| 82 |
-
<div className="flex-1 flex items-center justify-center bg-
|
| 83 |
<Loader2 className="w-10 h-10 animate-spin text-indigo-500" />
|
| 84 |
</div>
|
| 85 |
) : (
|
|
|
|
| 79 |
{/* Left: Main Calendar */}
|
| 80 |
<div className="lg:col-span-8 h-full flex flex-col min-h-0">
|
| 81 |
{isLoading ? (
|
| 82 |
+
<div className="flex-1 flex items-center justify-center bg-surface-elevated border border-white/5 rounded-3xl">
|
| 83 |
<Loader2 className="w-10 h-10 animate-spin text-indigo-500" />
|
| 84 |
</div>
|
| 85 |
) : (
|
frontend/app/channels/page.tsx
CHANGED
|
@@ -69,14 +69,14 @@ export default function ChannelsPage() {
|
|
| 69 |
|
| 70 |
if (authLoading || !user) {
|
| 71 |
return (
|
| 72 |
-
<div className="flex items-center justify-center h-full bg-
|
| 73 |
<Loader2 className="w-8 h-8 animate-spin text-indigo-500" />
|
| 74 |
</div>
|
| 75 |
)
|
| 76 |
}
|
| 77 |
|
| 78 |
return (
|
| 79 |
-
<div className="min-h-full bg-
|
| 80 |
{/* Background Glows */}
|
| 81 |
<div className="absolute top-0 left-0 w-[500px] h-[500px] bg-purple-900/20 blur-[120px] rounded-full pointer-events-none" />
|
| 82 |
<div className="absolute bottom-0 right-0 w-[500px] h-[500px] bg-indigo-900/10 blur-[120px] rounded-full pointer-events-none" />
|
|
|
|
| 69 |
|
| 70 |
if (authLoading || !user) {
|
| 71 |
return (
|
| 72 |
+
<div className="flex items-center justify-center h-full bg-background">
|
| 73 |
<Loader2 className="w-8 h-8 animate-spin text-indigo-500" />
|
| 74 |
</div>
|
| 75 |
)
|
| 76 |
}
|
| 77 |
|
| 78 |
return (
|
| 79 |
+
<div className="min-h-full bg-background p-8 text-white font-['Inter'] relative overflow-hidden">
|
| 80 |
{/* Background Glows */}
|
| 81 |
<div className="absolute top-0 left-0 w-[500px] h-[500px] bg-purple-900/20 blur-[120px] rounded-full pointer-events-none" />
|
| 82 |
<div className="absolute bottom-0 right-0 w-[500px] h-[500px] bg-indigo-900/10 blur-[120px] rounded-full pointer-events-none" />
|
frontend/app/chats/page.tsx
CHANGED
|
@@ -95,7 +95,7 @@ function ChatsContent() {
|
|
| 95 |
|
| 96 |
if (authLoading || !user) {
|
| 97 |
return (
|
| 98 |
-
<div className="flex items-center justify-center h-screen bg-
|
| 99 |
<Loader2 className="w-8 h-8 animate-spin text-indigo-500" />
|
| 100 |
</div>
|
| 101 |
)
|
|
@@ -103,10 +103,10 @@ function ChatsContent() {
|
|
| 103 |
|
| 104 |
|
| 105 |
return (
|
| 106 |
-
<div className="flex bg-
|
| 107 |
{/* Left Column: Leads List */}
|
| 108 |
<div className={cn(
|
| 109 |
-
"h-full border-r border-white/10 flex flex-col transition-all duration-300 z-20 bg-
|
| 110 |
// Desktop: 25% or min 300px
|
| 111 |
"md:w-[320px] lg:w-1/4 lg:min-w-[320px] lg:max-w-[400px]",
|
| 112 |
// Mobile: Full width if no lead selected, else hidden
|
|
@@ -130,7 +130,7 @@ function ChatsContent() {
|
|
| 130 |
{/* Center Column: Chat Window */}
|
| 131 |
{(selectedLead || (typeof window !== 'undefined' && window.innerWidth >= 768)) && (
|
| 132 |
<div className={cn(
|
| 133 |
-
"flex-1 h-full flex flex-col relative z-10 bg-
|
| 134 |
// Mobile: Full width if lead selected, else hidden (unless desktop)
|
| 135 |
selectedLead ? "w-full flex" : "hidden md:flex"
|
| 136 |
)}>
|
|
@@ -169,7 +169,7 @@ function ChatsContent() {
|
|
| 169 |
|
| 170 |
{/* Right Column: Client Intelligence */}
|
| 171 |
<div className={cn(
|
| 172 |
-
"h-full border-l border-white/10 bg-
|
| 173 |
// Desktop: 25% or min 300px
|
| 174 |
"lg:w-1/4 lg:min-w-[320px] lg:max-w-[400px]",
|
| 175 |
// Mobile: Hidden by default (Future: Drawer)
|
|
@@ -196,7 +196,7 @@ function ChatsContent() {
|
|
| 196 |
|
| 197 |
export default function ChatsPage() {
|
| 198 |
return (
|
| 199 |
-
<Suspense fallback={<div className="flex items-center justify-center h-screen bg-
|
| 200 |
<ChatsContent />
|
| 201 |
</Suspense>
|
| 202 |
)
|
|
|
|
| 95 |
|
| 96 |
if (authLoading || !user) {
|
| 97 |
return (
|
| 98 |
+
<div className="flex items-center justify-center h-screen bg-background">
|
| 99 |
<Loader2 className="w-8 h-8 animate-spin text-indigo-500" />
|
| 100 |
</div>
|
| 101 |
)
|
|
|
|
| 103 |
|
| 104 |
|
| 105 |
return (
|
| 106 |
+
<div className="flex bg-background h-full overflow-hidden relative">
|
| 107 |
{/* Left Column: Leads List */}
|
| 108 |
<div className={cn(
|
| 109 |
+
"h-full border-r border-white/10 flex flex-col transition-all duration-300 z-20 bg-background",
|
| 110 |
// Desktop: 25% or min 300px
|
| 111 |
"md:w-[320px] lg:w-1/4 lg:min-w-[320px] lg:max-w-[400px]",
|
| 112 |
// Mobile: Full width if no lead selected, else hidden
|
|
|
|
| 130 |
{/* Center Column: Chat Window */}
|
| 131 |
{(selectedLead || (typeof window !== 'undefined' && window.innerWidth >= 768)) && (
|
| 132 |
<div className={cn(
|
| 133 |
+
"flex-1 h-full flex flex-col relative z-10 bg-surface transition-all duration-300",
|
| 134 |
// Mobile: Full width if lead selected, else hidden (unless desktop)
|
| 135 |
selectedLead ? "w-full flex" : "hidden md:flex"
|
| 136 |
)}>
|
|
|
|
| 169 |
|
| 170 |
{/* Right Column: Client Intelligence */}
|
| 171 |
<div className={cn(
|
| 172 |
+
"h-full border-l border-white/10 bg-surface z-20 transition-all duration-300",
|
| 173 |
// Desktop: 25% or min 300px
|
| 174 |
"lg:w-1/4 lg:min-w-[320px] lg:max-w-[400px]",
|
| 175 |
// Mobile: Hidden by default (Future: Drawer)
|
|
|
|
| 196 |
|
| 197 |
export default function ChatsPage() {
|
| 198 |
return (
|
| 199 |
+
<Suspense fallback={<div className="flex items-center justify-center h-screen bg-background"><Loader2 className="w-8 h-8 animate-spin text-indigo-500" /></div>}>
|
| 200 |
<ChatsContent />
|
| 201 |
</Suspense>
|
| 202 |
)
|
frontend/app/layout.tsx
CHANGED
|
@@ -27,7 +27,7 @@ function ProtectedLayout({ children }: { children: React.ReactNode }) {
|
|
| 27 |
|
| 28 |
if (isLoading) {
|
| 29 |
return (
|
| 30 |
-
<div className="flex h-screen items-center justify-center bg-
|
| 31 |
<div className="animate-spin rounded-full h-8 w-8 border-b-2 border-indigo-600"></div>
|
| 32 |
</div>
|
| 33 |
)
|
|
@@ -59,7 +59,7 @@ export default function RootLayout({
|
|
| 59 |
) : (
|
| 60 |
// App layout (with sidebar)
|
| 61 |
<ProtectedLayout>
|
| 62 |
-
<div className="flex h-screen bg-
|
| 63 |
{/* Desktop Sidebar */}
|
| 64 |
<div className="hidden md:flex h-full relative z-30">
|
| 65 |
<Sidebar />
|
|
|
|
| 27 |
|
| 28 |
if (isLoading) {
|
| 29 |
return (
|
| 30 |
+
<div className="flex h-screen items-center justify-center bg-background">
|
| 31 |
<div className="animate-spin rounded-full h-8 w-8 border-b-2 border-indigo-600"></div>
|
| 32 |
</div>
|
| 33 |
)
|
|
|
|
| 59 |
) : (
|
| 60 |
// App layout (with sidebar)
|
| 61 |
<ProtectedLayout>
|
| 62 |
+
<div className="flex h-screen bg-background relative text-white">
|
| 63 |
{/* Desktop Sidebar */}
|
| 64 |
<div className="hidden md:flex h-full relative z-30">
|
| 65 |
<Sidebar />
|
frontend/app/loading.tsx
CHANGED
|
@@ -2,7 +2,7 @@ import { Loader2 } from 'lucide-react'
|
|
| 2 |
|
| 3 |
export default function Loading() {
|
| 4 |
return (
|
| 5 |
-
<div className="flex h-full w-full items-center justify-center bg-
|
| 6 |
<Loader2 className="w-8 h-8 animate-spin text-indigo-500" />
|
| 7 |
</div>
|
| 8 |
)
|
|
|
|
| 2 |
|
| 3 |
export default function Loading() {
|
| 4 |
return (
|
| 5 |
+
<div className="flex h-full w-full items-center justify-center bg-background">
|
| 6 |
<Loader2 className="w-8 h-8 animate-spin text-indigo-500" />
|
| 7 |
</div>
|
| 8 |
)
|
frontend/app/settings/billing/page.tsx
CHANGED
|
@@ -339,7 +339,7 @@ export default function BillingPage() {
|
|
| 339 |
"relative rounded-2xl p-6 transition-all duration-500 flex flex-col",
|
| 340 |
isCurrent
|
| 341 |
? "bg-[#0A0A1F] border-2 border-indigo-500/50 shadow-[0_0_30px_-5px_rgba(99,102,241,0.2)]"
|
| 342 |
-
: "bg-
|
| 343 |
plan.popular && !isCurrent ? "border-purple-500/30 shadow-[0_0_20px_-5px_rgba(168,85,247,0.1)]" : ""
|
| 344 |
)}
|
| 345 |
>
|
|
|
|
| 339 |
"relative rounded-2xl p-6 transition-all duration-500 flex flex-col",
|
| 340 |
isCurrent
|
| 341 |
? "bg-[#0A0A1F] border-2 border-indigo-500/50 shadow-[0_0_30px_-5px_rgba(99,102,241,0.2)]"
|
| 342 |
+
: "bg-background border border-white/5 hover:border-white/10 hover:translate-y-[-4px]",
|
| 343 |
plan.popular && !isCurrent ? "border-purple-500/30 shadow-[0_0_20px_-5px_rgba(168,85,247,0.1)]" : ""
|
| 344 |
)}
|
| 345 |
>
|
frontend/app/settings/brain/page.tsx
CHANGED
|
@@ -290,7 +290,7 @@ export default function BrainSettingsPage() {
|
|
| 290 |
|
| 291 |
if (loading) {
|
| 292 |
return (
|
| 293 |
-
<div className="flex items-center justify-center min-h-screen bg-
|
| 294 |
<Loader2 className="w-12 h-12 animate-spin text-indigo-500" />
|
| 295 |
</div>
|
| 296 |
)
|
|
@@ -312,7 +312,7 @@ export default function BrainSettingsPage() {
|
|
| 312 |
}
|
| 313 |
|
| 314 |
return (
|
| 315 |
-
<div className="min-h-screen bg-
|
| 316 |
<div className="max-w-5xl mx-auto">
|
| 317 |
<motion.div
|
| 318 |
initial={{ opacity: 0, y: -20 }}
|
|
|
|
| 290 |
|
| 291 |
if (loading) {
|
| 292 |
return (
|
| 293 |
+
<div className="flex items-center justify-center min-h-screen bg-background">
|
| 294 |
<Loader2 className="w-12 h-12 animate-spin text-indigo-500" />
|
| 295 |
</div>
|
| 296 |
)
|
|
|
|
| 312 |
}
|
| 313 |
|
| 314 |
return (
|
| 315 |
+
<div className="min-h-screen bg-background p-8">
|
| 316 |
<div className="max-w-5xl mx-auto">
|
| 317 |
<motion.div
|
| 318 |
initial={{ opacity: 0, y: -20 }}
|