feat: redesign landing page with brand system and section blocks
Build & Push Docker Image / build (push) Has been cancelled
Build & Push Docker Image / build (push) Has been cancelled
Refresh the homepage around new hero/services/roadmap sections, shared design tokens, and updated brand assets. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1,27 +1,25 @@
|
||||
'use client'
|
||||
|
||||
import { usePathname } from 'next/navigation'
|
||||
import FooterSection from '@/components/footer'
|
||||
import { HeroHeader } from '@/components/header'
|
||||
import type { ChangelogRelease } from '@/lib/changelog-types'
|
||||
import { PageAtmosphere, PageGrid } from '@/components/page-atmosphere'
|
||||
|
||||
export function ConditionalLayout({
|
||||
children,
|
||||
changelogReleases,
|
||||
}: {
|
||||
children: React.ReactNode
|
||||
changelogReleases: ChangelogRelease[]
|
||||
}) {
|
||||
const pathname = usePathname()
|
||||
const isLoginPage = pathname === '/login'
|
||||
const showChrome = !isLoginPage
|
||||
|
||||
return (
|
||||
<>
|
||||
{showChrome && <HeroHeader />}
|
||||
{children}
|
||||
{showChrome && <FooterSection releases={changelogReleases} />}
|
||||
<PageAtmosphere />
|
||||
<div className="page-content relative">
|
||||
<PageGrid />
|
||||
<div className="relative z-[1]">
|
||||
<HeroHeader />
|
||||
{children}
|
||||
<FooterSection />
|
||||
</div>
|
||||
</div>
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user