Skip to content

Commit ad00a7f

Browse files
committed
fix: pass config to header/footer examples for correct asset base paths
1 parent 14cbdf9 commit ad00a7f

3 files changed

Lines changed: 8 additions & 6 deletions

File tree

src/design/components/footer/examples.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
import { Footer } from './index'
2+
import type { SiteConfig } from '../../../build/config'
23

3-
export function FooterExamples() {
4+
export function FooterExamples({ config }: { config: SiteConfig }) {
45
return (
56
<section id="footer">
67
<h2>Footer</h2>
78
<p>Site-wide footer with navigation links and build timestamp. Dark background (midnight) with sky-colored links for AAA contrast.</p>
89
<div style="border-radius: var(--radius-md); overflow: hidden;">
9-
<Footer config={{ basePath: '/', buildTime: new Date().toISOString() }} />
10+
<Footer config={config} />
1011
</div>
1112
</section>
1213
)

src/design/components/header/examples.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
import { Header } from './index'
2+
import type { SiteConfig } from '../../../build/config'
23

3-
export function HeaderExamples() {
4+
export function HeaderExamples({ config }: { config: SiteConfig }) {
45
return (
56
<section id="header">
67
<h2>Header</h2>
78
<p>Site-wide header with brand wordmark and primary navigation. Renders as a <code>&lt;header&gt;</code> landmark with <code>aria-label="Primary"</code> navigation.</p>
89
<div style="border: 1px solid var(--color-surface-alt); border-radius: var(--radius-md); overflow: hidden;">
9-
<Header config={{ basePath: '/', buildTime: '' }} />
10+
<Header config={config} />
1011
</div>
1112
</section>
1213
)

src/pages/design-system.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ export function DesignSystem({ config }: { config: SiteConfig }) {
7171
<SelectExamples />
7272
<CardExamples />
7373
<SideNavExamples />
74-
<HeaderExamples />
75-
<FooterExamples />
74+
<HeaderExamples config={config} />
75+
<FooterExamples config={config} />
7676
<RepoCardExamples />
7777
<StandardsListExamples />
7878
<CatalogFilterExamples />

0 commit comments

Comments
 (0)