fix(playground): resolve layout distortion and hero elements overlap#542
Conversation
|
@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. |
There was a problem hiding this comment.
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: relativeandz-index: 2to.playground-sectionto 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.
| .playground-section { | ||
| padding: 3rem 0 5rem; | ||
| animation: fadeIn 0.35s ease; | ||
| position: relative; | ||
| z-index: 2; | ||
| background-color: var(--bg-color); |
|
@nishtha-agarwal-211 can you share ss |
|
🎉 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! 🙌 |

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:
.playground-sectionlacked: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-sectioninweb-app/index.html:These changes ensure: