The star reward system is Mi App Números’s built-in motivation mechanism. Every time a child successfully completes an activity — whether by identifying the correct count in Practice Mode or finishing a tracing attempt in Writing Mode — they earn one star. The running total is displayed prominently at the top of every screen, giving children a visible record of their progress throughout the session and encouraging them to keep going.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/jonathino2590/mi-app-numeros/llms.txt
Use this file to discover all available pages before exploring further.
When Stars Are Awarded
Stars are issued exclusively through thehandleCorrect function, which increments the counter and triggers the success feedback overlay:
handleCorrect:
Correct answer in Practice Mode
When a child taps the right number button in the multiple-choice quiz,
checkAnswer detects that the selected value equals data.val and calls handleCorrect(). One star is awarded and the app advances to the next number after 1 500 ms.The Star Counter
The star count is displayed in the top navigation bar (<nav>) that appears at the top of every view — menu, Learn Mode, Practice Mode, and Writing Mode alike. It is rendered inside a yellow rounded pill badge so it is immediately recognisable at a glance:
Feedback Animations
Each call tohandleCorrect (or a wrong-answer event) sets the feedback state, which drives two full-screen overlay animations rendered outside the main view stack. Both overlays use Framer Motion’s AnimatePresence so they mount and unmount with smooth transitions:
- Correct (
feedback === 'correct') — a white circular panel with a green border (border-8 border-green-400) slides in with a scale animation, shows a largeCheckCircle2icon in green, and displays the text ¡Genial! in uppercase. The panel bounces continuously while visible (animate-bounce). The overlay disappears automatically after 1 500 ms whennextNumber()clears the feedback state. - Wrong (
feedback === 'wrong') — a white circular panel with a red border (border-8 border-red-400) enters from a slight horizontal offset (shake entrance), shows a largeXCircleicon in red, and displays the text Casi… in uppercase. No star is awarded. The overlay clears after 1 000 ms, returning the child to the same question to try again.
The star count lives in React component state (
useState(0)) and is therefore session-only. Refreshing the browser page resets the counter to zero. Mi App Números does not currently use localStorage, a database, or any other persistence layer, so stars cannot be saved between visits.