Skip to content

Conversation

@AdityaSingh-7
Copy link
Contributor

@AdityaSingh-7 AdityaSingh-7 commented Jan 12, 2025

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 field in 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:

  • Verified responsive design across different screen sizes (mobile, tablet, desktop)
  • Ensured SVG map renders correctly and is interactive
  • Tested integration of JSON data for state-specific dance information
  • Checked compatibility on Chrome, Firefox, and Safari
  • Performed accessibility checks using Lighthouse

Test Configuration:

  • Browser(s) tested: Chrome, Firefox, Safari
  • Device(s) tested: Desktop (macOS, Windows), Mobile (iOS, Android)

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

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.

@recursivezero
Copy link
Owner

Rename PR Title and starts with branch name and a information about what is in this PR included

@AdityaSingh-7 AdityaSingh-7 changed the title added india map component feature/RZA-250002: Added India map component Jan 12, 2025
@AdityaSingh-7 AdityaSingh-7 marked this pull request as ready for review January 12, 2025 11:00
Copy link
Owner

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

}

body {
font-family: Arial, sans-serif;
Copy link
Owner

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 {
Copy link
Owner

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

@recursivezero recursivezero linked an issue Jan 13, 2025 that may be closed by this pull request
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.

❇️ RZA-250002: india map integration

2 participants