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

feat: Time-bound banner #255

Merged
merged 5 commits into from
Dec 5, 2023
Merged

feat: Time-bound banner #255

merged 5 commits into from
Dec 5, 2023

Conversation

PuruVJ
Copy link
Collaborator

@PuruVJ PuruVJ commented Nov 30, 2023

This binds the banner to start and end times. it assumes the user knows what they are doing and they wont set start > end 😅

This allows having multiple banners in the code, all with their time. For eg, we can have 2 banners in the site code, one for "Join us for svelte summit" and one for "Svelte Summit talks are out now". They both will be bound to their time, hence we can show them subsequently without needing a subsequent PR at the right time.

This also allows us to set and forget them completely, until the next event comes up. This will avoid the awkward situation where the banner says "Join us on November 12" and the current date is December 1

Copy link

changeset-bot bot commented Nov 30, 2023

🦋 Changeset detected

Latest commit: 82211ed

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@sveltejs/site-kit Patch

Not sure what this means? Click here to learn what changesets are.

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

@PuruVJ PuruVJ merged commit 53b5034 into master Dec 5, 2023
@PuruVJ PuruVJ deleted the feat/enhanced-banner branch December 5, 2023 14:17
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.

1 participant