chore: update @ciphera-net/ui dependency to version 0.0.42 in package.json and package-lock.json; enhance OfflineBanner styling and layout in layout-content.tsx

This commit is contained in:
Usman Baig
2026-02-04 11:41:38 +01:00
parent 223c00a382
commit 19f75b2f45
4 changed files with 13 additions and 9 deletions

View File

@@ -40,8 +40,12 @@ export default function LayoutContent({ children }: { children: React.ReactNode
router.push('/onboarding')
}
const showOfflineBar = Boolean(auth.user && !isOnline);
const barHeightRem = '2.5rem';
return (
<>
{auth.user && <OfflineBanner />}
<Header
auth={auth}
LinkComponent={Link}
@@ -55,9 +59,9 @@ export default function LayoutContent({ children }: { children: React.ReactNode
showFaq={false}
showSecurity={false}
showPricing={true}
bottomContent={auth.user ? <OfflineBanner /> : undefined}
topOffset={showOfflineBar ? barHeightRem : undefined}
/>
<main className={`flex-1 pb-8 ${auth.user && !isOnline ? 'pt-32' : 'pt-24'}`}>
<main className={`flex-1 pb-8 ${showOfflineBar ? 'pt-[8.5rem]' : 'pt-24'}`}>
{children}
</main>
<Footer