Skip to content

fix(site): pricing page mobile above-fold visibility#7764

Merged
mhartington merged 2 commits intomainfrom
fix/pricing-mobile-above-fold
Apr 2, 2026
Merged

fix(site): pricing page mobile above-fold visibility#7764
mhartington merged 2 commits intomainfrom
fix/pricing-mobile-above-fold

Conversation

@mhessdev
Copy link
Copy Markdown
Contributor

@mhessdev mhessdev commented Apr 2, 2026

Summary

  • Reduces pricing hero H1 size (text-5xltext-3xl), subtitle size, section padding, and element gaps on mobile breakpoints
  • Ensures at least one pricing plan card is visible above the fold on mobile devices
  • Desktop layout is completely unchanged — all reductions use md: prefixed classes to preserve original values

Context

SEO audit item #12: "No pricing info visible above fold on mobile — H1 consumes entire viewport." This impacts mobile UX, conversion rate, and Google's mobile-first indexing.

Test plan

  • Verify pricing page desktop layout is unchanged
  • Verify pricing page mobile view shows at least one plan card above the fold
  • Check Vercel preview on a real mobile device or Chrome DevTools mobile emulation

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Style
    • Optimized pricing page layout for smaller screens by reducing vertical spacing in hero and pricing sections.
    • Adjusted responsive typography: smaller headline and description sizes on narrow viewports while preserving larger sizes on medium+ displays.
    • Maintains visual consistency across breakpoints with tighter gaps and reduced padding on mobile for improved readability.

On mobile, the H1 and hero padding consumed the entire viewport,
pushing all pricing plans below the fold. Reduces heading size,
spacing, and padding at mobile breakpoints so at least one plan
card is visible without scrolling. Desktop layout unchanged.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 2, 2026

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

Project Deployment Actions Updated (UTC)
blog Ready Ready Preview, Comment Apr 2, 2026 4:33pm
docs Ready Ready Preview, Comment Apr 2, 2026 4:33pm
eclipse Ready Ready Preview, Comment Apr 2, 2026 4:33pm
site Ready Ready Preview, Comment Apr 2, 2026 4:33pm

Request Review

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Apr 2, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 41a98dd7-a83b-4ded-a8fa-3166ada98196

📥 Commits

Reviewing files that changed from the base of the PR and between dc96842 and 06ea14e.

📒 Files selected for processing (1)
  • apps/site/src/app/pricing/pricing-hero-plans.tsx
🚧 Files skipped from review as they are similar to previous changes (1)
  • apps/site/src/app/pricing/pricing-hero-plans.tsx

Walkthrough

Adjusted responsive spacing and typography in the pricing hero and pricing sections: reduced small-screen hero padding, gap, title and description sizes, and lowered small-screen pricing section padding while preserving md breakpoint values.

Changes

Cohort / File(s) Summary
Responsive Layout & Typography
apps/site/src/app/pricing/pricing-hero-plans.tsx
Reduced small-screen hero padding (pb-16pb-8, pt-28pt-16), decreased content gap (gap-6gap-3), scaled down title and description font sizes for mobile (text-5xltext-3xl, text-xltext-base), and reduced small-screen pricing section padding (py-12py-6) while keeping md: values unchanged.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and specifically describes the main change: improving mobile above-fold visibility on the pricing page through responsive spacing and typography adjustments.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@argos-ci
Copy link
Copy Markdown

argos-ci bot commented Apr 2, 2026

The latest updates on your projects. Learn more about Argos notifications ↗︎

Build Status Details Updated (UTC)
default (Inspect) ✅ No changes detected - Apr 2, 2026, 4:39 PM

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

🧹 Nitpick comments (1)
apps/site/src/app/pricing/pricing-hero-plans.tsx (1)

40-63: Consider testing on tablet viewports (768px-1024px).

The changes use Tailwind's md: breakpoint (768px) to restore desktop values. This means tablets in portrait mode (768px-820px) will use the larger desktop spacing and typography. While this is likely fine, the test plan could be enhanced to explicitly verify the layout on tablet devices to ensure the above-fold visibility goal is also met on tablets, particularly smaller ones (iPad Mini, etc.).

This is not a blocking issue—the implementation correctly achieves the mobile optimization objective. Just a thoroughness suggestion for the testing phase.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@apps/site/src/app/pricing/pricing-hero-plans.tsx` around lines 40 - 63, The
layout uses Tailwind's md: breakpoint (e.g., the md: prefixed classes on the
section, h1, and paragraph in pricing-hero-plans.tsx and the Badge component)
which will apply desktop spacing/typography at 768px; add explicit QA/tests for
tablet viewports (768–1024px) to verify spacing, font sizes, and above-the-fold
visibility on smaller tablets (portrait iPad, iPad Mini) — check the section
with className "relative pt-16 pb-8 md:pt-28 md:pb-16 px-4", the h1 ("text-3xl
md:text-7xl"), and paragraph ("text-base md:text-xl") and confirm adjustments or
additional breakpoint tweaks if elements are clipping or pushing content below
the fold.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In `@apps/site/src/app/pricing/pricing-hero-plans.tsx`:
- Around line 40-63: The layout uses Tailwind's md: breakpoint (e.g., the md:
prefixed classes on the section, h1, and paragraph in pricing-hero-plans.tsx and
the Badge component) which will apply desktop spacing/typography at 768px; add
explicit QA/tests for tablet viewports (768–1024px) to verify spacing, font
sizes, and above-the-fold visibility on smaller tablets (portrait iPad, iPad
Mini) — check the section with className "relative pt-16 pb-8 md:pt-28 md:pb-16
px-4", the h1 ("text-3xl md:text-7xl"), and paragraph ("text-base md:text-xl")
and confirm adjustments or additional breakpoint tweaks if elements are clipping
or pushing content below the fold.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 70124253-fee1-44cc-9109-cc944a99303b

📥 Commits

Reviewing files that changed from the base of the PR and between 62b8887 and dc96842.

📒 Files selected for processing (1)
  • apps/site/src/app/pricing/pricing-hero-plans.tsx

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