Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 6 additions & 20 deletions apps/svelte.dev/src/routes/banner.json/+server.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,29 +9,15 @@ export const GET = async () => {
return json(
defineBanner([
{
id: 'advent2023',
start: new Date('1 Dec, 2023 00:00:00 UTC'),
end: new Date('24 Dec, 2023 23:59:59 UTC'),
id: 'sveltehack2024',
start: new Date('22 Oct, 2024 00:00:00 UTC'),
end: new Date('10 January, 2025 23:59:59 UTC'),
Copy link
Member

Choose a reason for hiding this comment

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

do we really want it to be visible for the entire duration?

Copy link
Member

Choose a reason for hiding this comment

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

probably makes sense to put it down mid december, you wouldn't start stuff then.

once you close it won't reappear, if that's your concern of it being annoying.

arrow: true,
content: {
lg: 'Advent of Svelte 2023 is here!',
sm: 'Advent of Svelte'
lg: 'Svelte Hack 2024 (Runes edition) is here!',
sm: 'Svelte Hack 2024'
},
href: 'https://advent.sveltesociety.dev/'
},

// This one skips the blog post and just changes the link
{
id: 'advent2023-finished',
start: new Date('25 Dec, 2023 00:00:00 UTC'),
end: new Date('1 Jan, 2024 00:00:00 UTC'),
arrow: true,
content: {
lg: 'Advent of Svelte 2023 is over. See you next year!',
sm: 'Advent of Svelte 2023 is over!'
},
href: 'https://advent.sveltesociety.dev/'
// scope: ['svelte.dev, kit.svelte.dev'] // Dont show on learn.svelte.dev by not adding it to the array
href: 'https://hack.sveltesociety.dev/2024'
}
])
);
Expand Down
2 changes: 2 additions & 0 deletions packages/site-kit/src/lib/components/Banner.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@
justify-content: center;
align-items: center;

font-size: 1.7em;

overflow-y: auto;

width: 100%;
Expand Down
Loading