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:
@ -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>
|
||||
)
|
||||
|
@ -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>
|
||||
|
Reference in New Issue
Block a user