Skip to content

fix: add padding to hero CTA buttons on mobile#362

Merged
brendanjryan merged 1 commit into
mainfrom
fix/mobile-cta-padding
Mar 18, 2026
Merged

fix: add padding to hero CTA buttons on mobile#362
brendanjryan merged 1 commit into
mainfrom
fix/mobile-cta-padding

Conversation

@brendanjryan

Copy link
Copy Markdown
Collaborator

Adds responsive padding so the hero CTA buttons don't sit edge-to-edge on mobile.

  • Container: px-4 sm:px-0 for side breathing room
  • Button padding: px-3 sm:px-5
  • Gap: gap-3 sm:gap-4

@vercel

vercel Bot commented Mar 18, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
mpp Ready Ready Preview, Comment Mar 18, 2026 5:19am

Request Review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b2bbc49127

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

<div className="hero-right">
<Tagline />
<div className="flex items-center gap-4 mt-3 landing-ctas">
<div className="flex items-center gap-3 sm:gap-4 mt-3 px-4 sm:px-0 landing-ctas">

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Keep the CTA mobile padding through the 768px layout switch

LandingPage.tsx treats <=767px as the mobile hero layout (@media (max-width: 767px) and @media (min-width: 768px) in the same file), but this new sm: class drops the CTA padding at Tailwind’s 640px breakpoint. On 640–767px screens—such as small tablets and foldables in portrait—the hero is still stacked like mobile while the CTA row has already switched back to the desktop spacing, so the buttons sit flush to the edges again. Matching this breakpoint to the existing 768px mobile/tablet split would make the fix apply consistently.

Useful? React with 👍 / 👎.

@brendanjryan brendanjryan merged commit 3eb9916 into main Mar 18, 2026
8 checks passed
@brendanjryan brendanjryan deleted the fix/mobile-cta-padding branch March 18, 2026 13:22
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.

1 participant