🚸(frontend) make explicit why a page is not found

Enhance the error message based on @spaccoud's feedback,
explain to the user why a page is not found.
This commit is contained in:
lebaudantoine
2025-02-25 19:56:00 +01:00
committed by aleb_the_flash
parent 19a240c63f
commit eec6a46883
4 changed files with 14 additions and 4 deletions

View File

@@ -1,12 +1,19 @@
import { CenteredContent } from '@/layout/CenteredContent' import { CenteredContent } from '@/layout/CenteredContent'
import { Screen } from '@/layout/Screen' import { Screen } from '@/layout/Screen'
import { Text } from '@/primitives/Text'
import { useTranslation } from 'react-i18next' import { useTranslation } from 'react-i18next'
import { Bold } from '@/primitives'
export const NotFoundScreen = () => { export const NotFoundScreen = () => {
const { t } = useTranslation() const { t } = useTranslation()
return ( return (
<Screen layout="centered"> <Screen layout="centered">
<CenteredContent title={t('notFound.heading')} withBackButton /> <CenteredContent title={t('notFound.heading')} withBackButton>
<Text centered>
{t('notFound.body')}{' '}
<Bold>https://visio.numerique.gouv.fr/xxx-yyyy-zzz.</Bold>
</Text>
</CenteredContent>
</Screen> </Screen>
) )
} }

View File

@@ -22,7 +22,8 @@
}, },
"logout": "", "logout": "",
"notFound": { "notFound": {
"heading": "" "heading": "",
"body": ""
}, },
"submit": "OK", "submit": "OK",
"footer": { "footer": {

View File

@@ -22,7 +22,8 @@
}, },
"logout": "Logout", "logout": "Logout",
"notFound": { "notFound": {
"heading": "Page not found" "heading": "Verify your meeting code",
"body": "Check that you have entered the correct meeting code in the URL. Example:"
}, },
"submit": "OK", "submit": "OK",
"footer": { "footer": {

View File

@@ -22,7 +22,8 @@
}, },
"logout": "Se déconnecter", "logout": "Se déconnecter",
"notFound": { "notFound": {
"heading": "Page introuvable" "heading": "Vérifier votre code de réunion",
"body": "Vérifiez que vous avez saisi le code de réunion correct dans l'URL. Exemple :"
}, },
"submit": "OK", "submit": "OK",
"footer": { "footer": {