refactor: Remove hideNavbar prop from Layout component and adjust download page layout

This commit is contained in:
Mr. M 2025-06-20 23:12:42 +02:00
parent d47490a22e
commit d057f66556
No known key found for this signature in database
GPG key ID: 6292C4C8F8652B18
2 changed files with 5 additions and 6 deletions

View file

@ -5,10 +5,9 @@ interface Props {
ogImage?: string
isHome?: boolean
redirect?: string
hideNavbar?: boolean
}
const { title, description, ogImage, isHome, redirect, hideNavbar } = Astro.props
const { title, description, ogImage, isHome, redirect } = Astro.props
const defaultDescription =
'Zen Browser is built for speed, security, and true privacy. Download now to enjoy a beautifully-designed, distraction-free web experience packed with features.'
import '@fontsource/bricolage-grotesque/400.css'
@ -100,7 +99,7 @@ const locale = getLocale(Astro)
<body
class="min-h-[max(100dvh,_64rem)] overflow-x-hidden text-balance bg-paper font-['bricolage-grotesque'] text-dark"
>
{hideNavbar ? null : <NavBar />}
<NavBar />
<slot />
<Footer />
</body>

View file

@ -35,9 +35,9 @@ const platformDescriptions = download.platformDescriptions
<DownloadScript />
<Layout title={layout.download.title} description={layout.download.description} hideNavbar>
<main class="flex min-h-screen flex-col justify-center px-6 data-[os='windows']:bg-zen-blue">
<div class="container relative mx-auto py-12">
<Layout title={layout.download.title} description={layout.download.description}>
<main class="mt-48 flex min-h-screen flex-col px-6 data-[os='windows']:bg-zen-blue">
<div class="container relative mx-auto pb-12">
<div class="mb-6 flex flex-col gap-4">
<div class="download-browser-logo mx-auto">
<Image