-
Notifications
You must be signed in to change notification settings - Fork 619
[TOOL-3173] Portal: Update hero image, OG image on landing page #6017
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
Conversation
|
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6017 +/- ##
=======================================
Coverage 54.90% 54.90%
=======================================
Files 1151 1151
Lines 61201 61201
Branches 5160 5160
=======================================
Hits 33601 33601
Misses 26874 26874
Partials 726 726
*This pull request uses carry forward flags. Click here to find out more. |
size-limit report 📦
|
joaquim-verges
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.
Merge activity
|
joaquim-verges
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.
header layout issue
|
Ok found the issue, dark theme is the default - so does not require a |
| /* If no data-theme is added in body, its in dark theme */ | ||
| body:not([data-theme="light"]) .light-only { | ||
| display: none; | ||
| } | ||
|
|
||
| [data-theme="light"] .dark-only { | ||
| display: none; | ||
| } | ||
|
|
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.
is this due to chakra & tailwind mixing?
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.
No, we don't have chakra in portal, We have custom "theme provider" setup that sets a data-theme attribute in portal


PR-Codex overview
This PR focuses on updating the images used in the
RootLayoutandPagecomponents of thethirdwebdeveloper portal, enhancing the theme-based display of hero images.Detailed summary
docs-hero.png.docs-hero-dark.pnganddocs-hero-light.png.RootLayoutto include theme-based CSS for light and dark themes.DocsHerowithDocsHeroDarkandDocsHeroLightin theHerocomponent, applying corresponding class names for theme visibility.