Skip to content

Refactor Hero component background div for responsiveness#590

Merged
Aditya948351 merged 1 commit into
devpathindcommunity-india:masterfrom
nancy-verma780:fix-hero-overlap
Jun 11, 2026
Merged

Refactor Hero component background div for responsiveness#590
Aditya948351 merged 1 commit into
devpathindcommunity-india:masterfrom
nancy-verma780:fix-hero-overlap

Conversation

@nancy-verma780

Copy link
Copy Markdown
Contributor

Target Issue

Closes #316

Description

This PR resolves the mobile UI bug where the hero section content (heading title, subtitle description, and statistics metrics) was visually obscured and overlapped by the large 3D background graphic on smaller screens and mobile viewports.

Changes Made

  • Updated the HeaderScene 3D wrapper container div with responsive Tailwind CSS breakpoints (md:).
  • Retained full-screen layout parity for desktop layouts (md:inset-0 md:opacity-80 md:h-full).
  • Shifted the 3D graphic canvas safely downward (top-[35%]) and constrained its viewport scaling properties (h-[45vh]) specifically on mobile viewports under 768px.
  • Reduced the mobile canvas transparency layers (opacity-30) to elevate contrast and maximize text readability against the changing themes.

Verification Steps

  1. Opened the local build inside the Chrome responsive design inspector tool.
  2. Simulated viewports at a narrow breakpoint (~400px width).
  3. Verified that the main hero content, stats, and call-to-action buttons sit perfectly clear of any overlapping background graphical elements.

@github-actions github-actions Bot added gssoc26 This is a official GirlScript Summer of Code label. level:beginner Beginner level issues type:bug type:design labels Jun 11, 2026
@Aditya948351 Aditya948351 reopened this Jun 11, 2026
@Aditya948351 Aditya948351 added the gssoc:approved give 50+ base points label Jun 11, 2026
@Aditya948351 Aditya948351 merged commit 34c8e74 into devpathindcommunity-india:master Jun 11, 2026
3 of 6 checks passed
@nancy-verma780 nancy-verma780 deleted the fix-hero-overlap branch June 12, 2026 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gssoc:approved give 50+ base points gssoc26 This is a official GirlScript Summer of Code label. level:beginner Beginner level issues type:bug type:design

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Mobile UI Bug] Hero section content overlaps with 3D background graphic on smaller screens

2 participants