Examples
Set up a new React app in this folder with Vite, TypeScript and Mantine. It is Pip, a language-learning app for kids aged 8 to 12.
Theme: we have no theme yet, create one. Our brand color is orange #ff7a1a. The app should feel friendly and playful but stay easy to read for kids: rounded shapes, a rounded font, big tap targets. Light and dark color schemes.
Build the Learn screen a child sees after signing in, and the lesson it opens.
Data, hard-coded and generated relative to today:
- the child: name (Maya), an animal avatar, the language she learns (Spanish), her XP and level, a streak of 12 days with today's practice not done yet, and a gems balance
- the Spanish course: 6 units (Greetings, Family, Food, Animals, At school, Weekend) of 5 to 7 lessons each; each lesson has a title, a kind (words, listening, speaking, story) and 0 to 3 stars; the first units are done, the current lesson is in the third unit, the rest is locked
- the minutes practiced on each of the last 14 days, and a daily goal of 15 minutes with 8 done today
- 8 badges: 3 earned with the date, 1 in progress with its progress, 4 locked
- this week's leaderboard: Maya and 6 friends with their avatar, name and XP
- the current lesson: 10 exercises of four kinds: pick the picture for a word, choose the translation of a sentence, put the words of a sentence in order, and listen and type (the browser's speech synthesis reads the word, no audio files)
App shell:
- desktop: a sidebar with Learn, Practice, Badges, Leaderboard and Profile; the other pages can be simple; a header with the streak, the gems and the child's avatar menu (switch to the parents' area, light/dark color scheme, also on Cmd+J)
- phones: the same pages in a bottom navigation bar, the streak and gems at the top
Learn screen:
- a greeting with the child's name and avatar
- today's lesson: unit, lesson title and kind, progress through the lesson and a big Start button
- the course path: units as sections with their title and progress, lessons as round buttons on a winding vertical path; done lessons show their stars, the current lesson is bigger and gently bounces, locked lessons show a lock; a done lesson offers to practice it again, a locked one says which lesson unlocks it
- the daily goal as a ring (8 of 15 minutes) and the minutes of this week as small bars, today highlighted
- badges: the 3 earned and the one in progress with its progress, and a link to all badges
- this week's leaderboard: the top 3 and Maya's place
- the parents' area is behind a simple gate (a multiplication question) and holds the settings: sounds, daily goal (5, 10, 15 or 20 minutes) and a reminder time
Lesson (opens full screen over the app):
-
a progress bar through the 10 exercises, hearts (3 lives) and a close button that asks before leaving
-
each exercise kind as listed above; Check validates the answer and a panel at the bottom says whether it was right, shows the right answer when it was not, and moves on with Continue; a wrong answer costs a heart
-
the keyboard works: number keys pick an answer, Enter checks and continues
-
the end screen: the stars earned (fewer mistakes, more stars), the XP and minutes, a short celebration and the streak going up to 13 days; back on the Learn screen the lesson is done, the next one is unlocked and the daily goal ring has moved
-
losing all hearts ends the lesson with a kind message and a Try again button
-
the app works on phones and tablets: big tap targets, nothing scrolls the page sideways, and animations respect reduced motion