How pompomiiiii/solar-explorer works
Solar Explorer is a React-based 3D solar-system explorer. Visitors move among the Sun and eight planets using scroll, touch, keyboard, or navigation dots; the selected body drives both the scene camera and the animated information panel. The scene combines animated celestial bodies, stars, and bloom, while planet data supplies display content and procedural appearance. The README also documents responsive layouts and optional GLB models. Relationships below follow excerpts and README claims; unsampled styling and model-loading details are not inferred beyond that evidence.
Main entry points: SolarSystem.jsx Scene Composer · App.jsx App Orchestrator · Planet.jsx Planet Renderer · Navigation.jsx Body Selector
Components 15
Explorer UI
- App Orchestrator
solar-system/src/App.jsx - Responsive Layout
solar-system/src/App.css - Planet Info
solar-system/src/components/PlanetInfo.jsx - Scroll Progress
solar-system/src/components/ScrollHint.jsx - React Entry
solar-system/src/main.jsx
Body Navigation
- Body Selector
solar-system/src/components/Navigation.jsx - Input Navigation
solar-system/src/hooks/useScrollNavigation.js
3D Scene
- Scene Composer
solar-system/src/components/SolarSystem.jsx - Camera Transitions
solar-system/src/components/CameraController.jsx - Planet Renderer
solar-system/src/components/Planet.jsx - Sun Renderer
solar-system/src/components/Sun.jsx - Starfield
solar-system/src/components/Stars.jsx
Planet Content
- Body Data
solar-system/src/data/planets.js - Optional GLB Models
solar-system/public/GLB
Other components
- Visitor
Connections 24
- Visitor → Input Navigation: scrolls or keys
solar-system/src/hooks/useScrollNavigation.js - Visitor → Body Selector: chooses body
solar-system/src/components/Navigation.jsx - React Entry → App Orchestrator: renders
solar-system/src/main.jsx - App Orchestrator → Input Navigation: gets selection
solar-system/src/App.jsx - App Orchestrator → Scene Composer: renders
solar-system/src/App.jsx - App Orchestrator → Planet Info: renders
solar-system/src/App.jsx - App Orchestrator → Body Selector: renders
solar-system/src/App.jsx - App Orchestrator → Scroll Progress: renders
solar-system/src/App.jsx - App Orchestrator → Responsive Layout: imports styles
solar-system/src/App.jsx - Input Navigation → App Orchestrator: updates index
solar-system/src/App.jsx - Body Selector → Body Data: reads body labels
solar-system/src/components/Navigation.jsx - Body Selector → Input Navigation: requests selection
solar-system/src/App.jsx - Planet Info → Body Data: reads descriptions and stats
solar-system/src/components/PlanetInfo.jsx - Scene Composer → Starfield: renders
solar-system/src/components/SolarSystem.jsx - Scene Composer → Sun Renderer: renders
solar-system/src/components/SolarSystem.jsx - Scene Composer → Planet Renderer: renders bodies
solar-system/src/components/SolarSystem.jsx - Scene Composer → Camera Transitions: renders controller
solar-system/src/components/SolarSystem.jsx - Scene Composer → Body Data: maps planet data
solar-system/src/components/SolarSystem.jsx - Planet Renderer → Scene Composer: registers position
solar-system/src/components/Planet.jsx - Sun Renderer → Scene Composer: registers position
solar-system/src/components/Sun.jsx - Camera Transitions → Scene Composer: requests target position
solar-system/src/components/SolarSystem.jsx - Scene Composer → Camera Transitions: passes active index
solar-system/src/components/SolarSystem.jsx - Planet Renderer → Body Data: uses body appearance
solar-system/src/components/SolarSystem.jsx - Planet Renderer → Optional GLB Models: optionally loads GLB