refactor(layout): remove unused changeLayout prop from Banner component

The changeLayout prop was not utilized in the Banner component, so it has been removed to simplify the code and improve maintainability.

style(home): add version tag to the hero section title

Added a small version tag "v2.0.0-beta" to the hero section title for better visibility and user awareness of the current version.
This commit is contained in:
Daniel Luiz Alves
2025-04-25 01:22:53 -03:00
parent e80de3576c
commit 6898dd8d1b
2 changed files with 2 additions and 2 deletions

View File

@@ -83,7 +83,7 @@ export default function HomePage() {
function Hero() {
return (
<section className="relative z-[2] flex flex-col border-x border-t px-6 pt-12 pb-10 md:px-12 md:pt-16 max-md:text-center">
<h1 className="mb-8 text-5xl font-bold">🌴 Palmr.</h1>
<h1 className="mb-8 text-5xl font-bold">🌴 Palmr. <span className="text-[10px] font-light text-muted-foreground/50 font-mono">v2.0.0-beta</span></h1>
<h1 className="hidden text-4xl font-medium max-w-[600px] md:block mb-4">
Modern & efficient file sharing
</h1>

View File

@@ -18,7 +18,7 @@ export default function Layout({ children }: { children: ReactNode }) {
return (
<html lang="en" className={inter.className} suppressHydrationWarning>
<body className="flex flex-col min-h-screen">
<Banner variant="rainbow" id="banner-v-2" changeLayout={false}>
<Banner variant="rainbow" id="banner-v-2">
<Link href="/docs/2.0.0-beta">Palmr. v2.0.0-beta has released!</Link>
</Banner>
<RootProvider