diff --git a/.eslintrc.json b/.eslintrc.json index 7972bd1..0411c2c 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,6 +1,6 @@ { "extends": ["conventions", "next/core-web-vitals", "prettier"], - "plugins": ["prettier", "unicorn"], + "plugins": ["prettier"], "parserOptions": { "project": "./tsconfig.json" }, diff --git a/.gitpod.yml b/.gitpod.yml index 9229529..3bb54ce 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -2,7 +2,7 @@ image: 'gitpod/workspace-full' tasks: - before: 'cp .env.example .env' - init: 'npm install' + init: 'npm clean-install' command: 'npm run dev' ports: diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index de82f34..1655527 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -49,7 +49,7 @@ cd theoludwig cp .env.example .env # Install -npm install +npm clean-install ``` ### Local Development environment diff --git a/app/layout.tsx b/app/layout.tsx index 1c3463d..0c048dd 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -1,13 +1,14 @@ import type { Metadata } from 'next' +import classNames from 'clsx' import '@fontsource/montserrat/400.css' import '@fontsource/montserrat/600.css' import './globals.css' -import { Providers } from '@/components/Providers' import { Header } from '@/components/Header' import { Footer } from '@/components/Footer' import { getI18n } from '@/i18n/i18n.server' +import { getTheme } from '@/theme/theme.server' const title = 'Théo LUDWIG' const description = @@ -54,15 +55,23 @@ const RootLayout = (props: RootLayoutProps): JSX.Element => { const { children } = props const i18n = getI18n() + const theme = getTheme() return ( - + - -
- {children} -