layer5 icon indicating copy to clipboard operation
layer5 copied to clipboard

[UX][Events] Hacktoberfest Prep 2024 page has overlapping "Event Details" text and badge overflow on tablet/mobile

Open tejaswiverma121-byte opened this issue 3 weeks ago • 4 comments

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

at line 22) pull

Event Details

(line 30) upward over the

text. 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.

Join the Layer5 Community by submitting your community member form.

tejaswiverma121-byte avatar Nov 12 '26 16:11 tejaswiverma121-byte

can you assign this issue to me,i would like to work upon it?

tusharkumar-coder avatar Nov 12 '26 16:11 tusharkumar-coder

hey @winkletinkle @PARTH-TUSSLE @ritzorama 👋 could you please assign this issue to me , I would love to work on this issue

dipansumishra9797-sudo avatar Nov 13 '26 06:11 dipansumishra9797-sudo

Hi @dipansumishra9797-sudo, assigned to you. Looking forward to your PR!

winkletinkle avatar Nov 13 '26 06:11 winkletinkle

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!

ayushbuilds-code avatar Nov 13 '26 16:11 ayushbuilds-code