feat: add version history drawer with release notes
Introduce a footer-triggered Version History drawer with categorized release notes, hardcoded release data, and semver tracking at v0.3.0. Also ships blog blockquote/table styling, site-wide typography, home page image updates, header refinements, and related bug fixes. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -3,16 +3,24 @@
|
||||
import { usePathname } from 'next/navigation'
|
||||
import FooterSection from '@/components/footer'
|
||||
import { HeroHeader } from '@/components/header'
|
||||
import type { ChangelogRelease } from '@/lib/changelog-types'
|
||||
|
||||
export function ConditionalLayout({ children }: { children: React.ReactNode }) {
|
||||
export function ConditionalLayout({
|
||||
children,
|
||||
changelogReleases,
|
||||
}: {
|
||||
children: React.ReactNode
|
||||
changelogReleases: ChangelogRelease[]
|
||||
}) {
|
||||
const pathname = usePathname()
|
||||
const isLoginPage = pathname === '/login'
|
||||
const showChrome = !isLoginPage
|
||||
|
||||
return (
|
||||
<>
|
||||
{!isLoginPage && <HeroHeader />}
|
||||
{showChrome && <HeroHeader />}
|
||||
{children}
|
||||
{!isLoginPage && <FooterSection />}
|
||||
{showChrome && <FooterSection releases={changelogReleases} />}
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user