From 1e4757b2f35224b840f5cffe480c0895b6fed12b Mon Sep 17 00:00:00 2001 From: Pierre-Louis Guhur Date: Sun, 6 Nov 2022 11:55:03 +0100 Subject: [PATCH] fix: fonts --- components/Logo.tsx | 2 +- netlify.toml | 1 + next.config.js | 8 +++++--- pages/_document.js | 20 ++++++++++++++++++++ pages/index.tsx | 4 +--- styles/scss/config.scss | 2 -- 6 files changed, 28 insertions(+), 9 deletions(-) create mode 100644 pages/_document.js diff --git a/components/Logo.tsx b/components/Logo.tsx index 5d9526e..61d0eda 100644 --- a/components/Logo.tsx +++ b/components/Logo.tsx @@ -8,7 +8,7 @@ interface LogoProps { [props: string]: any; } -const Logo = ({ title = false, ...props }: LogoProps) => { +const Logo = ({ title = true, ...props }: LogoProps) => { const { t } = useTranslation(); const src = title ? logoWithText : logo; return {t('logo.alt')}; diff --git a/netlify.toml b/netlify.toml index 2b0f8a9..4423fc7 100644 --- a/netlify.toml +++ b/netlify.toml @@ -5,3 +5,4 @@ [dev] command = "npm run dev" + diff --git a/next.config.js b/next.config.js index dd42a08..81765ec 100644 --- a/next.config.js +++ b/next.config.js @@ -1,6 +1,8 @@ -const {i18n} = require('./next-i18next.config.js') +const { i18n } = require('./next-i18next.config.js'); -const remoteImage = process.env.IMGPUSH_URL ? process.env.IMGPUSH_URL.split('/')[-1] : "imgpush.mieuxvoter.fr"; +const remoteImage = process.env.IMGPUSH_URL + ? process.env.IMGPUSH_URL.split('/')[-1] + : 'imgpush.mieuxvoter.fr'; module.exports = { i18n, @@ -12,5 +14,5 @@ module.exports = { pathname: '**', }, ], - } + }, }; diff --git a/pages/_document.js b/pages/_document.js new file mode 100644 index 0000000..3bf64bf --- /dev/null +++ b/pages/_document.js @@ -0,0 +1,20 @@ +import { Html, Head, Main, NextScript } from 'next/document'; + +export default function Document() { + return ( + + + + + + + +
+ + + + ); +} diff --git a/pages/index.tsx b/pages/index.tsx index 7555ed5..f0da194 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -29,9 +29,7 @@ const StartForm = () => {
- - - +

{t('home.motto')}

diff --git a/styles/scss/config.scss b/styles/scss/config.scss index ed22044..830fdf3 100644 --- a/styles/scss/config.scss +++ b/styles/scss/config.scss @@ -24,8 +24,6 @@ $theme-colors: ( "warning": #ff6e11, ); - - // $grade-colors: ( // "to-reject": #F2F0FF, // "insufficient": #C23D13,