Skip to content

armgit / meet

Public Imported from GitHub
0

Open source video conferencing app powered by LiveKit. Built with Django and React.

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

lebaudantoineeec6a4688331
diff --git a/src/frontend/src/components/NotFoundScreen.tsx b/src/frontend/src/components/NotFoundScreen.tsx
index 56caf247..6f7d9129 100644
--- a/src/frontend/src/components/NotFoundScreen.tsx
+++ b/src/frontend/src/components/NotFoundScreen.tsx
@@ -1,12 +1,19 @@
import { CenteredContent } from '@/layout/CenteredContent'
import { Screen } from '@/layout/Screen'
+import { Text } from '@/primitives/Text'
import { useTranslation } from 'react-i18next'
+import { Bold } from '@/primitives'
export const NotFoundScreen = () => {
const { t } = useTranslation()
return (
<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>
)
}
diff --git a/src/frontend/src/locales/de/global.json b/src/frontend/src/locales/de/global.json
index 11c2779a..bd6d27b1 100644
--- a/src/frontend/src/locales/de/global.json
+++ b/src/frontend/src/locales/de/global.json
@@ -22,7 +22,8 @@
},
"logout": "",
"notFound": {
- "heading": ""
+ "heading": "",
+ "body": ""
},
"submit": "OK",
"footer": {
diff --git a/src/frontend/src/locales/en/global.json b/src/frontend/src/locales/en/global.json
index 11316ff5..c9a27f9b 100644
--- a/src/frontend/src/locales/en/global.json
+++ b/src/frontend/src/locales/en/global.json
@@ -22,7 +22,8 @@
},
"logout": "Logout",
"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",
"footer": {
diff --git a/src/frontend/src/locales/fr/global.json b/src/frontend/src/locales/fr/global.json
index 15424a3b..0fc59dbe 100644
--- a/src/frontend/src/locales/fr/global.json
+++ b/src/frontend/src/locales/fr/global.json
@@ -22,7 +22,8 @@
},
"logout": "Se déconnecter",
"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",
"footer": {