p5.js-website icon indicating copy to clipboard operation
p5.js-website copied to clipboard

[main & 2.0] The left and right margins should match the column gutter width 40px

Open Nwakaego-Ego opened this issue 7 months ago • 4 comments

Most appropriate sections of the p5.js website?

Other (specify if possible)

What is your operating system?

Windows

Web browser and version

Chrome 146.0.7

Actual Behavior

The main content area has 32px left and right margins on some pages on both main and 2.0 branches, when it should be 40px. Verified on the Reference page. This is part of the ongoing CSS audit in #309.

Expected Behavior

The left and right margins of the main content area should be 40px to match the column gutter width across all pages.

Steps to reproduce

Go to p5js.org or beta.p5js.org Navigate through different pages on the site Open Chrome DevTools on each page Inspect the main content area

Would you like to work on the issue?

Open for anyone to work on

Nwakaego-Ego avatar Apr 02 '26 22:04 Nwakaego-Ego

Can I be assigned this issue?

lgilbuena avatar Apr 06 '26 03:04 lgilbuena

@lgilbuena We have assigned this issue to you!

doradocodes avatar Apr 06 '26 15:04 doradocodes

@lgilbuena We were testing your fix locally, and found an issue that was caused by your change:

If you can see, the hero image now has a small padding around it, when it should fill the entire width of the container. Image

We suggest taking a look at updating the padding for .hero-image in globals.scss.

Also, we saw that you created a 2.0 branch for this fix (thank you for doing that!). Be sure to update that branch with your latest changes as well. Thanks!

doradocodes avatar Apr 27 '26 16:04 doradocodes

Hi @lgilbuena, just checking in, @doradocodes left feedback on your PR on Apr 27 about the hero image padding issue. Are you still working on this? Let us know if you need any help or have any updates.

Nwakaego-Ego avatar Jun 19 '26 23:06 Nwakaego-Ego