Repository navigation
fix(www): load the homepage without a white band or a heavy footer - #2384
Merged
Merged
Conversation
The cached HTML for / came back without .ss-home: SiteShell chose the design from usePathname, which read wrong on the server for the root route. Until hydration the hero sat in an overflow-x-hidden wrapper that clipped its -mt-20 pull-up, so a white band showed under the nav. Every route under (home) is on the site design and /login and /register are gone, so the branch had no routes left. The layout now renders the design directly as a server component, and the page comments that pointed at SITE_DESIGN_ROUTES point at the layout.
The blur placeholder is an SVG filter painted at full width; a gradient of the scene's own sky, haze and ground now stands in instead, so the white copy is readable from the first paint.
The 4344px master made every screen decode a 3840x1280 bitmap, phones included through the 360vw offset, and it stuttered mid-scroll. The scene is now 2172x724 with darker lines that hold up when stretched, a quarter of the pixels. The blur placeholder goes, and content-visibility skips the footer's layout and paint until it nears the screen.
The plugins row showed both logos while the copy listed eight plugins; ten ship, so the count and list now match it.
"Open by pull request" and "code in the public repo" read as written for developers; the point now says every plugin is open source and anyone can add their own MCP server to the registry.
|
@AnishSarkar22 is attempting to deploy a commit to the Rohan Verma's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
Caution Review failedThe pull request is closed.
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. |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What
Fixes how the homepage looks while it loads, makes the footer cheaper to draw, and updates the plugins copy.
(home)layout now renders the site design directly, as a server component.components/site/site-shell.tsx, which picked the design fromusePathname(), is deleted, and the page comments that pointed at itsSITE_DESIGN_ROUTESlist now point at the layout.placeholder="blur"preview.content-visibility: auto.Why
/came back without.ss-home, becauseusePathname()read wrong on the server for the root route. Every route under(home)already uses the site design, so the path check had no routes left to serve. Until the page's JavaScript loaded, the hero sat inside anoverflow-x-hiddenwrapper that cut off its-mt-20pull-up under the nav, and a white band showed there./pricing,/pluginsand/blogwere not affected.360vwsizing. The page stuttered while scrolling to the footer. The new source caps that at 2172×724 (about 6MB).Fixes # (none)
How to test
next buildwrites for the homepage,.next/server/app/index.html:<main>hasss-home, and there's nooverflow-x-hiddenwrapper./with network throttling on. The area under the nav shows the hero's blue sky, never white, and the nav's logo is visible.cd www && pnpm test:unit.High-level PR Summary
This PR fixes three performance and visual issues on the homepage. It eliminates a white band that appeared under the navigation while the page loaded by refactoring the layout to render the site design directly as a server component instead of relying on client-side
usePathname()checks. It reduces footer rendering cost by replacing the 4344×1280px footer scene with a 2172×724px version and removing expensive blur preview filters. Finally, it updates the hero section to show a gradient placeholder instead of a blur preview until the image loads, and updates the plugins copy to mention Reddit and Instagram (bringing the count to ten platforms).⏱️ Estimated Review Time: 30-90 minutes
💡 Review Order Suggestion
www/app/(home)/layout.tsxwww/components/site/site-shell.tsxwww/app/(home)/_home/home-scene.tsxwww/components/site/site-footer.tsxwww/components/site/site-footer-scene.webpwww/app/(home)/_home/home-content.tswww/AGENTS.mdwww/app/(home)/announcements/[slug]/page.tsxwww/app/(home)/announcements/page.tsxwww/app/(home)/contact/page.tsxwww/app/(home)/downloads/page.tsxwww/app/(home)/free/[model_slug]/page.tsxwww/app/(home)/free/page.tsxwww/app/(home)/license/activate/page.tsxwww/app/(home)/license/page.tsxwww/app/(home)/plugins/page.tsxwww/app/(home)/pricing/individual/page.tsxwww/app/(home)/privacy/page.tsxwww/app/(home)/terms/page.tsx