-
Notifications
You must be signed in to change notification settings - Fork 3
[FILECOIN V3] Improve hero images placement #2057
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
3 Skipped Deployments
|
35004a7 to
a3f061c
Compare
|
Not sure why this is happening? CleanShot.2025-12-18.at.11.40.33.mp4 |
apps/filecoin-site/src/app/[locale]/build-on-filecoin/components/HeroSection.tsx
Outdated
Show resolved
Hide resolved
These are the default paddings for |
| </head> | ||
| <body className="bg-white font-sans text-base/5.5"> | ||
| <main>{children}</main> | ||
| <main className="overflow-x-hidden">{children}</main> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uf .. feeling queazy about adding this to the the SiteLayout - Must we add this so high up?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The other option would be to add it to PageSection, which is used everywhere. It needs to be added to a full-width component, so we don't have that many options.
What worries you here?
apps/filecoin-site/src/app/[locale]/build-on-filecoin/components/HeroSection.tsx
Outdated
Show resolved
Hide resolved
…ts/HeroSection.tsx
mirhamasala
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@CharlyMartin This all looks great! I do find this change a tiny bit aggressive and worrisome it might bite us. 🚀

📝 Description
This PR refactors the hero sections on the Build on Filecoin and Provide Storage pages.
🛠️ Key Changes
HeroSectioncomponent in../apps/filecoin-site/src/app/[locale]/build-on-filecoin/components/HeroSection.tsxto encapsulate header content and announcement section../apps/filecoin-site/src/app/[locale]/build-on-filecoin/page.tsxto use the newHeroSectioncomponent, removing inline header codeGradientOverlaycomponent in../apps/filecoin-site/src/app/_components/GradientOverlay.tsxto support three variants:to-bottom,to-top, anddual../packages/ui-filecoin/src/styles/button.cssto add explicit background colors for light and dark section variants📸 Screenshots