Spaces:
Sleeping
Sleeping
axeronis commited on
Commit ·
0a36ecc
1
Parent(s): 2dd979f
feat(ui): implemented floating island navigation and transparent minimalist headers
Browse files
frontend/app/globals.css
CHANGED
|
@@ -165,7 +165,8 @@ html {
|
|
| 165 |
|
| 166 |
/* Mobile Layout Constants */
|
| 167 |
--header-height-mobile: calc(52px + env(safe-area-inset-top, 0px));
|
| 168 |
-
|
|
|
|
| 169 |
|
| 170 |
@media (min-width: 768px) {
|
| 171 |
--header-height-mobile: 0px;
|
|
@@ -173,6 +174,19 @@ html {
|
|
| 173 |
}
|
| 174 |
}
|
| 175 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 176 |
body {
|
| 177 |
background-color: var(--background);
|
| 178 |
background-image:
|
|
|
|
| 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;
|
|
|
|
| 174 |
}
|
| 175 |
}
|
| 176 |
|
| 177 |
+
.backdrop-blur-3xl {
|
| 178 |
+
backdrop-filter: blur(64px);
|
| 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:
|
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: '
|
| 109 |
}}
|
| 110 |
>
|
| 111 |
{children}
|
|
|
|
| 105 |
)}
|
| 106 |
style={{
|
| 107 |
paddingTop: pathname?.startsWith('/chats') ? '0px' : 'var(--header-height-mobile)',
|
| 108 |
+
paddingBottom: '0px'
|
| 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
|
| 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-
|
| 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-[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">
|
frontend/components/MobileBottomNav.tsx
CHANGED
|
@@ -49,60 +49,62 @@ export function MobileBottomNav() {
|
|
| 49 |
<AnimatePresence>
|
| 50 |
{!isSidebarOpen && (
|
| 51 |
<motion.nav
|
| 52 |
-
initial={{ y: '100%' }}
|
| 53 |
-
animate={{ y: 0 }}
|
| 54 |
-
exit={{ y: '100%' }}
|
| 55 |
-
transition={{ type: 'spring', damping:
|
| 56 |
-
className="fixed bottom-
|
| 57 |
>
|
| 58 |
-
<div className="flex items-center
|
| 59 |
-
{/*
|
| 60 |
-
<
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
"
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
|
|
|
|
|
|
| 71 |
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
|
|
|
| 97 |
|
| 98 |
-
{/* Menu */}
|
| 99 |
<button
|
| 100 |
onClick={() => document.dispatchEvent(new CustomEvent('toggle-mobile-sidebar'))}
|
| 101 |
-
className="flex
|
| 102 |
>
|
| 103 |
-
<Menu className="w-[
|
| 104 |
</button>
|
| 105 |
-
|
| 106 |
</div>
|
| 107 |
</motion.nav>
|
| 108 |
)}
|
|
|
|
| 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 |
)}
|
frontend/components/MobileNav.tsx
CHANGED
|
@@ -57,26 +57,17 @@ 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]/
|
| 61 |
-
<div className="flex items-center justify-between px-
|
| 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>
|
|
|
|
| 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>
|