[WIP] General issue for HackerspaceMumbai/blog #24
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix About Section Mobile Layout Issue (#10)
Problem
On mobile and tablet devices, the stats grid boxes could potentially appear above the "About Us" heading, creating an incorrect visual hierarchy as shown in the issue screenshot.
Root Cause
The layout used a simple
grid
system that relied on source order. While the HTML structure was correct, there was no explicit ordering to guarantee the correct visual sequence across all viewport sizes and rendering contexts.Solution
Applied explicit flexbox ordering to ensure consistent layout across all devices:
Changed container from grid-only to flex-first approach:
flex flex-col
(vertical stack)lg:grid lg:grid-cols-2
(two-column layout)Added explicit order classes:
order-1
order-2
order-3
This ensures the correct rendering order is maintained regardless of browser quirks or CSS specificity issues.
Changes Made
src/components/AboutSection.astro
:grid grid-cols-1 lg:grid-cols-2
toflex flex-col lg:grid lg:grid-cols-2
order-1
to SectionHeadingorder-2
to text content divorder-3
to stats grid divitems-start
tolg:items-start
for desktop-only alignment.gitignore
to excludepackage-lock.json
(project uses pnpm)Testing
Verified correct layout across multiple viewport sizes:
✅ Mobile (iPhone 12 Pro - 390x844px)
✅ Tablet (iPad - 768x1024px)
✅ Desktop (1440x900px)
Build Verification
Accessibility & Semantic HTML
Browser Compatibility
Status: ✅ Fixed and verified across all target devices
Closes #10
Original prompt
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.