-
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
68 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"metadata": { | ||
"title": "Quizantwort ", | ||
"description": "Deine Antwort ist entweder richtig oder falsch. Finde es heraus.", | ||
"keywords": "Quizergebnisse, sofortige Rückmeldung, Geografiequiz", | ||
"url": "https://socialincome.org/", | ||
"og-image": "/assets/metadata/og/default.jpg", | ||
"twitter-image": "/assets/metadata/twitter/default.jpg" | ||
}, | ||
"result": { | ||
"right": "Genau richtig!", | ||
"wrong": "Nicht ganz, aber guter Versuch!" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"metadata": { | ||
"title": "Quick Quiz Results!", | ||
"description": "Discover your quiz results instantly. Whether you nailed it or need a retry, we'll let you knonw.", | ||
"keywords": "Quiz Results, Instant Feedback, Geography Quiz", | ||
"url": "https://socialincome.org/", | ||
"og-image": "/assets/metadata/og/default.jpg", | ||
"twitter-image": "/assets/metadata/twitter/default.jpg" | ||
}, | ||
"result": { | ||
"right": "Spot on!", | ||
"wrong": "Not quite, but good try!" | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
website/src/app/[lang]/[region]/(website)/(quiz)/right/page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { DefaultPageProps } from '@/app/[lang]/[region]'; | ||
import { Translator } from '@socialincome/shared/src/utils/i18n'; | ||
import { BaseContainer, Typography } from '@socialincome/ui'; | ||
|
||
export default async function Page({ params }: DefaultPageProps) { | ||
const translator = await Translator.getInstance({ | ||
language: params.lang, | ||
namespaces: ['website-quiz'], | ||
}); | ||
|
||
return ( | ||
<BaseContainer className="min-h-screen-navbar flex items-center justify-center"> | ||
<div> | ||
<Typography size="5xl" weight="medium" className="text-center"> | ||
{translator.t('result.right')} | ||
</Typography> | ||
</div> | ||
</BaseContainer> | ||
); | ||
} |
20 changes: 20 additions & 0 deletions
20
website/src/app/[lang]/[region]/(website)/(quiz)/wrong/page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { DefaultPageProps } from '@/app/[lang]/[region]'; | ||
import { Translator } from '@socialincome/shared/src/utils/i18n'; | ||
import { BaseContainer, Typography } from '@socialincome/ui'; | ||
|
||
export default async function Page({ params }: DefaultPageProps) { | ||
const translator = await Translator.getInstance({ | ||
language: params.lang, | ||
namespaces: ['website-quiz'], | ||
}); | ||
|
||
return ( | ||
<BaseContainer className="min-h-screen-navbar flex items-center justify-center"> | ||
<div> | ||
<Typography size="5xl" weight="medium" className="text-center"> | ||
{translator.t('result.wrong')} | ||
</Typography> | ||
</div> | ||
</BaseContainer> | ||
); | ||
} |