-
Notifications
You must be signed in to change notification settings - Fork 4
feature/RZA-250002: Added India map component #4
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
feature/RZA-250002: Added India map component #4
Conversation
|
Rename PR Title and starts with branch name and a information about what is in this PR included |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add id state_id official_website and isActive Boolean ( true default value) key in each object
and sort it by name
src/assets/styles/map_styles/map.css
Outdated
| } | ||
|
|
||
| body { | ||
| font-family: Arial, sans-serif; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no body style needed
| @@ -0,0 +1,102 @@ | |||
| #state-popup { | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no id based selector, use classes
Added India-Map Component
Description
This pull request adds improvements to the India map project in Astro, including updates to the CSS for better responsiveness, enhancements to the SVG map layout, and integration of JSON data for displaying state-specific folk dances. The changes aim to provide a smoother user experience and better visuals across devices.
Fixes #14 (Improve SVG and image layout responsiveness)
Current Issue
Facing problem in dynamic routing from the pop-up to the a specific state page.
Example : A state with a single word like 'Goa', routing is efficient but for a state with two words like "Andhra Pradesh" , routing is inefficient as the space between the words is not processed properly.
Current Fix
Using a
slug fieldin the JSON file with the state's name in lowercase and no spaces.Example- Andhra Pradesh ⟶ andhrapradesh
How Has This Been Tested?
The changes have been tested using the following methods:
Test Configuration:
Checklist
Additional Notes
These changes ensure the map project aligns with the goals of a visually appealing, responsive, and content-rich web experience for showcasing Indian folk dances.