Skip to content

Conversation

@MananTank
Copy link
Member

@MananTank MananTank commented Jan 21, 2025

PR-Codex overview

This PR focuses on updating the images used in the RootLayout and Page components of the thirdweb developer portal, enhancing the theme-based display of hero images.

Detailed summary

  • Deleted the old image docs-hero.png.
  • Added docs-hero-dark.png and docs-hero-light.png.
  • Updated the RootLayout to include theme-based CSS for light and dark themes.
  • Replaced DocsHero with DocsHeroDark and DocsHeroLight in the Hero component, applying corresponding class names for theme visibility.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@linear
Copy link

linear bot commented Jan 21, 2025

@changeset-bot
Copy link

changeset-bot bot commented Jan 21, 2025

⚠️ No Changeset found

Latest commit: 80a22ff

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.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
Copy link

vercel bot commented Jan 21, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 22, 2025 4:23pm
3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
thirdweb_playground ⬜️ Skipped (Inspect) Jan 22, 2025 4:23pm
thirdweb-www ⬜️ Skipped (Inspect) Jan 22, 2025 4:23pm
wallet-ui ⬜️ Skipped (Inspect) Jan 22, 2025 4:23pm

@vercel vercel bot temporarily deployed to Preview – thirdweb_playground January 21, 2025 22:35 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui January 21, 2025 22:35 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb-www January 21, 2025 22:35 Inactive
@github-actions github-actions bot added the Portal Involves changes to the Portal (docs) codebase. label Jan 21, 2025
Copy link
Member Author


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • merge-queue - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

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.

@MananTank MananTank marked this pull request as ready for review January 21, 2025 22:36
@MananTank MananTank requested review from a team as code owners January 21, 2025 22:36
@codecov
Copy link

codecov bot commented Jan 21, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 54.90%. Comparing base (eefa2ab) to head (80a22ff).
Report is 1 commits behind head on main.

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           
Flag Coverage Δ *Carryforward flag
legacy_packages 65.68% <ø> (ø) Carriedforward from eefa2ab
packages 52.57% <ø> (ø)

*This pull request uses carry forward flags. Click here to find out more.

@github-actions
Copy link
Contributor

github-actions bot commented Jan 21, 2025

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 46.68 KB (0%) 934 ms (0%) 3.5 s (+50.78% 🔺) 4.4 s
thirdweb (cjs) 116.87 KB (0%) 2.4 s (0%) 8.7 s (+49.1% 🔺) 11.1 s
thirdweb (minimal + tree-shaking) 5.59 KB (0%) 112 ms (0%) 382 ms (+90.5% 🔺) 494 ms
thirdweb/chains (tree-shaking) 506 B (0%) 10 ms (0%) 56 ms (-0.67% 🔽) 66 ms
thirdweb/react (minimal + tree-shaking) 19.22 KB (0%) 385 ms (0%) 424 ms (-53.22% 🔽) 809 ms

Copy link
Member

@joaquim-verges joaquim-verges left a comment

Choose a reason for hiding this comment

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

i see this on small window width

CleanShot 2025-01-22 at 12.45.22.png

@graphite-app
Copy link
Contributor

graphite-app bot commented Jan 22, 2025

Merge activity

Copy link
Member

@joaquim-verges joaquim-verges left a comment

Choose a reason for hiding this comment

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

header layout issue

@MananTank MananTank changed the title [TOOL-3173] Portal: Update hero iamge, OG image on landing page [TOOL-3173] Portal: Update hero image, OG image on landing page Jan 22, 2025
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground January 22, 2025 16:16 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui January 22, 2025 16:16 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb-www January 22, 2025 16:16 Inactive
Copy link
Member Author

MananTank commented Jan 22, 2025

Ok found the issue, dark theme is the default - so does not require a [data-theme="dark"] attribute set for it to be dark theme - but light theme has to have [data-theme="light"]. It worked when I tested locally because I had already switched the theme multiple times and that caused it to always have a data-theme attribute present on body, which is not the case if you visit the website for the first time. Updated CSS selector to fix this.

Comment on lines +96 to +104
/* 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;
}

Copy link
Member

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?

Copy link
Member Author

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

@graphite-app graphite-app bot merged commit 80a22ff into main Jan 22, 2025
35 checks passed
@graphite-app graphite-app bot deleted the TOOL-3173 branch January 22, 2025 17:02
@vercel vercel bot temporarily deployed to Production – thirdweb_playground January 22, 2025 17:02 Inactive
@vercel vercel bot temporarily deployed to Production – wallet-ui January 22, 2025 17:02 Inactive
@vercel vercel bot temporarily deployed to Production – thirdweb-www January 22, 2025 17:02 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Portal Involves changes to the Portal (docs) codebase.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants