Learning about API
This project uses the Star Wars API (SWAPI) to display information about planets and characters from the Star Wars universe.
- 🌌 Dual Data Types - Switch between exploring planets and characters
- 📊 Displays multiple data points from SWAPI:
Planets (8 data points):
- Climate
- Terrain
- Population
- Diameter
- Gravity
- Orbital Period
- Rotation Period
- Surface Water Percentage
Characters (7 data points):
- Height
- Mass
- Hair Color
- Skin Color
- Eye Color
- Birth Year
- Gender
- 🎲 Random generators for both planets and characters
- 🎨 Beautiful Star Wars-themed UI with animated starfield background
- 📱 Fully responsive design
- ⚡ Fast and interactive with tab navigation
- Open
index.htmlin your web browser - Choose between "Planets" or "Characters" tabs
- Enter an ID or click "Random" button
- Click the explore button to fetch and display the data
- Planets:
https://www.swapi.tech/api/planets/:id - People:
https://www.swapi.tech/api/people/:id
