Skip to content

docs: improve mobile responsiveness of landing page#261

Merged
sonukapoor merged 1 commit intoOWASP:mainfrom
mamgad:docs/mobile-responsive-fixes
Apr 30, 2026
Merged

docs: improve mobile responsiveness of landing page#261
sonukapoor merged 1 commit intoOWASP:mainfrom
mamgad:docs/mobile-responsive-fixes

Conversation

@mamgad
Copy link
Copy Markdown
Contributor

@mamgad mamgad commented Apr 30, 2026

Summary

  • Fix uneven .pillars layout (switched flex-wrap to grid; stacks cleanly
    under 700px)
  • Scope footer flex layout to a new .footer-links class so it no longer
  • Wrap long command/code blocks (.command-box pre) and reserve right-padding
    so the copy button never overlays text — fixes the badge markdown card on
    mobile
  • #links (Case Studies and Guides) grid uses auto-fit so the 5 cards lay
    out as 3+2 on desktop and stack on mobile, instead of leaving an orphan card
  • New <480px breakpoint: full-width stacked CTA buttons, smaller hero logo,
    tighter card/code padding
  • Equal-width preview tabs on small screens; long link text wraps inside cards

Test plan

  • Open docs/index.html at viewport widths 320, 375, 414, 700, 980, and
    1200px and verify no horizontal page scroll, uniform card sizing per row, and
    no text under the copy button
  • Confirm the "Add a badge to your project" code wraps cleanly across
    multiple lines on mobile and copies the original single-line markdown
  • Verify the footer paragraphs render normally (no extra gaps between
    words/links) and the bullet-separated row still shows separators

- Fix uneven `.pillars` wrapping by switching to a CSS grid with explicit columns; stacks to 1 column under 700px.
- Scope footer flex layout to a new `.footer-links` class so it no longer inserts gaps between words/links in non-list paragraphs.
- Wrap long command/code blocks (`.command-box pre`) and reserve right-padding so the copy button never overlays text.
- Switch `#links` (Case Studies and Guides) grid to `auto-fit`, so the 5 cards lay out as 3+2 on desktop and stack cleanly on mobile.
- Add `<480px` breakpoint: full-width stacked CTA buttons, smaller hero logo pair, tighter card/code padding.
- Equal-width preview tabs on small screens; allow long link text to wrap inside cards.
@sonukapoor sonukapoor merged commit 29ae44d into OWASP:main Apr 30, 2026
5 checks passed
@sonukapoor
Copy link
Copy Markdown
Collaborator

Thank you for your contribution @mamgad

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants