Skip to content

fix: UI Improvement in /devcard-demo - Fix Return Home button overlap#182

Open
anuragbraveboy-sudo wants to merge 3 commits into
Dev-Card:mainfrom
anuragbraveboy-sudo:fix/return-home-button-overlap
Open

fix: UI Improvement in /devcard-demo - Fix Return Home button overlap#182
anuragbraveboy-sudo wants to merge 3 commits into
Dev-Card:mainfrom
anuragbraveboy-sudo:fix/return-home-button-overlap

Conversation

@anuragbraveboy-sudo
Copy link
Copy Markdown

@anuragbraveboy-sudo anuragbraveboy-sudo commented May 19, 2026

Fixes #121

Problem

The /devcard-demo route did not exist, which meant the Return Home
The button had no proper page structure — causing it to overlap with
main content, especially on smaller screen sizes.

Root Cause

No /devcard-demo page existed in the codebase. The button had no
parent layout constraints, leading to overlap and broken UI.

Solution

✅ Created the missing /devcard-demo route with +page.svelte
✅ Used flexbox layout (flex-direction: column) so Return Home
button stays in normal document flow — no overlap possible
✅ Added top-bar div with proper padding and border separator
✅ Dark background (#0f1222) matching existing DevCard styling
✅ Responsive media queries for all breakpoints:

  • 1024px — adjusted content padding
  • 768px — reduced top-bar and content padding
  • 480px — smaller button font and padding for mobile

Screenshots

Before Fix:

  • /devcard-demo route did not exist — button had no proper styling or layout
Before Fix

After Fix:

  • Return Home button clearly visible at top ✅
  • Zero overlap with main content ✅
  • Page renders correctly at /devcard-demo
After Fix 1 After Fix 2 After Fix 3

Testing

  • pnpm lint → web app has no lint script (expected per CONTRIBUTING.md)
  • pnpm test → web app has no test script (expected per CONTRIBUTING.md)
  • Tested on desktop, tablet, and mobile viewports ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

design gssoc:approved Required label for every approved PR. Gives the base +50 points and enables contribution tracking.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

UI IMPROVEMENT IN /devcard-demo

2 participants