1
1
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:
2024-07-31 19:23:14 +02:00
parent b5c50728de
commit b4611e4a7f
16 changed files with 77 additions and 24 deletions

View File

@ -13,8 +13,8 @@ export const AboutDescription: React.FC<AboutDescriptionProps> = () => {
{t.rich("home.about.description")}
</Typography>
<Button href="/curriculum-vitae/index.html" variant="outline">
Curriculum vitæ ({t("locales.fr-FR")})
<Button href="/curriculum-vitae" variant="outline">
Curriculum vitæ
</Button>
</div>
)

View File

@ -11,16 +11,19 @@ export const THEMES = ["light", "dark"] as const
export type Theme = (typeof THEMES)[number]
export const THEME_DEFAULT = "dark" as Theme
export interface ThemeProviderProps extends React.PropsWithChildren {}
export interface ThemeProviderProps extends React.PropsWithChildren {
forcedTheme?: Theme
}
export const ThemeProvider: React.FC<ThemeProviderProps> = (props) => {
const { children } = props
const { children, forcedTheme } = props
return (
<NextThemeProvider
attribute="class"
defaultTheme={THEME_DEFAULT}
enableSystem={false}
forcedTheme={forcedTheme}
>
{children}
</NextThemeProvider>