https://github.com/junhey/kid-smart-learning
https://github.com/junhey/kid-smart-learning
Last synced: about 7 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/junhey/kid-smart-learning
- Owner: junhey
- Created: 2026-03-10T06:05:56.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2026-04-30T03:16:14.000Z (2 months ago)
- Last Synced: 2026-04-30T03:24:30.820Z (2 months ago)
- Language: TypeScript
- Homepage: https://kid-smart-learning.vercel.app
- Size: 529 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Kid Smart Learning ๐
An interactive, gamified learning website for children ages 5-7, featuring fun English and Math games with a star-based reward system.
**Live Demo:** [kid-smart-learning.vercel.app](https://kid-smart-learning-em5eci9lj-junheys-projects.vercel.app) *(deploy to get your URL)*
---
# ๅฟ็ซฅๆบๆ
งๅญฆไน ๐
ไธๆฌพไธไธบ 5-7 ๅฒๅฟ็ซฅ่ฎพ่ฎก็ไบๅจๆธธๆๅๅญฆไน ็ฝ็ซ๏ผๅ
ๅซ่ฑ่ฏญๅๆฐๅญฆ่ถฃๅณๆธธๆ๏ผไปฅๅๆๆๅฅๅฑ็ณป็ปใ
---
## Features / ๅ่ฝ็น่ฒ
- ๐ค **5 English Games** โ Alphabet Balloons, Word Match, Phonics Fun, Listen & Choose, Sentence Builder
- ๐ข **5 Math Games** โ Count It, Adding Fun, Shape Match, Big or Small, Math Shooter
- โญ **Reward System** โ Stars, Levels (1-10), Achievements stored in localStorage
- ๐ต **Audio Support** โ Web Speech API for pronunciation
- ๐ฑ **Responsive** โ Optimized for iPad/tablet/desktop
- ๐จ **Animations** โ Framer Motion throughout
---
## Tech Stack
| Technology | Version |
|---|---|
| Next.js | 14 (App Router) |
| React | 18 |
| TypeScript | 5 |
| TailwindCSS | 3 |
| Framer Motion | 11 |
---
## Quickstart / ๅฟซ้ๅผๅง
```bash
# Clone the repository
git clone https://github.com/yourusername/kid-smart-learning.git
cd kid-smart-learning
# Install dependencies
npm install
# Start development server
npm run dev
# Open http://localhost:3000
```
### Build for production / ็ไบงๆๅปบ
```bash
npm run build
npm start
```
---
## Games Overview / ๆธธๆไป็ป
### ๐ English Games
| Game | Description |
|---|---|
| ๐ **Alphabet Balloons** | Pop the balloon with the correct letter as balloons float up |
| ๐ถ **Word Match** | See an emoji picture, pick the matching word from 4 choices |
| ๐ค **Phonics Fun** | See a letter, find which picture starts with that sound |
| ๐ **Listen & Choose** | Hear a word spoken aloud, pick the matching emoji picture |
| โ๏ธ **Sentence Builder** | Click word tiles to arrange them into a correct sentence |
### ๐ข Math Games
| Game | Description |
|---|---|
| ๐ข **Count It!** | Count the emoji objects and select the correct number (1-15) |
| โ **Adding Fun** | Visual addition and subtraction with emoji groups |
| ๐ท **Shape Match** | Match shape names to CSS/SVG drawn shapes |
| โ๏ธ **Big or Small?** | Compare two numbers and choose > or < |
| ๐ฏ **Math Shooter** | Shoot the floating bubble with the correct answer |
---
## Reward System / ๅฅๅฑ็ณป็ป
```
Stars โญ โ earned per correct answer
Level ๐ โ 1-10 based on stars (every 10 stars = 1 level)
```
### Achievements / ๆๅฐฑ
| Achievement | Unlock Condition |
|---|---|
| ๐ First Star | Get your first correct answer |
| ๐ฏ Perfect Round | Complete a game with all correct |
| ๐ฅ Streak 10 | Answer 10 in a row correctly |
---
## Project Structure / ้กน็ฎ็ปๆ
```
kid-smart-learning/
โโโ app/
โ โโโ layout.tsx # Root layout, fonts
โ โโโ page.tsx # Home page
โ โโโ globals.css # Global styles & animations
โ โโโ english/page.tsx # English hub (5 games)
โ โโโ math/page.tsx # Math hub (5 games)
โโโ components/
โ โโโ ui/
โ โ โโโ StarReward.tsx # Animated star burst
โ โ โโโ ProgressBar.tsx # Colorful progress bar
โ โ โโโ SoundButton.tsx # Button with audio click
โ โโโ games/
โ โ โโโ english/ # 5 English game components
โ โ โโโ math/ # 5 Math game components
โ โโโ layout/
โ โโโ Header.tsx # Stars + level display
โ โโโ Navigation.tsx # Back/Home nav
โ โโโ RewardPanel.tsx # Full reward panel
โโโ data/
โ โโโ english/
โ โ โโโ alphabet.json # 26 letters with words
โ โ โโโ words.json # 100+ words (5 categories)
โ โ โโโ sentences.json # 30 sentence templates
โ โโโ math/
โ โโโ numbers.json # 1-20 in English & Chinese
โ โโโ shapes.json # 8 shapes with properties
โโโ hooks/
โ โโโ useSound.ts # Web Speech API hook
โ โโโ useReward.ts # Stars/levels/achievements
โ โโโ useProgress.ts # Game progress tracking
โโโ lib/
โโโ gameUtils.ts # Shuffle, random, scoring utils
```
---
## Deployment / ้จ็ฝฒ
### Vercel (Recommended)
#### ๐ ้ฆๆฌก้จ็ฝฒ
1. Push to GitHub
2. Import project at [vercel.com/new](https://vercel.com/new)
3. Deploy automatically!
#### โ๏ธ ้
็ฝฎ่ชๅจ้จ็ฝฒ๏ผGitHub Actions๏ผ
**้ฎ้ข**: ๅฆๆไฝ ็ๅฐ `Error: Input required and not supplied: vercel-token`
**่งฃๅณๆนๆก**: ้่ฆ้
็ฝฎ GitHub Secrets
1. **่ฟ่ก้
็ฝฎๅฉๆ**๏ผๆจ่๏ผ:
```bash
npm run setup:deploy
# ๆ่
./scripts/setup-deployment.sh
```
2. **ๆๅจ้
็ฝฎ**:
- ๆฅ็่ฏฆ็ปๆๅ: [DEPLOYMENT_SETUP.md](./DEPLOYMENT_SETUP.md)
- ่ทๅ Vercel Token: https://vercel.com/account/tokens
- ๆทปๅ GitHub Secrets: https://github.com/junhey/kid-smart-learning/settings/secrets/actions
3. **้่ฆๆทปๅ ็ Secrets**:
- `VERCEL_TOKEN` - ไป Vercel Dashboard ๅๅปบ
- `VERCEL_ORG_ID` - ่ฟ่ก `vercel link` ๅ่ทๅ
- `VERCEL_PROJECT_ID` - ่ฟ่ก `vercel link` ๅ่ทๅ
The workflow in `.github/workflows/deploy.yml` will:
- โ
Type-check on every push
- โ
Build and deploy to Vercel on merge to `main`
- โ
Create preview deployments for PRs
---
## Design System / ่ฎพ่ฎก่ง่
### Colors / ้ข่ฒ
| Token | Hex | Usage |
|---|---|---|
| Primary | `#FFB84D` | Buttons, accents |
| Secondary | `#4DD0E1` | Math theme |
| Danger | `#FF6B6B` | Wrong answers |
| Success | `#81C784` | Correct answers |
| Purple | `#A78BFA` | Levels, rewards |
### Typography
- **Nunito** โ Primary font (rounded, child-friendly)
- **Fredoka One** โ Display letters in games
### Touch Targets
- All interactive elements: minimum 64px height
- Large emoji buttons: 80-100px height
---
## Roadmap / ่ทฏ็บฟๅพ
- [ ] More English categories (body parts, weather, food)
- [ ] Chinese language support (Mandarin mode)
- [ ] Multiplayer / family mode
- [ ] More math: multiplication intro, skip counting
- [ ] Story mode with narrative
- [ ] Parent dashboard with progress reports
- [ ] Offline PWA support
- [ ] More languages (Spanish, French)
---
## Changelog / ๆดๆฐๆฅๅฟ
### v1.0.0 (2026-03-10)
- Initial release
- 5 English games: AlphabetBalloon, WordMatch, PhonicsGame, ListenAndChoose, SentenceBuilder
- 5 Math games: NumberCount, AdditionGame, ShapeMatch, CompareNumbers, MathShooter
- Reward system: stars, levels 1-10, achievements (firstStar, perfectRound, streak10)
- JSON curriculum: 26 letters, 100+ words, 30 sentences, 8 shapes
- Framer Motion animations throughout all games
- Web Speech API for pronunciation in English games
- Responsive design for iPad/tablet/desktop
- GitHub Actions CI/CD workflow for Vercel
---
## Contributing / ่ดก็ฎ
Contributions welcome! Please:
1. Fork the repository
2. Create a feature branch: `git checkout -b feature/new-game`
3. Commit your changes
4. Open a Pull Request
---
## License / ่ฎธๅฏ่ฏ
MIT License โ free for educational use.
---
Made with โค๏ธ for curious kids everywhere!
ไธบไธ็ๅๅฐๅฅฝๅฅ็ๅญฉๅญไปฌ็จ็ฑๅถไฝ๏ผ