You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Align homepage stats and hero actions with mobile gutters - #1528
Align the stats icons and values with the 16px page gutters used by the lower homepage sections below md.
Align the left edge of the Browse the Stack / Start with a prompt button group to that same gutter.
Account for the hero frame’s 12px inset from sm onward and keep the desktop layout as before.
Width
Before
After
Below sm
Stats 10px, actions 24px
Both 16px from the page edge
sm to md
Stats 22px, actions 52px
Both 16px from the page edge
The stats inset applies to both sides. The actions inset applies to the left edge of the group.
Verification
Checked the generated Tailwind CSS at mobile widths from 320px to 767px, including both sides of the sm breakpoint. The three page insets resolve to 16px throughout.
Compared the padding and margins at and above md against the previous revision.
Formatting and lint passed for the changed route.
Summary by CodeRabbit
Style
Adjusted homepage spacing around the hero call-to-action and stats section across screen sizes.
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
No actionable comments were generated in the recent review.
Walkthrough
The homepage hero CTA container gains responsive left margins. The stats section wrapper receives updated horizontal padding at default, small, and medium breakpoints.
Changes: Homepage spacing
Layer / File(s)
Summary
Responsive spacing src/routes/index.tsx
The hero CTA container adds negative left margins at default and small breakpoints, then resets its margin at medium widths. The stats wrapper changes to px-4, with sm:px-1 and md:px-2.5 overrides.
This change adjusts homepage stats and hero button spacing on mobile and small screens. It is a presentation-only update with a negligible chance of production impact, and it is ready to merge.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names the main change: homepage stats and hero actions are aligned to the mobile page gutters. The raw summary shows changes to the hero CTA negative margins and the stats wrapper padding in…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Full details: Title check
Explanation
The title names the main change: homepage stats and hero actions are aligned to the mobile page gutters. The raw summary shows changes to the hero CTA negative margins and the stats wrapper padding in src/routes/index.tsx, which matches the title. The title is specific and concise.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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.
File: No configuration file from this repository applied
Commit: Unavailable
Layers: defaults
Review profile: CHILL
Plan: Advanced
Run ID: a9eded8b-1425-41c1-ba49-13855737beac
Commits
Reviewing files that changed from the base of the PR and between db06fbb and 80176d8.
Files selected for processing: 1
src/routes/index.tsx
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 2 remain after this review.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
md.smonward and keep the desktop layout as before.smsmtomdThe stats inset applies to both sides. The actions inset applies to the left edge of the group.
Verification
smbreakpoint. The three page insets resolve to 16px throughout.mdagainst the previous revision.Summary by CodeRabbit