Skip to content

Conversation

@lursz
Copy link
Contributor

@lursz lursz commented Oct 24, 2025

New landing page for TypeGPU, with interactive islands running TypeGPU examples

After running the dev script the new landing page is at:
http://localhost:4321/TypeGPU/new

@github-actions
Copy link

github-actions bot commented Oct 24, 2025

pkg.pr.new

packages
Ready to be installed by your favorite package manager ⬇️

https://pkg.pr.new/software-mansion/TypeGPU/typegpu@765eb002c65bb2ff647f067d811eabdabd5ee72b
https://pkg.pr.new/software-mansion/TypeGPU/@typegpu/noise@765eb002c65bb2ff647f067d811eabdabd5ee72b
https://pkg.pr.new/software-mansion/TypeGPU/unplugin-typegpu@765eb002c65bb2ff647f067d811eabdabd5ee72b

benchmark
view benchmark

commit
view commit

@lursz lursz marked this pull request as ready for review December 8, 2025 14:33
Copy link
Collaborator

Choose a reason for hiding this comment

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

The changes in this file are forcing code snippets in the docs to be dark mode. Also, I think the code snippets on the landing page should respect the light/dark mode settings, or it's at least something we should explore.

Copy link
Contributor Author

@lursz lursz Dec 14, 2025

Choose a reason for hiding this comment

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

Yeah I've just noticed, it replaced the theme for all code snippets. Would we like to have the exact same theme everywhere (homepage + docs) or keep them separated?

Copy link
Collaborator

Choose a reason for hiding this comment

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

The bg of the code editor doesn't fit the bg of the page. I think we'd need to create our own custom theme.

image

Copy link
Collaborator

Choose a reason for hiding this comment

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

The color transitions on these buttons are causing an unpleasant moment of mismatch between the color themes.
Also, the GitHub button doesn't react to the light/dark theme.

Screen.Recording.2025-12-11.at.13.58.48.mov

Copy link
Contributor Author

Choose a reason for hiding this comment

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

added transition-colors duration-300 ease-in-out across whole page, but I'm not in favour of it

Copy link
Collaborator

Choose a reason for hiding this comment

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

I see there's sometimes both "Loading..." text and/or control widgets that pop-up when activating an example tile. I think for the sake of simplifying this component and HoverExampleIsland, we should duplicate those examples for the purpose of embedding them here, and making them more simplified and easier to interact with.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants