diff --git a/docusaurus.config.ts b/docusaurus.config.ts index 91faeed53..409dc056f 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -178,6 +178,15 @@ const config: Config = { "./plugins/fixPrism.ts", ], themeConfig: { + // DR-1166: remove on December 8, 2026 at 9 AM PT. + announcementBar: { + id: "games-hackathon-2026", + content: + `
Join Reddit’s Last Hackathon of 2026! Build a daily game for a chance at over $30k in prizes. Learn more
`, + backgroundColor: "#00E3B6", + textColor: "#0f1a1c", + isCloseable: true, + }, docs: { sidebar: { autoCollapseCategories: false, diff --git a/src/css/custom.css b/src/css/custom.css index 8e89315eb..799c3fc73 100644 --- a/src/css/custom.css +++ b/src/css/custom.css @@ -48,6 +48,29 @@ background-color: var(--ifm-color-secondary); } +/* Let the hackathon artwork and copy wrap above the docs navigation. */ +.theme-announcement-bar { + height: auto; +} + +.theme-announcement-bar .close { + color: inherit; + opacity: 0.8; +} + +.hackathon-announcement-image { + display: block; + width: 100%; + max-width: 1200px; + height: clamp(80px, 13.333vw, 160px); + margin: 0 auto; + object-fit: cover; +} + +.hackathon-announcement-copy { + padding: 0.5rem 1rem; +} + .button.button--secondary { background-color: var(--ifm-color-primary); color: white; diff --git a/static/img/games-hackathon-2026.png b/static/img/games-hackathon-2026.png new file mode 100644 index 000000000..f8894143e Binary files /dev/null and b/static/img/games-hackathon-2026.png differ