[UX][Events] Hacktoberfest Prep 2024 page has overlapping "Event Details" text and badge overflow on tablet/mobile
Description
On the Hacktoberfest Prep 2024: Extending Meshery Models event page, two combined layout issues occur in the "Earn a Badge" section:
Overlapping Text: The "Event Details" heading sits directly on top of the "Earn a Hacktoberfest Contributor badge by contributing to Layer5 projects during this Hacktoberfest." paragraph below "Earn a Badge", making both unreadable. Tablet & Mobile Responsiveness / Badge Overflow: On tablet and mobile viewports (e.g., iPad Pro 13 at 1032 x 1376), the section fails to wrap or resize responsively and the Hacktoberfest badge image overflows and gets clipped off the right edge of the container.
Root Cause (src/collections/events/2024/hacktoberfest-2024/index.mdx, lines 21–30):
Negative vertical margins (marginBottom: '-230px' on the flex container at line 21 and marginBottom: '-20px' on the inner column
Event Details
(line 30) upward over thetext. Fixed dimensions inside a non-wrapping display: 'flex' row — width: '800px' on
(line 24), whiteSpace: 'nowrap' on "Earn a Badge" (line 23), and width: '250px', flexShrink: '0', marginLeft: '80px', marginTop: '-50px' on (line 28) — push the badge past narrow/tablet viewport widths.
Expected Behavior
"Event Details" and its list items should render cleanly below the "Earn a Badge" section with proper spacing and no overlapping text. On tablet and mobile screens, the text and Hacktoberfest badge should wrap/stack responsively and remain completely visible inside the viewport without horizontal clipping or overflow.
Screenshots
https://github.com/user-attachments/assets/90c39c93-84cc-4c84-8a4d-ae9539471842
Environment:
- Host OS:macOS
- Browser:Chrome
Contributor Resources and Handbook
The layer5.io website uses Gatsby, React, and GitHub Pages. Site content is found under the master branch.
- 📚 See contributing instructions.
- 🎨 Wireframes and designs for Layer5 site in Figma (open invite)
- 🙋🏾🙋🏼 Questions: Discussion Forum and Community Slack.
Join the Layer5 Community by submitting your community member form.
can you assign this issue to me,i would like to work upon it?
hey @winkletinkle @PARTH-TUSSLE @ritzorama 👋 could you please assign this issue to me , I would love to work on this issue
Hi @dipansumishra9797-sudo, assigned to you. Looking forward to your PR!
Opened PR #8404 with a comprehensive fix: removed the negative margins causing the text collision with Event Details, made the badge callout flex layout wrap responsively with fluid text sizing and scaling badge image (maxWidth: 220px, height: auto), and added accessible alt text. Ready for review!