Skip to content

Commit 2ba4def

Browse files
committed
docs: transparent nav at top
1 parent 38ad58d commit 2ba4def

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

website/theme/pages/index.tsx

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,23 @@
1+
import { HomeBackground as BasicHomeBackground } from '@rspress/core/theme';
12
import { BackgroundImage } from '@rstack-dev/doc-ui/background-image';
23
import { CopyRight } from '../components/Copyright';
34
import { Hero } from '../components/Hero';
45
import { ToolStack } from '../components/ToolStack';
56

7+
function HomeBackground() {
8+
return (
9+
<>
10+
{/* For transparent nav at top */}
11+
<BasicHomeBackground style={{ background: 'none' }} />
12+
<BackgroundImage />
13+
</>
14+
);
15+
}
16+
617
export function HomeLayout() {
718
return (
819
<div style={{ position: 'relative' }}>
9-
<BackgroundImage />
20+
<HomeBackground />
1021
<Hero />
1122
<ToolStack />
1223
<CopyRight />

0 commit comments

Comments
 (0)