Spaces:
Running
Running
axeronis commited on
Commit ·
b2e8e03
1
Parent(s): 53b6c31
fix(ui): eliminate black voids in system safe areas for true infinity mobile layout
Browse files
frontend/app/globals.css
CHANGED
|
@@ -173,8 +173,14 @@ html {
|
|
| 173 |
}
|
| 174 |
}
|
| 175 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 176 |
body {
|
| 177 |
-
background-color:
|
| 178 |
background-image:
|
| 179 |
radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.15), transparent),
|
| 180 |
radial-gradient(ellipse 60% 40% at 100% 100%, rgba(139, 92, 246, 0.1), transparent),
|
|
@@ -182,9 +188,12 @@ body {
|
|
| 182 |
color: var(--foreground);
|
| 183 |
font-family: 'Inter', system-ui, -apple-system, sans-serif;
|
| 184 |
overflow-x: hidden;
|
| 185 |
-
|
|
|
|
| 186 |
-webkit-font-smoothing: antialiased;
|
| 187 |
-moz-osx-font-smoothing: grayscale;
|
|
|
|
|
|
|
| 188 |
}
|
| 189 |
|
| 190 |
/* === TYPOGRAPHY === */
|
|
|
|
| 173 |
}
|
| 174 |
}
|
| 175 |
|
| 176 |
+
html {
|
| 177 |
+
scroll-behavior: smooth;
|
| 178 |
+
background-color: #050510;
|
| 179 |
+
height: 100%;
|
| 180 |
+
}
|
| 181 |
+
|
| 182 |
body {
|
| 183 |
+
background-color: #050510;
|
| 184 |
background-image:
|
| 185 |
radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.15), transparent),
|
| 186 |
radial-gradient(ellipse 60% 40% at 100% 100%, rgba(139, 92, 246, 0.1), transparent),
|
|
|
|
| 188 |
color: var(--foreground);
|
| 189 |
font-family: 'Inter', system-ui, -apple-system, sans-serif;
|
| 190 |
overflow-x: hidden;
|
| 191 |
+
height: 100%;
|
| 192 |
+
margin: 0;
|
| 193 |
-webkit-font-smoothing: antialiased;
|
| 194 |
-moz-osx-font-smoothing: grayscale;
|
| 195 |
+
/* Prevent elastic bounce issues at top/bottom in Safari */
|
| 196 |
+
overscroll-behavior-y: none;
|
| 197 |
}
|
| 198 |
|
| 199 |
/* === TYPOGRAPHY === */
|
frontend/app/layout.tsx
CHANGED
|
@@ -9,6 +9,11 @@ const inter = Inter({ subsets: ['latin', 'cyrillic'] })
|
|
| 9 |
export const metadata: Metadata = {
|
| 10 |
title: 'MicroFunnel Platform',
|
| 11 |
description: 'AI-Powered Business Automation',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
}
|
| 13 |
|
| 14 |
export const viewport: Viewport = {
|
|
@@ -17,7 +22,9 @@ export const viewport: Viewport = {
|
|
| 17 |
maximumScale: 1,
|
| 18 |
userScalable: false,
|
| 19 |
viewportFit: 'cover',
|
| 20 |
-
themeColor:
|
|
|
|
|
|
|
| 21 |
}
|
| 22 |
|
| 23 |
export default function RootLayout({
|
|
|
|
| 9 |
export const metadata: Metadata = {
|
| 10 |
title: 'MicroFunnel Platform',
|
| 11 |
description: 'AI-Powered Business Automation',
|
| 12 |
+
appleWebApp: {
|
| 13 |
+
capable: true,
|
| 14 |
+
statusBarStyle: 'black-translucent',
|
| 15 |
+
title: 'MicroFunnel',
|
| 16 |
+
},
|
| 17 |
}
|
| 18 |
|
| 19 |
export const viewport: Viewport = {
|
|
|
|
| 22 |
maximumScale: 1,
|
| 23 |
userScalable: false,
|
| 24 |
viewportFit: 'cover',
|
| 25 |
+
themeColor: [
|
| 26 |
+
{ media: '(prefers-color-scheme: dark)', color: '#050510' },
|
| 27 |
+
],
|
| 28 |
}
|
| 29 |
|
| 30 |
export default function RootLayout({
|
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-[#
|
| 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-[#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 */}
|
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-[#
|
| 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-[#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 */}
|
frontend/components/layout/LayoutClient.tsx
CHANGED
|
@@ -55,7 +55,7 @@ export function LayoutClient({ children }: { children: React.ReactNode }) {
|
|
| 55 |
) : (
|
| 56 |
// App layout (with sidebar)
|
| 57 |
<ProtectedLayout>
|
| 58 |
-
<div className="flex h-[100dvh] relative text-white
|
| 59 |
{/* Desktop Sidebar */}
|
| 60 |
<div className="hidden lg:flex h-full relative z-20 w-72 shrink-0">
|
| 61 |
<Sidebar />
|
|
@@ -67,7 +67,7 @@ export function LayoutClient({ children }: { children: React.ReactNode }) {
|
|
| 67 |
</MobileSidebarWrapper>
|
| 68 |
|
| 69 |
{/* Main Content Area Container */}
|
| 70 |
-
<div className="flex-1 flex flex-col h-full min-w-0 relative">
|
| 71 |
{/* Desktop Header */}
|
| 72 |
<Header />
|
| 73 |
|
|
|
|
| 55 |
) : (
|
| 56 |
// App layout (with sidebar)
|
| 57 |
<ProtectedLayout>
|
| 58 |
+
<div className="flex h-full min-h-[100dvh] relative text-white">
|
| 59 |
{/* Desktop Sidebar */}
|
| 60 |
<div className="hidden lg:flex h-full relative z-20 w-72 shrink-0">
|
| 61 |
<Sidebar />
|
|
|
|
| 67 |
</MobileSidebarWrapper>
|
| 68 |
|
| 69 |
{/* Main Content Area Container */}
|
| 70 |
+
<div className="flex-1 flex flex-col min-h-full min-w-0 relative">
|
| 71 |
{/* Desktop Header */}
|
| 72 |
<Header />
|
| 73 |
|