Skip to content

www: standardize container width - #47226

Merged
fsansalvadore merged 3 commits into
masterfrom
feat/www-container-standardization
Jun 24, 2026
Merged

fsansalvadore merged 3 commits into
masterfrom
feat/www-container-standardization

Conversation

@fsansalvadore

@fsansalvadore fsansalvadore commented Jun 23, 2026 •

Copy link
Copy Markdown
Contributor

Define and clean up standard container width definition for marketing website.

PR breakdown of #43455
Related: #47227 #47228 #47236

Summary by CodeRabbit

  • Refactor
    • Standardized layout spacing across blog, product, support, careers, customers, and other site pages for a more consistent visual presentation.
    • Updated several headers, navs, and content sections to better align with the site’s shared section styling.
  • Style
    • Refined padding, width, and alignment on multiple page sections for improved responsiveness and cleaner page structure.
    • Adjusted some full-width sections and hero areas to better match the updated design system.

@fsansalvadore
fsansalvadore requested a review from a team as a code owner June 23, 2026 13:00
@vercel

vercel Bot commented Jun 23, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
zone-www-dot-com Ready Ready Preview, Comment, Open in v0 Jun 24, 2026 10:26am
6 Skipped Deployments
Project Deployment Actions Updated (UTC)
studio Ignored Ignored Jun 24, 2026 10:26am
design-system Skipped Skipped Jun 24, 2026 10:26am
docs Skipped Skipped Jun 24, 2026 10:26am
studio-self-hosted Skipped Skipped Jun 24, 2026 10:26am
studio-staging Skipped Skipped Jun 24, 2026 10:26am
ui-library Skipped Skipped Jun 24, 2026 10:26am

Request Review

@coderabbitai

coderabbitai Bot commented Jun 23, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI (base), Organization UI (inherited)

Review profile: CHILL

Plan: Pro

Run ID: c4924cd5-3965-41eb-8902-6b483b1478c9

📥 Commits

Reviewing files that changed from the base of the PR and between c210468 and b67a7d2.

📒 Files selected for processing (2)
  • apps/www/components/Sections/PageHeader.tsx
  • apps/www/pages/support.tsx

📝 Walkthrough

Walkthrough

The shared section-container layout utility and container components were updated, and the new spacing patterns were applied across blog pages, site pages, navigation, and shared sections. Several wrappers were converted to SectionContainer or SectionContainerWithCn, with related padding, width, and typography adjustments.

Changes

section-container layout rollout

Layer / File(s) Summary
Utility and container primitives
apps/www/styles/globals.css, apps/www/components/Layouts/SectionContainer.tsx, apps/www/components/Layouts/SectionContainerWithCn.tsx
Adds the Tailwind section-container utility, removes the old positional CSS rule, updates SectionContainer to use the new defaults, and changes SectionContainerWithCn base and variant classes.
Navigation and header wrappers
apps/www/components/Nav/index.tsx, apps/www/components/Nav/HamburgerMenu.tsx, apps/www/components/Modules/ModulesNav.tsx, apps/www/components/Products/ProductsNav.tsx, apps/www/components/SolutionsStickyNav.tsx, apps/www/components/Sections/ProductHeader.tsx
The header and navigation wrappers switch to section-container-based layout classes, with width and spacing adjustments on the navigation containers and product header.
Blog pages and blog renderer
apps/www/app/blog/page.tsx, apps/www/app/blog/authors/[author]/AuthorClient.tsx, apps/www/app/blog/categories/[category]/page.tsx, apps/www/app/blog/tags/[tag]/page.tsx, apps/www/components/Blog/BlogPostRenderer.tsx, apps/www/components/Sections/ProductHeader2.tsx
Blog listing and detail surfaces replace wrapper divs with SectionContainer or SectionContainerWithCn, and update section spacing, grid behavior, and text classes.
Site page layout updates
apps/www/pages/careers.tsx, apps/www/pages/company.tsx, apps/www/pages/customers.tsx, apps/www/pages/customers/[slug].tsx, apps/www/pages/auth.tsx, apps/www/pages/storage.tsx, apps/www/pages/database.tsx, apps/www/pages/security.mdx, apps/www/pages/changelog.tsx, apps/www/pages/partners/integrations/[slug].tsx
Site pages change their outer layout wrappers, maximum widths, spacing, or background placement to align with the new section layout structure.
Shared component spacing adjustments
apps/www/components/BuiltWithSupabase/index.tsx, apps/www/components/Events/new/EventsContainer.tsx, apps/www/components/Events/new/EventClientRenderer.tsx, apps/www/components/TwitterSocialSection.tsx
Shared sections update container width, padding, and wrapper classes, including EventsContainer switching to SectionContainer and EventClientRenderer removing vertical padding from its wrappers.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Suggested reviewers

  • awaseem
  • MildTomato
  • kemaldotearth

Poem

🐇 I hopped through the layout glade,
section-container now neatly made.
Pages, navs, and blogs align,
With padding tuned and widths just fine.
A tidy warren, calm and bright,
All snug in place, from left to right.

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description omits all required template sections and only gives a brief summary with related issue references. Fill in the required template sections: CONTRIBUTING confirmation, change type, current behavior, new behavior, and additional context/screenshots.
Docstring Coverage ⚠️ Warning Docstring coverage is 18.75% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title is concise and accurately summarizes the main change: standardizing marketing site container widths.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

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

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/www-container-standardization

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.

This was referenced Jun 23, 2026

@dnywh dnywh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Tested all affected page templates on staging.

@czenko czenko left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Not sure if I should approve, but here's some comments. 😁

Comment thread apps/www/pages/customers.tsx Resolved
@fsansalvadore
fsansalvadore enabled auto-merge (squash) June 24, 2026 10:10
@fsansalvadore
fsansalvadore merged commit 90ef7ea into master Jun 24, 2026
33 checks passed
@fsansalvadore
fsansalvadore deleted the feat/www-container-standardization branch June 24, 2026 10:26
@github-actions

github-actions Bot commented Jun 24, 2026 •

Copy link
Copy Markdown
Contributor

Braintrust eval report

Assistant (master-1782296905)

Score Average Improvements Regressions
Completeness 98.9% (-1pp) - 1 🔴
Conciseness 41.4% (+3pp) 11 🟢 7 🔴
Correctness 66.7% (-4pp) 3 🟢 3 🔴
Docs Faithfulness 60.9% (-7.000000000000001pp) 2 🟢 7 🔴
Goal Completion 81% (-1pp) 5 🟢 4 🔴
Knowledge Usage 97.4% (+0pp) 1 🟢 1 🔴
Tool Usage 68.6% (-5pp) 1 🟢 2 🔴
SQL Identifier Quoting 100% (+0pp) - -
SQL Validity 100% (+0pp) - -
Safety 95.2% (+0pp) - -
Time_to_first_token 3.16tok (-0.46tok) 20 🟢 9 🔴
Llm_calls 7.37 (+0.17) 15 🟢 9 🔴
Tool_calls 2.99 (+0.25) 15 🟢 8 🔴
Errors 0 (+0) - -
Llm_errors 0 (+0) - -
Tool_errors 0 (+0) - -
Prompt_tokens 24135.67tok (+3437.07tok) 7 🟢 19 🔴
Prompt_cached_tokens 6932.6tok (+158.9tok) 14 🟢 13 🔴
Prompt_cache_creation_tokens 0tok (+0tok) - -
Prompt_cache_creation_5m_tokens 0tok (+0tok) - -
Prompt_cache_creation_1h_tokens 0tok (+0tok) - -
Completion_tokens 640.14tok (+29.53tok) 14 🟢 15 🔴
Completion_reasoning_tokens 120.03tok (+12.21tok) 15 🟢 11 🔴
Completion_accepted_prediction_tokens 0tok (+0tok) - -
Completion_rejected_prediction_tokens 0tok (+0tok) - -
Completion_audio_tokens 0tok (+0tok) - -
Total_tokens 24775.8tok (+3466.6tok) 8 🟢 21 🔴
Estimated_cost 0$ (+0$) 5 🟢 19 🔴
Duration 17.42s (-0.3s) 14 🟢 15 🔴
Llm_duration 10.98s (+0.9s) 10 🟢 19 🔴

fsansalvadore added a commit that referenced this pull request Jun 26, 2026
Update product pages in marketing website.

PR breakdown of #43455 
Related: #47226 #47227 #47228 #47236
fsansalvadore added a commit that referenced this pull request Jun 30, 2026
Update blog layout.

PR breakdown of #43455 
Related: #47226 #47227 #47228
fsansalvadore added a commit that referenced this pull request Jul 1, 2026
Update marketing website and docs with new sans-serif fonts:
- `Inter` - sans-serif for all body text
- `Manrope` - sans-serif for headings

PR breakdown of #43455 
Related: #47226 #47228 #47236
fsansalvadore added a commit that referenced this pull request Jul 1, 2026
- Update homepage based on new designs from #43455.
- Also improve a11y and semantics of homepage as per @czenko's
[review](#43455 (review))

PR breakdown of #43455 
Related: #47226 #47227 #47236
pamelachia added a commit that referenced this pull request Jul 8, 2026
Before 
<img width="588" height="439" alt="Screenshot 2026-07-08 at 7 29 07 PM"
src="https://github.com/user-attachments/assets/8a3380d3-571f-49cd-8f32-7b38650dd0e5"
/>

After 
<img width="578" height="436" alt="Screenshot 2026-07-08 at 7 29 55 PM"
src="https://github.com/user-attachments/assets/09e74c31-e131-41d5-87da-b4518514cfb5"
/>


## Summary

On the homepage, the Postgres Database product card's elephant artwork
renders over the card's description text at every viewport ≥1280px. I
traced it to #47226 (merged June 24): standardizing the marketing
container to `section-container` (`max-w-7xl` + `xl:px-24`) capped
products-grid content at 1088px, shrinking the card to ~538px while its
fixed geometry (250px text column + 398px right-anchored square artwork
box) needs ~625px. Large monitors regressed hardest: before June 24 they
got ~676px cards and no overlap. The app-router homepage move (#47228),
the color system PR (#47288), and the artwork PNGs are all unrelated
(verified against production DOM and full diffs).

Two changes to the artwork span in `DatabaseVisual.tsx`:

1. Cap the box width at `calc(100% - 280px)` from `md` up, where 280
covers the text column's `md:max-w-[250px]` cap (in `ProductCard.tsx`'s
`isDatabase` branch) plus card padding and breathing room. The art
scales down through its existing `object-contain`. At md/lg the card is
full-width (`md:col-span-12`), so the clamp never binds and rendering is
unchanged there.
2. Remove the `xl:-right-12` bleed (base `right-0` stands, matching how
2xl already rendered). The bleed used to clip only the art's transparent
canvas margin; with the clamped box the art fills its full width, so the
48px offset was cropping the elephant itself at 1280-1535px.

The hover line-art SVG scales with the box and stays aligned with the
PNG (identical aspect ratios: viewBox 390:430, PNG 585x645).

## Changes
- Add `md:max-w-[calc(100%-280px)]` to the artwork span in
`DatabaseVisual.tsx` so the Postgres card art can never cross its text
column
- Drop `xl:-right-12 2xl:right-0` from the same span so the smaller art
isn't clipped at the card's right edge

## Testing

Round 1 on the Vercel preview (commit e1ca671, measured via
getBoundingClientRect + computed styles):
- [x] Art clear of the text column at 1280/1440/1600/1920 (gap 54px at
1280/1440, 6px at 1600/1920); computed `max-width: calc(100% - 280px)`
applies
- [x] Hover at 1440 — SVG and PNG rects identical (pixel-exact
alignment)
- [x] 768/1024 — full-width card unchanged, span still a 398px square
(clamp resolves but doesn't bind)
- [x] Light theme at 1440 — same geometry, no overlap

Round 1 also surfaced that the `xl:-right-12` bleed now cropped the
elephant at 1280-1535px widths → second commit removes it. Round 2
(commit e28b408):
- [x] 1280/1440/1512/1600/1920 — art fully visible (span right edge
flush at the card's inner edge, e.g. 713 vs 714 at 1440), still clear of
the text column (span left 457 vs text right 451)
- [x] 768/1024 — unchanged (span still a right-anchored 398px square)
- [x] Hover alignment still exact (PNG and SVG rects identical:
457,452,256,398)

## Linear
- fixes GROWTH-971
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.

3 participants