This is a React project that displays a list of users fetched from an API in a dashboard format. The dashboard shows user information filtered by name, email, and website. Additionally, a GeoMap is included, where user locations are plotted based on their geographical coordinates. When hovering over a point on the map, a tooltip shows the name of the user.
UserDashboard/ │ ├── public/ │ └── index.html // Entry point for the React app ├── src/ │ ├── components/ │ │ ├── UserCard.js // Displays filtered user data in cards │ │ ├── UserTable.js // Table for displaying user info by columns │ │ ├── GeoMap.js // Displays user locations on a map grid │ │ └── UserDashboard.js // Main dashboard component │ ├── App.js // Main application entry │ ├── index.js // React entry point │ └── App.css // Global styles └── README.md // Project documentation
To run this project locally, follow the steps below:
Once the project is running:
The dashboard will display three cards, each showing filtered user information by Name, Email, and Website, limited to the top 5 users. In the GeoMap, you can hover over a user’s point to see their name in a tooltip.
By default, user data is fetched from the placeholder API: https://jsonplaceholder.typicode.com/users. To change the source:
The design is powered by Tailwind CSS. You can easily modify padding, colors, font sizes, and other styles using Tailwind’s utility classes in the respective components (UserDashboard.js, GeoMap.js, etc.).
This project is open-source and available under the MIT License.