Skip to content

Commit fd48f0c

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

2 files changed

Lines changed: 20 additions & 10 deletions

File tree

website/astro.config.mjs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,6 @@ export default defineConfig({
4141
title: 'Creative Intelligence Suite',
4242
tagline: 'Innovation, brainstorming, and problem-solving agents for the BMad Method.',
4343

44-
banner: {
45-
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>.',
46-
},
47-
4844
favicon: '/favicon.ico',
4945

5046
// Social links

website/src/components/Banner.astro

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,13 @@ const llmsFullUrl = `${getSiteUrl()}/llms-full.txt`;
77
<div class="ai-banner">
88
<span>🤖 AI-optimized docs: <a href={llmsFullUrl}>llms-full.txt</a></span>
99
</div>
10+
<div class="announce-banner">
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: 100vw;
1418
margin-left: calc(-50vw + 50%);
1519
height: var(--ai-banner-height, 2.75rem);
@@ -25,31 +29,41 @@ const llmsFullUrl = `${getSiteUrl()}/llms-full.txt`;
2529
font-family: 'Inter', system-ui, sans-serif;
2630
}
2731

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
}
4350

51+
.announce-banner {
52+
background: #1a2332;
53+
border-bottom: 1px solid #1e3a5f;
54+
}
55+
4456
@media (min-width: 50rem) {
45-
.ai-banner {
57+
.ai-banner,
58+
.announce-banner {
4659
padding-left: 2.5rem;
4760
padding-right: 2.5rem;
4861
}
4962
}
5063

5164
@media (min-width: 72rem) {
52-
.ai-banner {
65+
.ai-banner,
66+
.announce-banner {
5367
padding-left: 3rem;
5468
padding-right: 3rem;
5569
}

0 commit comments

Comments
 (0)