diff --git a/tests/helpers/data-validation.mjs b/tests/helpers/data-validation.mjs index 5fbb588..e3e49d5 100644 --- a/tests/helpers/data-validation.mjs +++ b/tests/helpers/data-validation.mjs @@ -85,6 +85,7 @@ export function validateSiteContent(site) { "home.onboarding.title", "home.onboarding.description", "home.onboarding.stepsTitle", + "home.onboarding.sliderTitle", "home.onboarding.sliderLabel", "home.onboarding.slideButtonLabel", "home.origin.eyebrow", diff --git a/tests/static-app.test.mjs b/tests/static-app.test.mjs index 124f41d..6755cbe 100644 --- a/tests/static-app.test.mjs +++ b/tests/static-app.test.mjs @@ -46,6 +46,7 @@ test("vite entrypoint and app shell are wired", async () => { assert.match(shell, /export function Shell/); assert.doesNotMatch(shell, /content\.navigation\.library/); assert.match(shell, /sidebar-about-link/); + assert.match(shell, /dragon-sidebar\.png/); assert.match(shell, /ImportButton/); assert.match(overlays, /export function AppOverlays/); assert.match(overlays, /\.\/ToolboxModals\.jsx/); @@ -63,9 +64,10 @@ test("vite entrypoint and app shell are wired", async () => { assert.match(homePage, /export function HomePage/); assert.match(homePage, /HomeOnboardingSection/); assert.match(homePage, /import\.meta\.env\.DEV \|\| toolboxes\.length === 0/); - assert.match(homePage, /dragon\.png/); + assert.match(homePage, /dragon-home\.png/); assert.match(homeOnboarding, /export function HomeOnboardingSection/); assert.match(homeOnboarding, /prefers-reduced-motion: reduce/); + assert.match(homeOnboarding, /content\.sliderTitle/); assert.match(homeOnboarding, /home-onboarding-dots/); assert.match(aboutPage, /export function AboutPage/); assert.match(aboutPage, /HomeOnboardingSection/); @@ -132,7 +134,8 @@ test("legacy icons and primary images are available", async () => { await readFile("website/public/static/icons/trashcan.svg", "utf8"); await readFile("website/public/static/icons/zoom.svg", "utf8"); await readFile("website/public/favicon.ico"); - await readFile("website/public/static/img/dragon.png"); + await readFile("website/public/static/img/dragon-home.png"); + await readFile("website/public/static/img/dragon-sidebar.png"); await readFile("website/public/static/img/dragon-gameguide.png"); await readFile("website/public/static/img/dragon-toolbox.png"); await readFile("website/public/static/img/onboarding/toolbox-overview.png"); diff --git a/tests/static-styles.test.mjs b/tests/static-styles.test.mjs index 4e949b7..e3b58f9 100644 --- a/tests/static-styles.test.mjs +++ b/tests/static-styles.test.mjs @@ -45,6 +45,7 @@ test("style entrypoint and theme layers are wired", async () => { assert.match(styleHome, /\.about-tool-item \.module-icon/); assert.match(styleMixins, /@mixin gold-panel-frame/); assert.match(styleShell, /\.sidebar-about-link/); + assert.match(styleShell, /\.sidebar-mascot/); assert.match(styleToolboxes, /\.module-icon-abacus/); assert.match(styleToolboxes, /\.module-icon-calculator/); assert.match(styleToolboxes, /\.module-icon-columns/); diff --git a/website/public/data/site.json b/website/public/data/site.json index e954990..4fa93c4 100644 --- a/website/public/data/site.json +++ b/website/public/data/site.json @@ -1184,9 +1184,10 @@ }, "onboarding": { "eyebrow": "Prise en main", - "title": "Prise en main", + "title": "Votre première toolbox", "description": "Une toolbox est votre espace personnel pour garder vos notes, listes, images, liens et outils utiles dans ce navigateur.", - "stepsTitle": "Créer votre première toolbox", + "stepsTitle": "Les étapes", + "sliderTitle": "Aperçu", "sliderLabel": "Aperçu de la prise en main", "slideButtonLabel": "Afficher l'aperçu", "steps": [ diff --git a/website/public/static/img/dragon.png b/website/public/static/img/dragon-home.png similarity index 100% rename from website/public/static/img/dragon.png rename to website/public/static/img/dragon-home.png diff --git a/website/public/static/img/dragon-sidebar.png b/website/public/static/img/dragon-sidebar.png new file mode 100644 index 0000000..f6de7ee Binary files /dev/null and b/website/public/static/img/dragon-sidebar.png differ diff --git a/website/src/components/Shell.jsx b/website/src/components/Shell.jsx index dd80741..d559aa0 100644 --- a/website/src/components/Shell.jsx +++ b/website/src/components/Shell.jsx @@ -22,6 +22,9 @@ export function Shell({ route, content, games, toolboxes, links, actions, childr +
{content.navigation.about} {content.library.eyebrow} diff --git a/website/src/pages/HomeOnboardingSection.jsx b/website/src/pages/HomeOnboardingSection.jsx index 62507a2..10b3028 100644 --- a/website/src/pages/HomeOnboardingSection.jsx +++ b/website/src/pages/HomeOnboardingSection.jsx @@ -46,36 +46,39 @@ export function HomeOnboardingSection({ content, className = "" }) { ))}
-
setIsPaused(true)} - onMouseLeave={() => setIsPaused(false)} - onFocus={() => setIsPaused(true)} - onBlur={() => setIsPaused(false)} - > - {currentSlide && ( -
- {currentSlide.alt} -
- {currentSlide.title} - {currentSlide.text} -
-
- )} - {slides.length > 1 && ( -
- {slides.map((slide, index) => ( -
- )} +
+

{content.sliderTitle}

+
setIsPaused(true)} + onMouseLeave={() => setIsPaused(false)} + onFocus={() => setIsPaused(true)} + onBlur={() => setIsPaused(false)} + > + {currentSlide && ( +
+ {currentSlide.alt} +
+ {currentSlide.title} + {currentSlide.text} +
+
+ )} + {slides.length > 1 && ( +
+ {slides.map((slide, index) => ( +
+ )} +
diff --git a/website/src/pages/HomePage.jsx b/website/src/pages/HomePage.jsx index 7ca8ea8..7b95018 100644 --- a/website/src/pages/HomePage.jsx +++ b/website/src/pages/HomePage.jsx @@ -36,7 +36,7 @@ export function HomePage({ siteContent, toolboxes }) {
- {content.origin.visualAlt} + {content.origin.visualAlt}