test(ci): add exporter heading levels and a11y typography smoke; update MAIN_PLAN
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
import BuilderClientPage from '@/components/BuilderClientPage'
|
||||
|
||||
export default function BuilderPage() {
|
||||
return <BuilderClientPage />
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
import type { ReactNode } from 'react'
|
||||
import { getMessages } from '@/lib/i18n/getMessages'
|
||||
import type { AppLocale } from '@/lib/i18n/locales'
|
||||
import I18nProvider from '@/components/I18nProvider'
|
||||
import '../globals.css'
|
||||
|
||||
export const dynamic = 'force-static'
|
||||
|
||||
export default async function LocaleLayout({
|
||||
children,
|
||||
params,
|
||||
}: {
|
||||
children: ReactNode
|
||||
params: Promise<{ locale: AppLocale }>
|
||||
}) {
|
||||
const { locale } = await params
|
||||
const messages = await getMessages(locale)
|
||||
return (
|
||||
<html lang={locale}>
|
||||
<body>
|
||||
<I18nProvider locale={locale} messages={messages}>{children}</I18nProvider>
|
||||
</body>
|
||||
</html>
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
import Link from 'next/link'
|
||||
import { defaultLocale } from '@/lib/i18n/locales'
|
||||
|
||||
export default function IndexPage({ params }: { params: { locale: string } }) {
|
||||
const loc = params.locale || defaultLocale
|
||||
return (
|
||||
<main className="p-6">
|
||||
<h1 className="text-2xl font-semibold mb-4">Landing Builder</h1>
|
||||
<p className="mb-4">Start building your landing page.</p>
|
||||
<Link className="text-sky-600 underline" href={`/${loc}/builder`}>
|
||||
Go to Builder
|
||||
</Link>
|
||||
</main>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user