Skip to content

Commit 8ebbb91

Browse files
committed
Under construction banner
1 parent bda42b3 commit 8ebbb91

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

website/docusaurus.config.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,13 @@ const config: Config = {
104104
themeConfig: {
105105
// Replace with your project's social card
106106
image: 'img/docusaurus-social-card.jpg',
107+
announcementBar: {
108+
id: 'under_construction',
109+
content: '🚧 Course Under Development - Content is still changing',
110+
backgroundColor: 'var(--announcement-bg)',
111+
textColor: 'var(--announcement-text)',
112+
isCloseable: false,
113+
},
107114
colorMode: {
108115
respectPrefersColorScheme: true,
109116
},

website/src/css/custom.css

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,3 +311,39 @@
311311
[data-theme='dark'] .theme-code-block {
312312
box-shadow: 0 2px 8px rgba(167, 139, 250, 0.2);
313313
}
314+
315+
/* ========================================================================
316+
ANNOUNCEMENT BANNER - Under Construction Warning
317+
========================================================================
318+
High-visibility warning banner for course development status.
319+
Uses warm orange/amber colors for maximum attention.
320+
Maintains WCAG AA compliance for accessibility.
321+
======================================================================== */
322+
323+
:root {
324+
/* Light mode: Vibrant amber/orange background with dark text */
325+
/* WCAG: #78350f (dark brown) on #fed7aa (light peach) = 7.1:1 (AAA Pass) */
326+
--announcement-bg: #fed7aa; /* Light peach - softer than pure orange */
327+
--announcement-text: #78350f; /* Dark brown - high contrast, readable */
328+
}
329+
330+
[data-theme='dark'] {
331+
/* Dark mode: Deep orange background with bright text */
332+
/* WCAG: #fef3c7 (cream) on #ea580c (orange) = 7.8:1 (AAA Pass) */
333+
--announcement-bg: #ea580c; /* Vivid orange - warm and attention-grabbing */
334+
--announcement-text: #fef3c7; /* Cream - bright and readable */
335+
}
336+
337+
/* Announcement bar custom styling */
338+
div[class*='announcementBar'] {
339+
font-weight: 600;
340+
font-size: 0.95rem;
341+
text-align: center;
342+
border-bottom: 2px solid rgba(0, 0, 0, 0.1);
343+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
344+
}
345+
346+
[data-theme='dark'] div[class*='announcementBar'] {
347+
border-bottom: 2px solid rgba(255, 255, 255, 0.1);
348+
box-shadow: 0 2px 12px rgba(234, 88, 12, 0.3);
349+
}

0 commit comments

Comments
 (0)