Spaces:
Running

axeronis commited on
Commit
d36ecd1
·
1 Parent(s): 3539f8f

fix(ui): hide mobile nav on desktop and implement crystal infinity background

Browse files
frontend/components/MobileBottomNav.tsx CHANGED
@@ -53,7 +53,7 @@ export function MobileBottomNav() {
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-[#050510]/70 backdrop-blur-3xl backdrop-saturate-[1.8] pb-[env(safe-area-inset-bottom,0px)]"
57
  >
58
  <div className="flex items-center justify-around h-[50px] px-2 relative">
59
  {/* Aurora Atmosphere inside the bar */}
 
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-white/[0.01] backdrop-blur-3xl backdrop-saturate-[1.8] pb-[env(safe-area-inset-bottom,0px)] md:hidden"
57
  >
58
  <div className="flex items-center justify-around h-[50px] px-2 relative">
59
  {/* Aurora Atmosphere inside the bar */}
frontend/components/MobileNav.tsx CHANGED
@@ -57,7 +57,7 @@ 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-[#050510]/70 backdrop-blur-3xl backdrop-saturate-[1.8] pt-[env(safe-area-inset-top,0px)]">
61
  <div className="flex items-center justify-between px-3 h-[52px] text-white w-full relative">
62
  <div className="absolute inset-0 pointer-events-none bg-gradient-to-b from-indigo-500/5 to-transparent overflow-hidden" />
63
  {/* Left: Logo + Brand Name */}
 
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-white/[0.01] backdrop-blur-3xl backdrop-saturate-[1.8] pt-[env(safe-area-inset-top,0px)] md:hidden">
61
  <div className="flex items-center justify-between px-3 h-[52px] text-white w-full relative">
62
  <div className="absolute inset-0 pointer-events-none bg-gradient-to-b from-indigo-500/5 to-transparent overflow-hidden" />
63
  {/* Left: Logo + Brand Name */}
frontend/components/layout/LayoutClient.tsx CHANGED
@@ -75,7 +75,9 @@ export function LayoutClient({ children }: { children: React.ReactNode }) {
75
  <SecondaryNav />
76
 
77
  {/* Mobile Header - FIXED at top - ONLY for Mobile (< md) */}
78
- <MobileHeader />
 
 
79
 
80
  {/* Main Content - with padding for fixed header and bottom nav on Mobile */}
81
  <main
@@ -101,7 +103,9 @@ export function LayoutClient({ children }: { children: React.ReactNode }) {
101
  </main>
102
 
103
  {/* Mobile Bottom Navigation - FIXED at bottom - ONLY for Mobile (< md) */}
104
- <MobileBottomNav />
 
 
105
  </div>
106
  </div>
107
  </ProtectedLayout>
 
75
  <SecondaryNav />
76
 
77
  {/* Mobile Header - FIXED at top - ONLY for Mobile (< md) */}
78
+ <div className="md:hidden contents">
79
+ <MobileHeader />
80
+ </div>
81
 
82
  {/* Main Content - with padding for fixed header and bottom nav on Mobile */}
83
  <main
 
103
  </main>
104
 
105
  {/* Mobile Bottom Navigation - FIXED at bottom - ONLY for Mobile (< md) */}
106
+ <div className="md:hidden contents">
107
+ <MobileBottomNav />
108
+ </div>
109
  </div>
110
  </div>
111
  </ProtectedLayout>