The World Clock App is a web application that displays a 4x4 grid of flags and country names. Each country button updates the clock time to match the corresponding timezone. The application features a responsive design with an interactive world map that highlights the timezone of the selected country. This project is built using React.js, Tailwind CSS, and deployed on GitHub Pages.
- Responsive Design: Displays a 4x4 grid of flags and country names with an interactive world map.
- Timezone Highlighting: Hover over flags to highlight the corresponding timezone on the map.
- Clock Display: Shows the current time for the selected timezone.
- Deployment: Hosted on GitHub Pages.
- React.js: Frontend library for building user interfaces.
- Tailwind CSS: Utility-first CSS framework for styling.
- Leaflet and Mapbox GL: Libraries for interactive maps.
- GitHub Pages: Hosting platform for deploying static sites.
src/
- Contains all the source code for the application.components/
- React components for various parts of the app.App.js
- Main application component.index.js
- Entry point for React.App.css
- Styles for the application.
public/
- Public assets such as the HTML file and static assets.package.json
- Project metadata and dependencies..github/
- GitHub workflows and configurations.workflows/
- Contains GitHub Actions workflows for CI/CD.
Ensure you have the following installed on your local machine:
-
Clone the Repository:
git clone https://github.com/goutamhegde002/World-Clock-App.git cd World-Clock-App
-
Install Dependencies:
npm install
-
Start the Development Server:
npm start
Open http://localhost:3000 in your browser to view the application.
Interact with the Grid: Click on any flag in the 4x4 grid to update the clock with the corresponding timezone.
Hover Over Flags: Hovering over a flag highlights the timezone on the world map and updates the clock to display the current time for that timezone.
The project is deployed using GitHub Pages. To deploy your changes:
-
Build the Project:
npm run build
-
Deploy to GitHub Pages:
npm run deploy
Ensure that you have set up the gh-pages branch and configured your GitHub Actions workflow correctly.
This project is licensed under the Apache License - see the LICENSE file for details.
React.js - Library for building the user interface.
Tailwind CSS - Utility-first CSS framework.
Leaflet and Mapbox GL - Libraries for interactive maps.