Skip to content
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

Feature: Announcement Banners #383

Open
yousinix opened this issue Oct 4, 2024 · 3 comments
Open

Feature: Announcement Banners #383

yousinix opened this issue Oct 4, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@yousinix
Copy link

yousinix commented Oct 4, 2024

We want a way to announce big releases/updates all over the docs.
Similar to the "🎉️ Docusaurus v3.5 is out! 🥳️" banner below.

🔗 Preview

image
@Ehesp
Copy link
Member

Ehesp commented Oct 4, 2024

Ah interesting... Do you want these fixed or closable? Also that's pretty big in size for docs, so a smaller header one sounds like a good idea

@yousinix
Copy link
Author

yousinix commented Oct 4, 2024

I realize that the original issue might be a bit ambiguous because there are two banners with the same text. I originally meant the small banner on top, which is not that big as the other one.

docusaurus io_

It will be a good idea to have it dismissable, otherwise it can be visually annoying.
Our use case would to be to announce the public beta release of Widgetbook Cloud.

@Ehesp
Copy link
Member

Ehesp commented Oct 15, 2024

Ok I've had a look how Docusarus do this, and the ID of the banner is stored in local storage and checked client side. Makes sense, I just need to check how to deal with potential layout shift with this rendering on the client.

@Ehesp Ehesp added the enhancement New feature or request label Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants