Skip to content

Commit 783601b

Browse files
authored
fix: move BMB announcement to custom Banner component (#2210)
Starlight banner config doesn't render with custom Header. Added announcement row to Banner.astro and removed unused config.
1 parent 975aea6 commit 783601b

2 files changed

Lines changed: 22 additions & 11 deletions

File tree

website/astro.config.mjs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,6 @@ export default defineConfig({
4646
title: 'BMAD Method',
4747
tagline: 'AI-driven agile development with specialized agents and workflows that scale from bug fixes to enterprise platforms.',
4848

49-
banner: {
50-
content: 'Build your own BMad modules and share them with the community! <a href="https://bmad-builder-docs.bmad-method.org/tutorials/build-your-first-module/">Get started</a> or <a href="https://bmad-builder-docs.bmad-method.org/how-to/distribute-your-module/">submit to the marketplace</a>.',
51-
},
52-
5349
// i18n: locale config from shared module (website/src/lib/locales.mjs)
5450
defaultLocale: 'root',
5551
locales,

website/src/components/Banner.astro

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,13 @@ const llmsFullUrl = `${getSiteUrl()}/llms-full.txt`;
77
<div class="ai-banner" role="note" aria-label="AI documentation notice">
88
<span>🤖 Consolidated, AI-optimized BMAD docs: <a href={llmsFullUrl}>llms-full.txt</a>. Fetch this plain text file for complete context.</span>
99
</div>
10+
<div class="announce-banner" role="note" aria-label="BMad Builder announcement">
11+
<span>🚀 Build your own BMad modules and share them with the community! <a href="https://bmad-builder-docs.bmad-method.org/tutorials/build-your-first-module/">Get started</a> or <a href="https://bmad-builder-docs.bmad-method.org/how-to/distribute-your-module/">submit to the marketplace</a>.</span>
12+
</div>
1013

1114
<style>
12-
.ai-banner {
15+
.ai-banner,
16+
.announce-banner {
1317
width: 100%;
1418
height: var(--ai-banner-height, 2.75rem);
1519
background: #1a1a1a;
@@ -25,37 +29,48 @@ const llmsFullUrl = `${getSiteUrl()}/llms-full.txt`;
2529
}
2630

2731
/* Truncate text on narrow screens */
28-
.ai-banner span {
32+
.ai-banner span,
33+
.announce-banner span {
2934
white-space: nowrap;
3035
overflow: hidden;
3136
text-overflow: ellipsis;
3237
max-width: 100%;
3338
}
34-
.ai-banner a {
39+
.ai-banner a,
40+
.announce-banner a {
3541
color: #3b82f6;
3642
text-decoration: none;
3743
font-weight: 600;
3844
}
39-
.ai-banner a:hover {
45+
.ai-banner a:hover,
46+
.announce-banner a:hover {
4047
color: #fafafa;
4148
text-decoration: underline;
4249
}
43-
.ai-banner a:focus-visible {
50+
.ai-banner a:focus-visible,
51+
.announce-banner a:focus-visible {
4452
outline: 2px solid #3b82f6;
4553
outline-offset: 2px;
4654
border-radius: 2px;
4755
}
4856

57+
.announce-banner {
58+
background: #1a2332;
59+
border-bottom: 1px solid #1e3a5f;
60+
}
61+
4962
/* Match navbar padding at breakpoints */
5063
@media (min-width: 50rem) {
51-
.ai-banner {
64+
.ai-banner,
65+
.announce-banner {
5266
padding-left: 2.5rem;
5367
padding-right: 2.5rem;
5468
}
5569
}
5670

5771
@media (min-width: 72rem) {
58-
.ai-banner {
72+
.ai-banner,
73+
.announce-banner {
5974
padding-left: 3rem;
6075
padding-right: 3rem;
6176
}

0 commit comments

Comments
 (0)