mirror of
https://github.com/theoludwig/theoludwig.git
synced 2025-05-29 22:37:44 +02:00
feat: init Curriculum Vitae
This commit is contained in:
21
apps/website/app/[locale]/curriculum-vitae/layout.tsx
Normal file
21
apps/website/app/[locale]/curriculum-vitae/layout.tsx
Normal file
@ -0,0 +1,21 @@
|
||||
import "@repo/config-tailwind/styles.css"
|
||||
import type { LocaleProps } from "@repo/i18n/config"
|
||||
import { ThemeProvider } from "@repo/ui/Layout/Header/SwitchTheme"
|
||||
import { unstable_setRequestLocale } from "next-intl/server"
|
||||
|
||||
interface CurriculumVitaeLayoutProps
|
||||
extends React.PropsWithChildren,
|
||||
LocaleProps {}
|
||||
|
||||
const CurriculumVitaeLayout: React.FC<CurriculumVitaeLayoutProps> = async (
|
||||
props,
|
||||
) => {
|
||||
const { children, params } = props
|
||||
|
||||
// Enable static rendering
|
||||
unstable_setRequestLocale(params.locale)
|
||||
|
||||
return <ThemeProvider forcedTheme="light">{children}</ThemeProvider>
|
||||
}
|
||||
|
||||
export default CurriculumVitaeLayout
|
19
apps/website/app/[locale]/curriculum-vitae/page.tsx
Normal file
19
apps/website/app/[locale]/curriculum-vitae/page.tsx
Normal file
@ -0,0 +1,19 @@
|
||||
import type { LocaleProps } from "@repo/i18n/config"
|
||||
import { unstable_setRequestLocale } from "next-intl/server"
|
||||
|
||||
interface CurriculumVitaeProps extends LocaleProps {}
|
||||
|
||||
const CurriculumVitaePage: React.FC<CurriculumVitaeProps> = (props) => {
|
||||
const { params } = props
|
||||
|
||||
// Enable static rendering
|
||||
unstable_setRequestLocale(params.locale)
|
||||
|
||||
return (
|
||||
<main>
|
||||
<h1>CurriculumVitae</h1>
|
||||
</main>
|
||||
)
|
||||
}
|
||||
|
||||
export default CurriculumVitaePage
|
Reference in New Issue
Block a user