How kklt-ai/mimocodeweb works
MiMo Code Web is a React recreation of Xiaomi’s MiMo Code landing page. The main user workflow is viewing the hero, copying its install command or following navigation links, then browsing product feature cards; visitors can switch between Chinese and English. The architecture separates app-level language and link state, hero presentation and interactions, and feature content. The README also describes local visual assets and the page’s canvas and typing effects. Edges reflect imports and hook usage shown in the supplied excerpts or SOURCE INDEX; unsampled details are omitted.
Main entry points: Hero.jsx Hero section · App.jsx App state · FeatureSection.jsx Feature section · TerminalCommand.jsx Install command
Components 17
App shell
- React entry
src/main.jsx - App state
src/App.jsx - Language content
src/i18n.js - Page styling
src/styles.css
Hero experience
- Hero section
src/components/Hero.jsx - Navigation
src/components/NavBar.jsx - Hero subtitle
src/components/HeroSubtitle.jsx - Install command
src/components/TerminalCommand.jsx - Call-to-action buttons
src/components/CTAButtons.jsx - Interface icons
src/components/icons.jsx
Feature content
- Feature section
src/components/FeatureSection.jsx - Feature card
src/components/FeatureCard.jsx - Footer
src/components/Footer.jsx
Interaction logic
- Canvas mask effect
src/hooks/useHeroMask.js - Subtitle typing
src/hooks/useHeroSubtitleTyping.js - Copy interaction
src/hooks/useCopyCommand.js - Feature title typing
src/hooks/useFeatureTitleTyping.js
Connections 19
- React entry → App state: renders
src/main.jsx - React entry → Page styling: loads
src/main.jsx - App state → Hero section: renders
src/App.jsx - App state → Feature section: renders
src/App.jsx - App state → Footer: renders
src/App.jsx - App state → Language content: reads language
src/App.jsx - Hero section → Navigation: renders
src/components/Hero.jsx - Hero section → Hero subtitle: renders
src/components/Hero.jsx - Hero section → Install command: renders
src/components/Hero.jsx - Hero section → Call-to-action buttons: renders
src/components/Hero.jsx - Hero section → Canvas mask effect: uses effect
src/components/Hero.jsx - Hero subtitle → Subtitle typing: uses typing
src/components/HeroSubtitle.jsx - Navigation → Interface icons: renders
src/components/NavBar.jsx - Call-to-action buttons → Interface icons: uses icons
src/components/CTAButtons.jsx - Install command → Copy interaction: uses copy
src/components/TerminalCommand.jsx - Install command → Interface icons: renders
src/components/TerminalCommand.jsx - Feature section → Feature title typing: uses typing
src/components/FeatureSection.jsx - Feature section → Language content: reads features
src/components/FeatureSection.jsx - Feature section → Feature card: renders
src/components/FeatureSection.jsx