# kklt-ai/mimocodeweb architecture

> Architecture diagram of the GitHub repository kklt-ai/mimocodeweb, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/kklt-ai/mimocodeweb
- Repository: https://github.com/kklt-ai/mimocodeweb

## Overview

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: [`src/components/Hero.jsx`](https://github.com/kklt-ai/mimocodeweb/blob/main/src/components/Hero.jsx) (Hero section), [`src/App.jsx`](https://github.com/kklt-ai/mimocodeweb/blob/main/src/App.jsx) (App state), [`src/components/FeatureSection.jsx`](https://github.com/kklt-ai/mimocodeweb/blob/main/src/components/FeatureSection.jsx) (Feature section), [`src/components/TerminalCommand.jsx`](https://github.com/kklt-ai/mimocodeweb/blob/main/src/components/TerminalCommand.jsx) (Install command)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_shell["App shell"]
  node_main["React entry<br/>[main.jsx]"]
  node_app["App state<br/>[App.jsx]"]
  node_translations["Language content<br/>[i18n.js]"]
  node_styles["Page styling<br/>[styles.css]"]
end

subgraph group_hero["Hero experience"]
  node_hero["Hero section<br/>[Hero.jsx]"]
  node_navbar["Navigation<br/>[NavBar.jsx]"]
  node_subtitle["Hero subtitle<br/>[HeroSubtitle.jsx]"]
  node_terminal["Install command"]
  node_cta["Call-to-action buttons<br/>[CTAButtons.jsx]"]
  node_icons["Interface icons<br/>[icons.jsx]"]
end

subgraph group_features["Feature content"]
  node_featuresection["Feature section<br/>[FeatureSection.jsx]"]
  node_featurecard["Feature card<br/>[FeatureCard.jsx]"]
  node_footer["Footer<br/>[Footer.jsx]"]
end

subgraph group_behavior["Interaction logic"]
  node_maskhook["Canvas mask effect<br/>[useHeroMask.js]"]
  node_subtitlehook["Subtitle typing"]
  node_copyhook["Copy interaction<br/>[useCopyCommand.js]"]
  node_titlehook["Feature title typing"]
end

node_main -->|"renders"| node_app
node_main -->|"loads"| node_styles
node_app -->|"renders"| node_hero
node_app -->|"renders"| node_featuresection
node_app -->|"renders"| node_footer
node_app -->|"reads language"| node_translations
node_hero -->|"renders"| node_navbar
node_hero -->|"renders"| node_subtitle
node_hero -->|"renders"| node_terminal
node_hero -->|"renders"| node_cta
node_hero -->|"uses effect"| node_maskhook
node_subtitle -->|"uses typing"| node_subtitlehook
node_navbar -->|"renders"| node_icons
node_cta -->|"uses icons"| node_icons
node_terminal -->|"uses copy"| node_copyhook
node_terminal -->|"renders"| node_icons
node_featuresection -->|"uses typing"| node_titlehook
node_featuresection -->|"reads features"| node_translations
node_featuresection -->|"renders"| node_featurecard

click node_main "https://github.com/kklt-ai/mimocodeweb/blob/main/src/main.jsx"
click node_app "https://github.com/kklt-ai/mimocodeweb/blob/main/src/App.jsx"
click node_translations "https://github.com/kklt-ai/mimocodeweb/blob/main/src/i18n.js"
click node_styles "https://github.com/kklt-ai/mimocodeweb/blob/main/src/styles.css"
click node_hero "https://github.com/kklt-ai/mimocodeweb/blob/main/src/components/Hero.jsx"
click node_navbar "https://github.com/kklt-ai/mimocodeweb/blob/main/src/components/NavBar.jsx"
click node_subtitle "https://github.com/kklt-ai/mimocodeweb/blob/main/src/components/HeroSubtitle.jsx"
click node_terminal "https://github.com/kklt-ai/mimocodeweb/blob/main/src/components/TerminalCommand.jsx"
click node_cta "https://github.com/kklt-ai/mimocodeweb/blob/main/src/components/CTAButtons.jsx"
click node_icons "https://github.com/kklt-ai/mimocodeweb/blob/main/src/components/icons.jsx"
click node_featuresection "https://github.com/kklt-ai/mimocodeweb/blob/main/src/components/FeatureSection.jsx"
click node_featurecard "https://github.com/kklt-ai/mimocodeweb/blob/main/src/components/FeatureCard.jsx"
click node_footer "https://github.com/kklt-ai/mimocodeweb/blob/main/src/components/Footer.jsx"
click node_maskhook "https://github.com/kklt-ai/mimocodeweb/blob/main/src/hooks/useHeroMask.js"
click node_subtitlehook "https://github.com/kklt-ai/mimocodeweb/blob/main/src/hooks/useHeroSubtitleTyping.js"
click node_copyhook "https://github.com/kklt-ai/mimocodeweb/blob/main/src/hooks/useCopyCommand.js"
click node_titlehook "https://github.com/kklt-ai/mimocodeweb/blob/main/src/hooks/useFeatureTitleTyping.js"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_main,node_app,node_translations,node_styles toneBlue
class node_hero,node_navbar,node_subtitle,node_terminal,node_cta,node_icons toneAmber
class node_featuresection,node_featurecard,node_footer toneMint
class node_maskhook,node_subtitlehook,node_copyhook,node_titlehook toneRose
```

## Components

### App shell

- [React entry](https://github.com/kklt-ai/mimocodeweb/blob/main/src/main.jsx): `src/main.jsx`
- [App state](https://github.com/kklt-ai/mimocodeweb/blob/main/src/App.jsx): `src/App.jsx`
- [Language content](https://github.com/kklt-ai/mimocodeweb/blob/main/src/i18n.js): `src/i18n.js`
- [Page styling](https://github.com/kklt-ai/mimocodeweb/blob/main/src/styles.css): `src/styles.css`

### Hero experience

- [Hero section](https://github.com/kklt-ai/mimocodeweb/blob/main/src/components/Hero.jsx): `src/components/Hero.jsx`
- [Navigation](https://github.com/kklt-ai/mimocodeweb/blob/main/src/components/NavBar.jsx): `src/components/NavBar.jsx`
- [Hero subtitle](https://github.com/kklt-ai/mimocodeweb/blob/main/src/components/HeroSubtitle.jsx): `src/components/HeroSubtitle.jsx`
- [Install command](https://github.com/kklt-ai/mimocodeweb/blob/main/src/components/TerminalCommand.jsx): `src/components/TerminalCommand.jsx`
- [Call-to-action buttons](https://github.com/kklt-ai/mimocodeweb/blob/main/src/components/CTAButtons.jsx): `src/components/CTAButtons.jsx`
- [Interface icons](https://github.com/kklt-ai/mimocodeweb/blob/main/src/components/icons.jsx): `src/components/icons.jsx`

### Feature content

- [Feature section](https://github.com/kklt-ai/mimocodeweb/blob/main/src/components/FeatureSection.jsx): `src/components/FeatureSection.jsx`
- [Feature card](https://github.com/kklt-ai/mimocodeweb/blob/main/src/components/FeatureCard.jsx): `src/components/FeatureCard.jsx`
- [Footer](https://github.com/kklt-ai/mimocodeweb/blob/main/src/components/Footer.jsx): `src/components/Footer.jsx`

### Interaction logic

- [Canvas mask effect](https://github.com/kklt-ai/mimocodeweb/blob/main/src/hooks/useHeroMask.js): `src/hooks/useHeroMask.js`
- [Subtitle typing](https://github.com/kklt-ai/mimocodeweb/blob/main/src/hooks/useHeroSubtitleTyping.js): `src/hooks/useHeroSubtitleTyping.js`
- [Copy interaction](https://github.com/kklt-ai/mimocodeweb/blob/main/src/hooks/useCopyCommand.js): `src/hooks/useCopyCommand.js`
- [Feature title typing](https://github.com/kklt-ai/mimocodeweb/blob/main/src/hooks/useFeatureTitleTyping.js): `src/hooks/useFeatureTitleTyping.js`

## Connections

- React entry → App state: renders (evidence: `src/main.jsx`)
- React entry → Page styling: loads (evidence: `src/main.jsx`)
- App state → Hero section: renders (evidence: `src/App.jsx`)
- App state → Feature section: renders (evidence: `src/App.jsx`)
- App state → Footer: renders (evidence: `src/App.jsx`)
- App state → Language content: reads language (evidence: `src/App.jsx`)
- Hero section → Navigation: renders (evidence: `src/components/Hero.jsx`)
- Hero section → Hero subtitle: renders (evidence: `src/components/Hero.jsx`)
- Hero section → Install command: renders (evidence: `src/components/Hero.jsx`)
- Hero section → Call-to-action buttons: renders (evidence: `src/components/Hero.jsx`)
- Hero section → Canvas mask effect: uses effect (evidence: `src/components/Hero.jsx`)
- Hero subtitle → Subtitle typing: uses typing (evidence: `src/components/HeroSubtitle.jsx`)
- Navigation → Interface icons: renders (evidence: `src/components/NavBar.jsx`)
- Call-to-action buttons → Interface icons: uses icons (evidence: `src/components/CTAButtons.jsx`)
- Install command → Copy interaction: uses copy (evidence: `src/components/TerminalCommand.jsx`)
- Install command → Interface icons: renders (evidence: `src/components/TerminalCommand.jsx`)
- Feature section → Feature title typing: uses typing (evidence: `src/components/FeatureSection.jsx`)
- Feature section → Language content: reads features (evidence: `src/components/FeatureSection.jsx`)
- Feature section → Feature card: renders (evidence: `src/components/FeatureSection.jsx`)
