-
Notifications
You must be signed in to change notification settings - Fork 4
Feature/rza 250002 #5
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
Conversation
|
folder naming convention are easy to distinguish no deep nesetd folder such as
|
recursivezero
left a comment
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.
check RC and fix all
| --- | ||
| import StateLayout from "@/layouts/mapLayouts/StateLayout"; | ||
| import stateData from "@/assets/map_assets/stateData.json"; | ||
| import "@/assets/styles/map_styles/stateStyles.css"; |
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 deep nested folder inside styles just use /styles/map.css
| const { title = "Indian Classical Dance" } = Astro.props; | ||
| --- | ||
|
|
||
| <html lang="en"> |
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 HTML body head tag again; use BaseLayput and adjust code accordingly
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 nested folder
| }); | ||
| </script> | ||
|
|
||
| <style> |
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.
extract the CSS
| "image": "himachal.jpg", | ||
| "svg": "HimachalPradesh.svg", | ||
| "wikiLink": "https://en.wikipedia.org/wiki/Himachal_Pradesh", | ||
| "official_website": "https://himachal.nic.in", |
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.
| "official_website": "https://himachal.nic.in", | |
| "official_website": "https://himachal.gov.in", |
| "image": "bihar.jpeg", | ||
| "svg": "Bihar.svg", | ||
| "wikiLink": "https://en.wikipedia.org/wiki/Bihar", | ||
| "official_website": "https://state.bihar.gov.in", |
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.
| "official_website": "https://state.bihar.gov.in", | |
| "official_website": "https://www.bihar.gov.in", |
| "image": "delhi.jpg", | ||
| "svg": "Delhi.svg", | ||
| "wikiLink": "https://en.wikipedia.org/wiki/Delhi", | ||
| "official_website": "https://delhi.gov.in", |
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 www
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.
ladakh is missing
| </div> | ||
|
|
||
| <script define:vars={{ statesData }}> | ||
| document.addEventListener("DOMContentLoaded", async () => { |
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.
use astro page load event astro:page-load
check this https://docs.astro.build/en/guides/view-transitions/#lifecycle-events
and use <ViewTransition/>
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.