Modern React memory training app with production-grade architecture and exceptional performance
gameplay-screenshot.mp4
Smooth card flipping animations and responsive gameplay
Home Screen (Portrait Mode) |
In-Game Screen (Portrait Mode) |
|
|
# Clone repository
git clone https://github.com/olgagulyakevich/memory-game.git
# Install dependencies
npm install
# Start development server
npm start # Opens at http://localhost:3001
# Build for production
npm run build๐จ Three Beautiful Themes
- Cats Theme โ Adorable feline companions
- Cars Theme โ Classic automotive collection
- Flowers Theme โ Botanical garden variety
Each theme features hand-picked imagery optimized for performance.
๐ Full Internationalization
- 3 Languages: English, Russian, French
- react-i18next integration
- Persistent language preference
- Fallback to English for missing translations
โฟ Accessibility First
- WCAG AA Compliant โ proper contrast ratios
- Keyboard Navigation โ fully playable without mouse
- Screen Reader Support โ comprehensive ARIA labels
- Semantic HTML โ proper document structure
โก Performance Optimized
- React.memo โ component memoization
- Hardware Acceleration โ CSS 3D transforms
- Code Splitting โ optimized bundle chunks
- Image Optimization โ WebP with fallbacks
Lighthouse Scores:
- Desktop: 98/100 Performance
- Mobile: 95+/100 Performance
- 100/100 Accessibility, Best Practices, SEO
| Metric | Desktop | Mobile | Target |
|---|---|---|---|
| Performance | 98/100 | 95/100 | >90 โ |
| FCP | 0.4s | 1.0s | <1.8s โ |
| LCP | 0.6s | 2.3s | <2.5s โ |
| Bundle Size | 115KB gzipped | โ | <250KB โ |
๐ฆ Bundle Composition (click to expand)
react-vendor.js 51.39 KB (44.5%)
main.js 29.42 KB (25.5%)
vendors.js 16.64 KB (14.4%)
router-vendor.js 11.53 KB (10.0%)
react-vendor-2.js 5.30 KB (4.6%)
runtime.js 0.96 KB (0.8%)
Total gzipped: 115.44 KB
Built with modern React patterns and professional development practices:
src/
โโโ components/ # React components
โ โโโ pages/ # Route-level components
โ โโโ ui/ # Reusable UI components
โโโ hooks/ # Custom React hooks (useGame)
โโโ utils/ # Helper functions & config
โโโ locales/ # i18n translation files
โโโ styles/ # Global CSS with design tokens
Key Technologies:
- React 19 with hooks
- React Router 7 for SPA routing
- react-i18next for internationalization
- Webpack 5 with optimizations
- CSS3 with custom properties
๐ Detailed Documentation:
- Architecture Decisions โ System design and patterns
- Tech Stack Overview โ Technologies and tools
- Future Roadmap โ Planned enhancements
๐ก Code Quality Example โ Custom Hook Architecture
// Custom hook with optimized game logic
const useGame = (images) => {
const [finishedItems, setFinishedItems] = useState([]);
const [stepsCount, setStepsCount] = useState(0);
const [errors, setErrors] = useState(0);
const checkItems = (firstItem, secondItem) => {
const firstImage = images.find(({id}) => id === firstItem);
const secondImage = images.find(({id}) => id === secondItem);
if (firstImage.url === secondImage.url) {
setFinishedItems((items) => [...items, firstItem, secondItem]);
} else {
setErrors((e) => e + 1);
}
setStepsCount((i) => i + 1);
};
const isWin = finishedItems.length > 0 &&
finishedItems.length === images.length;
return { finishedItems, stepsCount, errors, checkItems, isWin };
};Why this approach?
- Clean separation of business logic from UI
- Immutable state updates for predictable behavior
- Easy to test and maintain
- Follows React best practices
This project includes comprehensive testing documentation:
- โ Manual Testing Checklist โ Cross-browser compatibility
- โฟ Accessibility Audit โ WCAG AA compliance
- โก Performance Benchmarks โ Core Web Vitals
Deployed on GitHub Pages with automatic CI/CD:
npm run deploy # Builds and deploys to gh-pages branchProduction Features:
- SPA routing with 404 fallback
- Asset optimization and caching
- SEO-friendly meta tags
- Social media preview cards
MIT License โ feel free to use this code for learning and inspiration.
This project demonstrates:
- โ Modern React development practices
- โ Performance-focused architecture
- โ Accessibility compliance (WCAG AA)
- โ Production-ready deployment pipeline
- โ Comprehensive documentation
Perfect for: Frontend Developer / React Developer / Senior Frontend Engineer positions
Built with โค๏ธ using React 19 and modern web standards
๐ฎ Play Now โข ๐ผ LinkedIn โข ๐ง Contact


