Skip to content

fix(site): consistent layout across all pages#7770

Merged
mhartington merged 2 commits intomainfrom
site-consistency
Apr 2, 2026
Merged

fix(site): consistent layout across all pages#7770
mhartington merged 2 commits intomainfrom
site-consistency

Conversation

@mhartington
Copy link
Copy Markdown
Member

@mhartington mhartington commented Apr 2, 2026

Summary by CodeRabbit

Release Notes

  • Style
    • Improved hero section typography with responsive heading sizes optimized for all breakpoints
    • Centered main page headings with consistent width constraints for enhanced visual hierarchy
    • Updated spacing and alignment consistency across all pages
    • Made decorative background gradients non-interactive to improve user experience and pointer handling

@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 6:58pm
docs Ready Ready Preview, Comment Apr 2, 2026 6:58pm
eclipse Ready Ready Preview, Comment Apr 2, 2026 6:58pm
site Ready Ready Preview, Comment Apr 2, 2026 6:58pm

Request Review

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Apr 2, 2026

Walkthrough

This pull request systematically updates heading typography and overlay styling across 30+ marketing pages. Changes include converting headings to responsive text-4xl sm:text-5xl md:text-6xl sizing with centered, constrained layouts; adding stretch-display, max-w-224, and mx-auto utilities; and updating background gradient overlays with pointer-events-none and z-1 stacking. Minor structural refinements on select pages.

Changes

Cohort / File(s) Summary
Heading Typography Standardization
apps/site/src/app/(prisma-with)/nextjs/page.tsx, apps/site/src/app/changelog/[...slug]/page.tsx, apps/site/src/app/changelog/page.tsx, apps/site/src/app/event-code-of-conduct/page.tsx, apps/site/src/app/newsletter/page.tsx, apps/site/src/app/oss-friends/page.tsx, apps/site/src/app/partners/tos/page.tsx, apps/site/src/app/postgres/page.tsx, apps/site/src/app/privacy/page.tsx, apps/site/src/app/sla/page.tsx, apps/site/src/app/studio/page.tsx, apps/site/src/app/support-policy/page.tsx, apps/site/src/app/terms/page.tsx
Updated h1 elements to responsive sizing (text-4xl sm:text-5xl md:text-6xl), added stretch-display, centered text, and applied max-width constraints (max-w-224 mx-auto).
Overlay + Heading Updates
apps/site/src/app/about/page.tsx, apps/site/src/app/careers/page.tsx, apps/site/src/app/client/page.tsx, apps/site/src/app/community/page.tsx, apps/site/src/app/ecosystem/page.tsx, apps/site/src/app/enterprise/page.tsx, apps/site/src/app/events/page.tsx, apps/site/src/app/migrate/page.tsx, apps/site/src/app/showcase/page.tsx, apps/site/src/app/support/page.tsx, apps/site/src/app/typedsql/page.tsx
Combined updates: background gradient overlays now include pointer-events-none and z-1 stacking; headings standardized to responsive sizes with centered, constrained layouts.
Structural & Complex Changes
apps/site/src/app/(index)/page.tsx, apps/site/src/app/orm/page.tsx, apps/site/src/app/pricing/pricing-hero-plans.tsx, apps/site/src/app/partners/page.tsx, apps/site/src/app/showcase/page.tsx, apps/site/src/app/stack/page.tsx, apps/site/src/app/startups/page.tsx
More involved refactoring: repositioned content layers, adjusted padding/margins, added labeled header blocks (orm page), updated gradient overlays with CSS variables, and applied full heading standardization.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~15 minutes


Observations & Guidance

This is a well-scoped, homogeneous refactoring with a clear, repeating pattern—you'll notice immediately that I've categorized this as requiring simple review effort. However, here's what to watch for as you validate:

  1. Pattern consistency: Verify the responsive breakpoint classes (text-4xl sm:text-5xl md:text-6xl) are identical across all pages—typos here cascade across 30+ files.

  2. Max-width anomalies: Most pages use max-w-224, but verify none accidentally shifted to max-w-200 or other widths (I noticed the showcase page changed from max-w-200 to max-w-224—confirm this is intentional).

  3. z-index layering: Background overlays consistently shift from z-0 to z-1, which is correct for the desired stacking. Verify no overlay accidentally went to z-2 or higher.

  4. pointer-events-none placement: This should only appear on decorative overlays, never on interactive elements. Spot-check a few pages to confirm it's applied correctly.

  5. Structural outliers: The (index)/page.tsx, orm/page.tsx, and pricing-hero-plans.tsx files have slightly more complex changes—these warrant closer examination to ensure layout intent is preserved.

🚥 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 accurately summarizes the main objective: applying consistent typography, layout, and styling patterns across all site pages.

✏️ 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, 7:03 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.

Actionable comments posted: 1

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

40-42: Consider removing or defining hero/content class hooks.

Line 40 (hero) and Line 42 (content) appear to be no-op class tokens in the current site stylesheet context. If they’re not shared hooks yet, removing them reduces ambiguity; if they are intended hooks, add their definitions in global CSS for clarity and reuse.

🤖 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 - 42, The
JSX uses two ambiguous class tokens "hero" and "content" on the section and
inner div which appear to be no-ops; either remove these class names from the
section and div in the PricingHeroPlans JSX if they are unused, or add clear
definitions for .hero and .content in the global stylesheet (or Tailwind
config/partials) so they provide consistent layout hooks; update the component
markup (the <section> with class "hero ..." and the inner div with class
"content ...") accordingly and ensure no visual regressions by verifying the
layout after removing or defining them.
apps/site/src/app/(prisma-with)/react/page.tsx (1)

22-22: Keep code examples framework-agnostic and portable.

These snippets now include website-specific utility classes that won’t exist in most user projects. For copy/paste examples, prefer neutral markup (or generic classes) to avoid confusing readers.

Suggested change
-      <h1 className="text-4xl sm:text-5xl md:text-6xl stretch-display mb-0 text-center mt-0 font-sans-display text-foreground-neutral max-w-224 mx-auto">Users</h1>
+      <h1>Users</h1>
-      <h1 className="text-4xl sm:text-5xl md:text-6xl stretch-display mb-0 text-center mt-0 font-sans-display text-foreground-neutral max-w-224 mx-auto">Users</h1>
+      <h1>Users</h1>

Also applies to: 44-44

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

In `@apps/site/src/app/`(prisma-with)/react/page.tsx at line 22, The H1 element in
apps/site/src/app/(prisma-with)/react/page.tsx uses framework-specific utility
classes ("text-4xl sm:text-5xl md:text-6xl stretch-display ...") which makes the
example non-portable; update the <h1> markup (and the similar element at the
second occurrence referenced) to use neutral markup or generic class names
(e.g., plain <h1> with no framework utilities or a single generic class like
"heading") so the example is framework-agnostic and copy/paste friendly,
ensuring the visual intent is preserved without relying on project-specific
utility classes.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@apps/site/src/app/support/page.tsx`:
- Around line 40-41: The hero title (<h1 className="...">) is being rendered
beneath the gradient overlay div (the div with class "absolute inset-0 ...
z-1"), so add positioning and a higher stacking context to the <h1> (e.g., make
the <h1> relative or given a z-index utility like "relative z-10") so it renders
above the overlay; ensure the overlay remains pointer-events-none while the
heading retains normal pointer behavior.

---

Nitpick comments:
In `@apps/site/src/app/`(prisma-with)/react/page.tsx:
- Line 22: The H1 element in apps/site/src/app/(prisma-with)/react/page.tsx uses
framework-specific utility classes ("text-4xl sm:text-5xl md:text-6xl
stretch-display ...") which makes the example non-portable; update the <h1>
markup (and the similar element at the second occurrence referenced) to use
neutral markup or generic class names (e.g., plain <h1> with no framework
utilities or a single generic class like "heading") so the example is
framework-agnostic and copy/paste friendly, ensuring the visual intent is
preserved without relying on project-specific utility classes.

In `@apps/site/src/app/pricing/pricing-hero-plans.tsx`:
- Around line 40-42: The JSX uses two ambiguous class tokens "hero" and
"content" on the section and inner div which appear to be no-ops; either remove
these class names from the section and div in the PricingHeroPlans JSX if they
are unused, or add clear definitions for .hero and .content in the global
stylesheet (or Tailwind config/partials) so they provide consistent layout
hooks; update the component markup (the <section> with class "hero ..." and the
inner div with class "content ...") accordingly and ensure no visual regressions
by verifying the layout after removing or defining them.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 5535fbcb-69f8-48da-a6fc-87ffedc15638

📥 Commits

Reviewing files that changed from the base of the PR and between ba12dc6 and dce2032.

📒 Files selected for processing (31)
  • apps/site/src/app/(index)/page.tsx
  • apps/site/src/app/(prisma-with)/nextjs/page.tsx
  • apps/site/src/app/(prisma-with)/react/page.tsx
  • apps/site/src/app/about/page.tsx
  • apps/site/src/app/careers/page.tsx
  • apps/site/src/app/changelog/[...slug]/page.tsx
  • apps/site/src/app/changelog/page.tsx
  • apps/site/src/app/client/page.tsx
  • apps/site/src/app/community/page.tsx
  • apps/site/src/app/ecosystem/page.tsx
  • apps/site/src/app/enterprise/page.tsx
  • apps/site/src/app/event-code-of-conduct/page.tsx
  • apps/site/src/app/events/page.tsx
  • apps/site/src/app/migrate/page.tsx
  • apps/site/src/app/newsletter/page.tsx
  • apps/site/src/app/orm/page.tsx
  • apps/site/src/app/oss-friends/page.tsx
  • apps/site/src/app/partners/page.tsx
  • apps/site/src/app/partners/tos/page.tsx
  • apps/site/src/app/postgres/page.tsx
  • apps/site/src/app/pricing/pricing-hero-plans.tsx
  • apps/site/src/app/privacy/page.tsx
  • apps/site/src/app/showcase/page.tsx
  • apps/site/src/app/sla/page.tsx
  • apps/site/src/app/stack/page.tsx
  • apps/site/src/app/startups/page.tsx
  • apps/site/src/app/studio/page.tsx
  • apps/site/src/app/support-policy/page.tsx
  • apps/site/src/app/support/page.tsx
  • apps/site/src/app/terms/page.tsx
  • apps/site/src/app/typedsql/page.tsx

Keep the support hero title above its gradient overlay and make the React code
examples portable while removing unused pricing hero class hooks.

Made-with: Cursor
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.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@apps/site/src/app/pricing/pricing-hero-plans.tsx`:
- Around line 40-42: The classes z-1 and z-2 used in the section (the gradient
div and the content wrapper) are not part of Tailwind's default z-index scale,
so add them to your Tailwind config's theme.extend.zIndex (define keys "1" =>
"1" and "2" => "2") so Tailwind generates z-1 and z-2; then rebuild so the
overlay (z-1) stays behind the content wrapper (z-2).

In `@apps/site/src/app/support/page.tsx`:
- Around line 40-41: The heading uses undefined Tailwind utilities (`z-2`,
`max-w-224`) so stacking and width constraints don't apply; replace `z-2` with a
standard z utility (e.g., `z-10`) and swap `max-w-224` for a defined max-width
utility (e.g., `max-w-4xl` or `max-w-5xl`) on the h1, and ensure the gradient
overlay uses a lower z (e.g., `z-0` or `z-10` vs `z-20`) so the heading (h1)
sits above the overlay; search for other occurrences of `z-1`, `z-2`, `z-100`,
`max-w-224`, `max-w-300`, `max-w-120` and replace them with standard Tailwind
utilities or add corresponding entries to tailwind.config.ts if custom scales
are intentionally required.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 9c48a441-23ae-46ae-a934-39fe5698a96d

📥 Commits

Reviewing files that changed from the base of the PR and between dce2032 and 189f245.

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

@mhartington mhartington merged commit 34ad32b into main Apr 2, 2026
18 checks passed
@mhartington mhartington deleted the site-consistency branch April 2, 2026 19:06
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