Spaces:
Running

axeronis commited on
Commit
7cd418b
·
1 Parent(s): 0a36ecc

revert: floating island UI changes as requested by user

Browse files
frontend/app/globals.css CHANGED
@@ -165,8 +165,7 @@ html {
165
 
166
  /* Mobile Layout Constants */
167
  --header-height-mobile: calc(52px + env(safe-area-inset-top, 0px));
168
- /* Reduced footer height variable since it's now floating */
169
- --footer-height-mobile: 80px;
170
 
171
  @media (min-width: 768px) {
172
  --header-height-mobile: 0px;
@@ -179,14 +178,6 @@ html {
179
  -webkit-backdrop-filter: blur(64px);
180
  }
181
 
182
- .floating-glass {
183
- background: rgba(13, 14, 24, 0.7);
184
- backdrop-filter: blur(24px) saturate(180%);
185
- -webkit-backdrop-filter: blur(24px) saturate(180%);
186
- border: 1px solid rgba(255, 255, 255, 0.1);
187
- box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
188
- }
189
-
190
  body {
191
  background-color: var(--background);
192
  background-image:
 
165
 
166
  /* Mobile Layout Constants */
167
  --header-height-mobile: calc(52px + env(safe-area-inset-top, 0px));
168
+ --footer-height-mobile: calc(50px + env(safe-area-inset-bottom, 0px));
 
169
 
170
  @media (min-width: 768px) {
171
  --header-height-mobile: 0px;
 
178
  -webkit-backdrop-filter: blur(64px);
179
  }
180
 
 
 
 
 
 
 
 
 
181
  body {
182
  background-color: var(--background);
183
  background-image:
frontend/app/layout.tsx CHANGED
@@ -105,7 +105,7 @@ export default function RootLayout({
105
  )}
106
  style={{
107
  paddingTop: pathname?.startsWith('/chats') ? '0px' : 'var(--header-height-mobile)',
108
- paddingBottom: '0px'
109
  }}
110
  >
111
  {children}
 
105
  )}
106
  style={{
107
  paddingTop: pathname?.startsWith('/chats') ? '0px' : 'var(--header-height-mobile)',
108
+ paddingBottom: 'var(--footer-height-mobile)'
109
  }}
110
  >
111
  {children}
frontend/components/ChatWindow/ChatHeader.tsx CHANGED
@@ -33,9 +33,9 @@ export function ChatHeader({
33
  onTrainAI,
34
  }: ChatHeaderProps) {
35
  return (
36
- <div className="h-[52px] md:h-16 shrink-0 flex items-center justify-between px-3 md:px-6 relative z-[50] border-b border-white-[0.03] bg-[#0D0E18]/20 backdrop-blur-3xl backdrop-saturate-[1.8]">
37
  {/* Aurora Background Atmosphere - Synced */}
38
- <div className="absolute inset-0 pointer-events-none overflow-hidden -z-10 bg-gradient-to-r from-indigo-500/5 to-purple-500/5 opacity-30" />
39
 
40
  {/* Left: Lead Info */}
41
  <div className="flex items-center gap-2 md:gap-3 overflow-hidden">
 
33
  onTrainAI,
34
  }: ChatHeaderProps) {
35
  return (
36
+ <div className="h-[52px] md:h-16 shrink-0 flex items-center justify-between px-3 md:px-6 relative z-[50] border-b border-white/5 bg-[#0D0E18]/40 backdrop-blur-2xl backdrop-saturate-[2]">
37
  {/* Aurora Background Atmosphere - Synced */}
38
+ <div className="absolute inset-0 pointer-events-none overflow-hidden -z-10 bg-gradient-to-r from-indigo-500/5 to-purple-500/5 opacity-40" />
39
 
40
  {/* Left: Lead Info */}
41
  <div className="flex items-center gap-2 md:gap-3 overflow-hidden">
frontend/components/MobileBottomNav.tsx CHANGED
@@ -49,62 +49,60 @@ export function MobileBottomNav() {
49
  <AnimatePresence>
50
  {!isSidebarOpen && (
51
  <motion.nav
52
- initial={{ y: '100%', opacity: 0 }}
53
- animate={{ y: 0, opacity: 1 }}
54
- exit={{ y: '100%', opacity: 0 }}
55
- transition={{ type: 'spring', damping: 25, stiffness: 200 }}
56
- className="fixed bottom-[max(20px,env(safe-area-inset-bottom,20px))] left-0 right-0 z-[100] px-4 flex justify-center pointer-events-none"
57
  >
58
- <div className="flex items-center gap-2 pointer-events-auto">
59
- {/* Essential Pill */}
60
- <div className="flex items-center gap-1 bg-[#0D0E18]/60 backdrop-blur-3xl border border-white/10 rounded-[24px] px-1.5 h-[54px] shadow-[0_8px_32px_rgba(0,0,0,0.5)]">
61
- {/* Главная */}
62
- <Link
63
- href="/settings/brain"
64
- className={cn(
65
- "flex items-center justify-center w-11 h-11 rounded-full transition-all active:scale-90",
66
- isActive('/settings/brain')
67
- ? "text-indigo-400 bg-white/10 shadow-[inner_0_1px_4px_rgba(255,255,255,0.1)]"
68
- : "text-slate-400 hover:text-slate-200"
69
- )}
70
- >
71
- <LayoutDashboard className="w-[20px] h-[20px]" />
72
- </Link>
73
 
74
- {/* Чаты */}
75
- <button
76
- onClick={handleChatsClick}
77
- className={cn(
78
- "flex items-center justify-center w-11 h-11 rounded-full transition-all active:scale-90",
79
- isActive('/chats')
80
- ? "text-indigo-400 bg-white/10 shadow-[inner_0_1px_4px_rgba(255,255,255,0.1)]"
81
- : "text-slate-400 hover:text-slate-200"
82
- )}
83
- >
84
- <MessageSquare className="w-[20px] h-[20px]" />
85
- </button>
86
 
87
- {/* Записи */}
88
- <Link
89
- href="/appointments"
90
- className={cn(
91
- "flex items-center justify-center w-11 h-11 rounded-full transition-all active:scale-90",
92
- isActive('/appointments')
93
- ? "text-indigo-400 bg-white/10 shadow-[inner_0_1px_4px_rgba(255,255,255,0.1)]"
94
- : "text-slate-400 hover:text-slate-200"
95
- )}
96
- >
97
- <Calendar className="w-[20px] h-[20px]" />
98
- </Link>
99
- </div>
100
 
101
- {/* Menu Circular Button */}
102
  <button
103
  onClick={() => document.dispatchEvent(new CustomEvent('toggle-mobile-sidebar'))}
104
- className="flex items-center justify-center w-[54px] h-[54px] rounded-full bg-[#0D0E18]/60 backdrop-blur-3xl border border-white/10 text-slate-400 active:scale-90 hover:text-white shadow-[0_8px_32px_rgba(0,0,0,0.5)]"
105
  >
106
- <Menu className="w-[20px] h-[20px]" />
107
  </button>
 
108
  </div>
109
  </motion.nav>
110
  )}
 
49
  <AnimatePresence>
50
  {!isSidebarOpen && (
51
  <motion.nav
52
+ initial={{ y: '100%' }}
53
+ animate={{ y: 0 }}
54
+ exit={{ y: '100%' }}
55
+ transition={{ type: 'spring', damping: 20, stiffness: 200 }}
56
+ className="fixed bottom-0 left-0 right-0 z-40 bg-[#0D0E18]/80 backdrop-blur-3xl backdrop-saturate-[1.8] border-t border-white/5 pb-[env(safe-area-inset-bottom,0px)]"
57
  >
58
+ <div className="flex items-center justify-around h-[50px] px-2">
59
+ {/* Главная */}
60
+ <Link
61
+ href="/settings/brain"
62
+ className={cn(
63
+ "flex flex-col items-center justify-center p-2 rounded-xl transition-all active:scale-90",
64
+ isActive('/settings/brain')
65
+ ? "text-indigo-400 bg-indigo-500/5 shadow-[inset_0_0_10px_rgba(99,102,241,0.05)]"
66
+ : "text-slate-500 hover:text-slate-300"
67
+ )}
68
+ >
69
+ <LayoutDashboard className="w-[22px] h-[22px]" />
70
+ </Link>
 
 
71
 
72
+ {/* Чаты */}
73
+ <button
74
+ onClick={handleChatsClick}
75
+ className={cn(
76
+ "flex flex-col items-center justify-center p-2 rounded-xl transition-all active:scale-90",
77
+ isActive('/chats')
78
+ ? "text-indigo-400 bg-indigo-500/5 shadow-[inset_0_0_10px_rgba(99,102,241,0.05)]"
79
+ : "text-slate-500 hover:text-slate-300"
80
+ )}
81
+ >
82
+ <MessageSquare className="w-[22px] h-[22px]" />
83
+ </button>
84
 
85
+ {/* Записи */}
86
+ <Link
87
+ href="/appointments"
88
+ className={cn(
89
+ "flex flex-col items-center justify-center p-2 rounded-xl transition-all active:scale-90",
90
+ isActive('/appointments')
91
+ ? "text-indigo-400 bg-indigo-500/5 shadow-[inset_0_0_10px_rgba(99,102,241,0.05)]"
92
+ : "text-slate-500 hover:text-slate-300"
93
+ )}
94
+ >
95
+ <Calendar className="w-[22px] h-[22px]" />
96
+ </Link>
 
97
 
98
+ {/* Menu */}
99
  <button
100
  onClick={() => document.dispatchEvent(new CustomEvent('toggle-mobile-sidebar'))}
101
+ className="flex flex-col items-center justify-center p-2 rounded-xl text-slate-500 active:scale-90 hover:text-slate-300 transition-all"
102
  >
103
+ <Menu className="w-[22px] h-[22px]" />
104
  </button>
105
+
106
  </div>
107
  </motion.nav>
108
  )}
frontend/components/MobileNav.tsx CHANGED
@@ -57,17 +57,26 @@ export function MobileHeader({ onOpen }: { onOpen?: () => void }) {
57
  const isUnlimited = limitDialogs === null || limitDialogs === undefined
58
 
59
  return (
60
- <div className="flex flex-col fixed top-0 left-0 right-0 z-[60] bg-[#0D0E18]/40 backdrop-blur-3xl backdrop-saturate-[1.8] border-b border-white-[0.03] pt-[env(safe-area-inset-top,0px)]">
61
- <div className="flex items-center justify-between px-4 h-[52px] text-white w-full">
62
  {/* Left: Logo + Brand Name */}
63
  <Link href="/settings/brain" className="flex items-center gap-2.5 active:scale-95 transition-transform">
64
  <div className="w-7 h-7 relative">
65
  <img src="/logo-v2.png" alt="Logo" className="w-full h-full object-contain relative z-10" />
66
  </div>
 
 
 
67
  </Link>
68
 
69
  {/* Right: Hub */}
70
  <div className="flex items-center gap-2">
 
 
 
 
 
 
71
  {/* Profile avatar and menu */}
72
  <UserMenu user={user} logout={logout} companyName={companyName} getInitials={getInitials} getAvatarColor={getAvatarColor} />
73
  </div>
 
57
  const isUnlimited = limitDialogs === null || limitDialogs === undefined
58
 
59
  return (
60
+ <div className="flex flex-col fixed top-0 left-0 right-0 z-[60] bg-[#0D0E18]/80 backdrop-blur-3xl backdrop-saturate-[1.8] border-b border-white/5 pt-[env(safe-area-inset-top,0px)]">
61
+ <div className="flex items-center justify-between px-3 h-[52px] text-white w-full">
62
  {/* Left: Logo + Brand Name */}
63
  <Link href="/settings/brain" className="flex items-center gap-2.5 active:scale-95 transition-transform">
64
  <div className="w-7 h-7 relative">
65
  <img src="/logo-v2.png" alt="Logo" className="w-full h-full object-contain relative z-10" />
66
  </div>
67
+ <span className="font-bold text-base tracking-[0.18em] uppercase text-white">
68
+ MICROFUNNEL
69
+ </span>
70
  </Link>
71
 
72
  {/* Right: Hub */}
73
  <div className="flex items-center gap-2">
74
+ {usageStats && (
75
+ <div className="hidden sm:block text-[9px] font-bold text-indigo-400 bg-indigo-500/10 px-2 py-0.5 rounded-full border border-indigo-500/20 uppercase tracking-tighter">
76
+ {usedDialogs}/{isUnlimited ? '∞' : limitDialogs}
77
+ </div>
78
+ )}
79
+
80
  {/* Profile avatar and menu */}
81
  <UserMenu user={user} logout={logout} companyName={companyName} getInitials={getInitials} getAvatarColor={getAvatarColor} />
82
  </div>