Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comprehensive App Refactor: Hooks, Dark Theme, Bootstrap Styling, and Google Maps Integration #53

Open
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

thommy890
Copy link

This pull request introduces a comprehensive refactor of the "Where's Parking?" app, implementing modern React development practices and significantly enhancing both the app's functionality and its user experience. Below are the key improvements:

Refactoring to Modern React:

  • Transitioned class components to functional components, utilizing React hooks such as useState, useEffect, and useContext for state management and side effects. This change brings the app up to date with current React best practices, improving readability, maintainability, and performance.

Dark Theme Implementation:

  • Added a dark theme option, enhancing visual accessibility and user preference accommodation. The theme state is managed globally using the Context API, allowing for seamless theme switching across the app.

Bootstrap Integration:

  • Overhauled the app's styling using Bootstrap, ensuring a responsive and modern UI. This update includes the use of Bootstrap's grid system, components, and utilities to achieve a consistent and aesthetically pleasing design that adapts to various screen sizes.

Google Maps API Integration:

  • Incorporated live Google Maps to display parking garage locations, using markers to denote each garage. A hover-over interaction on garage cards now highlights the corresponding marker on the map, displaying an InfoWindow with details about available parking spaces. This feature enhances the app's interactivity and provides users with useful, real-time information in an engaging manner.

Async/Await for Asynchronous Operations:

  • Refactored existing asynchronous data fetching to use async/await syntax, improving code readability and error handling. This update modernizes the app's approach to API calls and data processing.

These improvements aim to enhance the overall user experience, making the "Where's Parking?" app more accessible, interactive, and enjoyable to use. The introduction of modern development practices also sets a solid foundation for future features and optimizations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant