Skip to content

fix(playground): resolve layout distortion and hero elements overlap#542

Merged
steam-bell-92 merged 1 commit into
steam-bell-92:mainfrom
nishtha-agarwal-211:fix/decorative-code-overlapping-474
May 21, 2026
Merged

fix(playground): resolve layout distortion and hero elements overlap#542
steam-bell-92 merged 1 commit into
steam-bell-92:mainfrom
nishtha-agarwal-211:fix/decorative-code-overlapping-474

Conversation

@nishtha-agarwal-211
Copy link
Copy Markdown
Contributor

Description

This PR resolves the layout distortion and hero element overlap issue in the Interactive Python Playground section on the homepage when the Playground category tab is active. (Closes #509)


The Problem

When switching to the Playground category:

  • The projects list becomes hidden, reducing the height of the main content wrapper.
  • .playground-section lacked:
    • its own stacking context
    • relative positioning
    • a solid background

Because of this, decorative elements from .hero-section (background grids, floating code snippets, canvas elements, etc.) overlapped into the playground editor and console output area, making the UI distorted and partially unreadable.


The Solution

Added the following styles to .playground-section in web-app/index.html:

position: relative;
z-index: 2;
background-color: var(--bg-color);

These changes ensure:

  • proper stacking behavior
  • hero decorations stay behind the playground
  • editor and console render correctly without overlap

Copilot AI review requested due to automatic review settings May 21, 2026 16:00
@vercel
Copy link
Copy Markdown

vercel Bot commented May 21, 2026

@nishtha-agarwal-211 is attempting to deploy a commit to the Anuj's projects Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aims to prevent decorative hero-layer elements from visually overlapping the Interactive Python Playground area by giving .playground-section its own stacking context and an opaque background.

Changes:

  • Added position: relative and z-index: 2 to .playground-section to ensure it layers above hero decorations.
  • Added background-color: var(--bg-color) to make the playground area opaque and avoid bleed-through/overlap artifacts.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread web-app/index.html
Comment on lines 33 to +38
.playground-section {
padding: 3rem 0 5rem;
animation: fadeIn 0.35s ease;
position: relative;
z-index: 2;
background-color: var(--bg-color);
@steam-bell-92
Copy link
Copy Markdown
Owner

@nishtha-agarwal-211 can you share ss

@nishtha-agarwal-211
Copy link
Copy Markdown
Contributor Author

Attached the screenshot after applying the fix.

Screenshot 2026-05-21 at 9 58 58 PM

@steam-bell-92 steam-bell-92 merged commit 8369178 into steam-bell-92:main May 21, 2026
6 of 8 checks passed
@github-actions
Copy link
Copy Markdown
Contributor

🎉 Thank you for your contribution!

Your Pull Request has been merged successfully.

We appreciate the time and effort you put into improving this project. Contributions like yours help the repository grow and stay useful for everyone.

If you'd like to contribute again, please check the open issues and make sure you are assigned before opening another Pull Request.

Thanks again for your support! 🙌

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🐛 [Bug]: Interactive Python Playground Should Appear Before FAQ Section

3 participants