Spaces:
Running
Running
axeronis commited on
Commit ·
2123e82
1
Parent(s): 82b1391
style: Finalized seamless glass UI with flowing dark gradients and no internal borders
Browse filesFiles changed (6)
32 unmodified lines3334353637383932 unmodified linesonTrainAI,}: ChatHeaderProps) {return (<div className="bg-gradient-to-b from-black/60 to-transparent backdrop-blur-xl border-b border-white/5 px-4 md:px-6 py-3 flex items-center justify-between flex-shrink-0 fixed md:relative top-16 md:top-0 left-0 right-0 z-20"><div className="flex items-center gap-4">{/* Desktop Toggle */}<button32 unmodified lines3334353637383932 unmodified linesonTrainAI,}: ChatHeaderProps) {return (<div className="bg-gradient-to-b from-black/60 to-transparent backdrop-blur-xl px-4 md:px-6 py-3 flex items-center justify-between flex-shrink-0 fixed md:relative top-16 md:top-0 left-0 right-0 z-20"><div className="flex items-center gap-4">{/* Desktop Toggle */}<button
131 unmodified lines13213313413513613713854 unmodified lines193194195196197198199131 unmodified lines}return (<div className="p-3 md:p-6 bg-[#0D0E18] flex-shrink-0 md:relative fixed bottom-12 md:bottom-auto left-0 right-0 z-30"><div className="max-w-4xl mx-auto relative">{/* File Preview */}{selectedFile && (54 unmodified lines<formonSubmit={handleSubmit}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"><inputtype="file"131 unmodified lines13213313413513613713854 unmodified lines193194195196197198199131 unmodified lines}return (<div className="p-3 md:p-6 bg-gradient-to-t from-black/40 to-transparent backdrop-blur-xl flex-shrink-0 md:relative fixed bottom-14 md:bottom-auto left-0 right-0 z-30"><div className="max-w-4xl mx-auto relative">{/* File Preview */}{selectedFile && (54 unmodified lines<formonSubmit={handleSubmit}className="flex items-end gap-2 bg-white/5 p-2 rounded-2xl border border-white/10 focus-within:ring-2 focus-within:ring-indigo-500/30 transition-all"><inputtype="file"
169 unmodified lines170171172173174175176169 unmodified lines<div className="flex flex-col h-full bg-[#050510] border-r border-white/5">{/* Header & Search - Fixed at top via flex parent */}<div className="p-3 border-b border-white/5 space-y-2 flex-shrink-0 bg-gradient-to-b from-black/60 to-transparent backdrop-blur-xl z-20"><h2 className="text-lg font-bold text-white tracking-tight">{t('chats.title')}</h2>{/* Search */}169 unmodified lines170171172173174175176169 unmodified lines<div className="flex flex-col h-full bg-[#050510] border-r border-white/5">{/* Header & Search - Fixed at top via flex parent */}<div className="p-3 space-y-2 flex-shrink-0 bg-gradient-to-b from-black/60 to-transparent backdrop-blur-xl z-20"><h2 className="text-lg font-bold text-white tracking-tight">{t('chats.title')}</h2>{/* Search */}
22 unmodified lines2324252627282922 unmodified lines}return (<nav className="fixed bottom-0 left-0 right-0 z-40 bg-gradient-to-t from-black/80 to-transparent backdrop-blur-xl border-t border-white/5 safe-area-bottom"><div className="flex items-center justify-around h-14 px-4">{/* Главная */}<Link22 unmodified lines2324252627282922 unmodified lines}return (<nav className="fixed bottom-0 left-0 right-0 z-40 bg-gradient-to-t from-black/80 via-black/40 to-transparent backdrop-blur-xl safe-area-bottom"><div className="flex items-center justify-around h-14 px-4">{/* Главная */}<Link
50 unmodified lines5152535455565710 unmodified lines686970717273747576777879808173 unmodified lines1551561571581591601612 unmodified lines16416516616716816917050 unmodified linesconst isUnlimited = limitDialogs === null || limitDialogs === undefinedreturn (<div className="flex items-center justify-between px-4 py-3 bg-gradient-to-b from-black/60 to-transparent backdrop-blur-xl border-b border-white/5 text-white sticky top-0 z-[60]">{/* Left: Logo + Brand Name */}<Link href="/dashboard" className="flex items-center gap-2"><img src="/logo-v2.png" alt="Logo" className="w-8 h-8 object-contain" />10 unmodified lines{/* Profile avatar with its own click handler or just UserMenu if modular */}<UserMenu user={user} onLogout={logout} getInitials={getInitials} getAvatarColor={getAvatarColor} />{/* Sidebar Trigger */}<buttononClick={() => document.dispatchEvent(new CustomEvent('toggle-mobile-sidebar'))}className="p-2 -mr-2 text-slate-400 hover:text-white"><Menu className="w-6 h-6" /></button></div></div>)73 unmodified linesanimate={{ opacity: 1 }}exit={{ opacity: 0 }}onClick={() => setIsOpen(false)}className="fixed inset-0 bg-black/40 backdrop-blur-sm z-40"/>{/* Sidebar Drawer */}2 unmodified linesanimate={{ x: 0 }}exit={{ x: '-100%' }}transition={{ type: 'spring', damping: 25, stiffness: 200 }}className="fixed left-0 top-16 bottom-0 w-72 z-50 shadow-2xl overflow-hidden">{children}</motion.div>50 unmodified lines5152535455565710 unmodified lines68697071727373 unmodified lines1471481491501511521532 unmodified lines15615715815916016116250 unmodified linesconst isUnlimited = limitDialogs === null || limitDialogs === undefinedreturn (<div className="flex items-center justify-between px-4 py-3 bg-gradient-to-b from-black/80 to-black/60 backdrop-blur-xl text-white sticky top-0 z-[60]">{/* Left: Logo + Brand Name */}<Link href="/dashboard" className="flex items-center gap-2"><img src="/logo-v2.png" alt="Logo" className="w-8 h-8 object-contain" />10 unmodified lines{/* Profile avatar with its own click handler or just UserMenu if modular */}<UserMenu user={user} onLogout={logout} getInitials={getInitials} getAvatarColor={getAvatarColor} /></div></div>)73 unmodified linesanimate={{ opacity: 1 }}exit={{ opacity: 0 }}onClick={() => setIsOpen(false)}className="fixed inset-0 bg-black/30 backdrop-blur-sm z-40"/>{/* Sidebar Drawer */}2 unmodified linesanimate={{ x: 0 }}exit={{ x: '-100%' }}transition={{ type: 'spring', damping: 25, stiffness: 200 }}className="fixed left-0 top-16 bottom-14 w-72 bg-gradient-to-r from-black/80 to-black/60 backdrop-blur-2xl z-50 shadow-2xl overflow-hidden border-r border-white/5">{children}</motion.div>
146 unmodified lines147148149150151152153146 unmodified linesinitial="hidden"animate="visible"variants={sidebarVariants}className="w-72 md:bg-md-surface-container-low bg-black/60 backdrop-blur-2xl flex flex-col relative shrink-0 h-screen sticky top-0 pb-14 md:pb-0 border-r border-white/5">{/* Logo Section - Hidden on Mobile (already in main header) */}< div className="hidden md:block p-6 relative z-50" >146 unmodified lines147148149150151152153146 unmodified linesinitial="hidden"animate="visible"variants={sidebarVariants}className="w-72 md:bg-md-surface-container-low bg-transparent flex flex-col relative shrink-0 h-screen sticky top-0 pb-14 md:pb-0">{/* Logo Section - Hidden on Mobile (already in main header) */}< div className="hidden md:block p-6 relative z-50" >
frontend/components/ChatWindow/ChatHeader.tsx+1-1
frontend/components/ChatWindow/MessageInput.tsx+2-2
frontend/components/LeadsList.tsx+1-1
frontend/components/MobileBottomNav.tsx+1-1
frontend/components/MobileNav.tsx+3-11
frontend/components/Sidebar.tsx+1-1