The Network Status Monitor is a simple React.js application that displays the current network or bandwidth quality status using a visual indicator. The status can be one of the following:
- Offline: Represented by a red indicator.
- Poor: Represented by a yellow indicator.
- Good: Represented by a green indicator.
- Best: Represented by a blue indicator.
The status is displayed in a header strip, providing a quick and easy way to monitor the network quality.
- Real-time Network Status: Automatically detects and updates the network status.
- Responsive UI: The header strip with the network status indicator is fully responsive and styled using Tailwind CSS.
- Scalable Codebase: The project is organized into modular components for easy maintenance and scalability.
src/
│
├── components/
│ ├── Header/
│ │ ├── Header.tsx
│ │ ├── StatusIndicator.tsx
│ │ └── index.ts
│ └── NetworkStatus/
│ ├── NetworkStatus.tsx
│ └── index.ts
│
├── styles/
│ └── index.css
│
└── app
-
Clone the repository:
git clone https://github.com/jacksonkasi1/Network-Status-Monitor.git cd Network-Status-Monitor
-
Install dependencies:
npm install
-
Start the development server:
npm start
The application will be running at http://localhost:3000
.
Once the application is running, the header strip at the top of the page will display the current network status. The color and label of the indicator will change based on the network quality:
- Red: Offline
- Yellow: Poor
- Green: Good
- Blue: Best
The status is dynamically updated based on changes in the network connection.
You can easily customize the appearance of the network status indicators by modifying the Tailwind CSS classes in the StatusIndicator.tsx
component.
- React.js
- Tailwind CSS
- clsx (for conditional class management)
This project is licensed under the MIT License. See the LICENSE file for more details.
Contributions are welcome! Please open an issue or submit a pull request for any features or improvements you'd like to see.
Thanks to the creators of React and Tailwind CSS for providing awesome tools for web development.