This project displays a list of users fetched from an external API with unique robot avatars for each user. The data includes each user's name, username, and email, accompanied by a fun robot avatar based on the user ID. The page layout is responsive and visually clean, making it easy to view user information.
Check out the live version of the project here: Live Demo Link
- User Data: Fetches user data from JSONPlaceholder.
- Robot Avatars: Displays unique avatars generated by RoboHash for each user.
- Responsive Layout: The page layout adjusts to fit different screen sizes, making it accessible on mobile, tablet, and desktop devices.
- HTML
- CSS
- JavaScript (Fetch API)
- JSONPlaceholder API
- RoboHash API
To get a local copy up and running, follow these steps.
- A modern web browser (Chrome, Firefox, Safari, etc.)
- An internet connection to access the JSONPlaceholder and RoboHash APIs
-
Clone the repository:
git clone https://github.com/BhaskarDeb2000/BCHPersonsProject
-
Navigate to the project folder:
cd BCHPersonsProject -
Open the
index.htmlfile in a web browser to view the project locally:open index.html
- Open the page, and the user information will load automatically.
- Each user card includes:
- Name
- Username
- Unique robot avatar
This project can be easily deployed on platforms like GitHub Pages, Netlify, or Vercel:
- GitHub Pages: Push the project to a GitHub repository and enable GitHub Pages in the repository settings.
- Netlify: Drag and drop the project folder into Netlify or connect your GitHub repository for continuous deployment.
- Vercel: Use the Vercel CLI to deploy directly from your local project directory.
.
├── index.html # The main HTML file
├── style.css # CSS file for styling the page
└── script.js # JavaScript file for fetching data and dynamically rendering user cards
- User Data: https://jsonplaceholder.typicode.com/users
- Robot Avatars: https://robohash.org/ (e.g.,
https://robohash.org/1for user ID 1)
- Display all users from JSONPlaceholder in a card format on the webpage.
- Each user card includes the user's name, username, email, and a unique robot avatar.
- Data loads automatically when the page loads.
- The webpage is hosted on a server and accessible to the public.
- Responsive, clean layout for easy viewing.
This project is open-source and available under the MIT License.
- JSONPlaceholder for providing free, sample user data.
- RoboHash for generating unique robot avatars.