How vladward/pokemon works
PokeWiki is a client-side Pokémon portal whose visible product is a modular home page, surrounded by responsive navigation and a persistent theme control. The runtime entry renders App; App wraps Home in the theme provider and shared layout. The home page presents abilities, elements, evolution, and Pokémon League content. Supporting layers include theme state, responsive breakpoints, and reusable UI. Relationships are grounded in the supplied source index and excerpts or documented in the README; unsampled section internals and data wiring are not inferred.
Main entry points: Home.tsx Home Page · Header.tsx Header · App.tsx App · Layout.tsx Layout
Components 21
Application Shell
- React Entry
src/index.tsx - App
src/app/App.tsx - Theme Provider
src/app/providers/ThemeProvider/ThemeProvider.tsx - Layout
src/widgets/Layout/ui/Layout.tsx
Home Content
- Home Page
src/pages/Home/Home.tsx - Abilities
src/pages/Home/ui/AbilitiesSection/AbilitiesSection.tsx - Elements
src/pages/Home/ui/ElementsSection/ElementsPreview.tsx - Evolution
src/pages/Home/ui/EvolutionSection/EvolutionSection.tsx - Pokémon League
src/pages/Home/ui/LeagueSection/LeagueSection.tsx - Element Data
src/pages/Home/model/elementsData.tsx
Navigation
- Header
src/widgets/Header/ui/Header/Header.tsx - Mobile Navigation
src/widgets/Header/ui/MobileNavigation/MobileNavigation.tsx - Navigation Links
src/entities/NavLinks/NavLinks.tsx - Footer
src/widgets/Footer/ui/Footer.tsx - Theme Switcher
src/features/ThemeSwitcher/ThemeSwitcher.tsx
Shared Runtime
- Theme Hook
src/shared/lib/theme/useTheme.ts - Theme Context
src/shared/lib/theme/ThemeContext.ts - Breakpoint Hook
src/shared/lib/hooks/useBreakpoints.ts - Infinite Slider
src/shared/ui/InfiniteSlider/InfiniteSlider.tsx - UI Primitives
src/shared/ui
Other components
- Browser
Connections 24
- Browser → React Entry: loads app
- React Entry → App: renders
src/index.tsx - App → Theme Provider: wraps in
src/app/App.tsx - App → Layout: wraps in
src/app/App.tsx - App → Home Page: renders
src/app/App.tsx - Home Page → Abilities: includes
README.md - Home Page → Elements: includes
README.md - Home Page → Evolution: includes
README.md - Home Page → Pokémon League: includes
README.md - Home Page → Element Data: uses
- Layout → Header: renders
src/widgets/Layout/ui/Layout.tsx - Layout → Footer: renders
src/widgets/Layout/ui/Layout.tsx - Header → Mobile Navigation: renders
src/widgets/Header/ui/Header/Header.tsx - Header → Navigation Links: renders
src/widgets/Header/index.ts - Header → Theme Switcher: renders
src/widgets/Header/ui/Header/Header.tsx - Footer → Navigation Links: renders
src/widgets/Footer/ui/Footer.tsx - Footer → Breakpoint Hook: reads
src/widgets/Footer/ui/Footer.tsx - Header → Breakpoint Hook: reads
src/widgets/Header/ui/Header/Header.tsx - Theme Switcher → Theme Hook: toggles via
src/features/ThemeSwitcher/ThemeSwitcher.tsx - Theme Hook → Theme Context: reads
src/shared/lib/theme/useTheme.ts - Theme Provider → Theme Context: configures
src/app/providers/ThemeProvider/ThemeProvider.tsx - Home Page → UI Primitives: uses
- Elements → UI Primitives: uses
src/pages/Home/ui/ElementsSection/ElementsPreview.tsx - Infinite Slider → UI Primitives: exports through
src/shared/ui/InfiniteSlider/InfiniteSlider.tsx