diff --git a/frontend/package.json b/frontend/package.json index 0b17e87..08f9ad3 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -29,6 +29,7 @@ "@types/yup": "^0.29.13", "@typescript-eslint/eslint-plugin": "^5.10.1", "@typescript-eslint/parser": "^5.10.1", + "i18next-scanner": "^3.1.0", "autoprefixer": "^10.4.2", "cookie": "^0.4.2", "eslint": "^7.32.0", @@ -37,7 +38,6 @@ "felte": "^1.0.1", "highlight.js": "^11.4.0", "i18next-browser-languagedetector": "^6.1.4", - "i18next-scanner": "^3.1.0", "ioredis": "^4.28.5", "js-cookie": "^3.0.1", "luxon": "^2.3.1", diff --git a/frontend/src/lib/assets/landing/.gitignore b/frontend/src/lib/assets/landing/.gitignore new file mode 100644 index 0000000..2503b31 --- /dev/null +++ b/frontend/src/lib/assets/landing/.gitignore @@ -0,0 +1,6 @@ +*.png +*.xcf +admin_overview.webp +results.webp +select.webp +solution.webp \ No newline at end of file diff --git a/frontend/src/lib/assets/landing/results-mockup.webp b/frontend/src/lib/assets/landing/results-mockup.webp new file mode 100644 index 0000000..165f647 Binary files /dev/null and b/frontend/src/lib/assets/landing/results-mockup.webp differ diff --git a/frontend/src/lib/assets/landing/select-mockup.webp b/frontend/src/lib/assets/landing/select-mockup.webp new file mode 100644 index 0000000..153e59e Binary files /dev/null and b/frontend/src/lib/assets/landing/select-mockup.webp differ diff --git a/frontend/src/lib/assets/landing/solution-mockup.webp b/frontend/src/lib/assets/landing/solution-mockup.webp new file mode 100644 index 0000000..5f19ed2 Binary files /dev/null and b/frontend/src/lib/assets/landing/solution-mockup.webp differ diff --git a/frontend/src/lib/i18n/index.ts b/frontend/src/lib/i18n/index.ts index 79fc102..ef5dd4b 100644 --- a/frontend/src/lib/i18n/index.ts +++ b/frontend/src/lib/i18n/index.ts @@ -9,7 +9,7 @@ export const initLocalizationContext = () => { const i18n = new I18nService(); const tranlator = new I18NextTranslationService(i18n); - // Setting the Svelte context + // skipcq: JS-0357 setLocalization({ t: tranlator.translate, currentLanguage: tranlator.locale diff --git a/frontend/src/lib/landing-promo.svelte b/frontend/src/lib/landing-promo.svelte new file mode 100644 index 0000000..496bae1 --- /dev/null +++ b/frontend/src/lib/landing-promo.svelte @@ -0,0 +1,29 @@ + + +
+

1: Answer

+

2: See what was right or wrong

+

3: See how many were right or wrong

+ +
+ Select answer +
+
+ See right and wrong solutions +
+
+ See results in comparison with other players +
+
diff --git a/frontend/src/routes/edit.svelte b/frontend/src/routes/edit.svelte index 4e8f431..6997230 100644 --- a/frontend/src/routes/edit.svelte +++ b/frontend/src/routes/edit.svelte @@ -1,5 +1,6 @@