Skip to content
This repository was archived by the owner on Dec 19, 2025. It is now read-only.

Commit db045a1

Browse files
committed
Build custom layout without wrapper
1 parent 5061bb2 commit db045a1

2 files changed

Lines changed: 29 additions & 8 deletions

File tree

docs/src/css/custom.css

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@
1919
font-family: 'Audiowide', cursive;
2020
}
2121

22-
.main-wrapper {
23-
display: flex;
24-
}
25-
2622
/* For readability concerns, you should choose a lighter palette in dark mode. */
2723
[data-theme='dark'] {
2824
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);

docs/src/pages/index.tsx

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,36 @@
11
import React from 'react'
2-
import Layout from '@theme/Layout'
2+
// import Layout from '@theme/Layout'
3+
import clsx from 'clsx'
4+
import ErrorBoundary from '@docusaurus/ErrorBoundary'
5+
import { PageMetadata, ThemeClassNames } from '@docusaurus/theme-common'
6+
import { useKeyboardNavigation } from '@docusaurus/theme-common/internal'
7+
import SkipToContent from '@theme/SkipToContent'
8+
import AnnouncementBar from '@theme/AnnouncementBar'
9+
import Navbar from '@theme/Navbar'
10+
import Footer from '@theme/Footer'
11+
import LayoutProvider from '@theme/Layout/Provider'
12+
import ErrorPageContent from '@theme/ErrorPageContent'
13+
import type { Props } from '@theme/Layout'
314
import HomepageHeader from '../components/Home/Header'
415

516
export default function Home() {
17+
useKeyboardNavigation()
18+
619
return (
7-
<Layout>
8-
<HomepageHeader />
9-
</Layout>
20+
<LayoutProvider>
21+
<PageMetadata />
22+
23+
<SkipToContent />
24+
25+
<AnnouncementBar />
26+
27+
<Navbar />
28+
29+
<ErrorBoundary fallback={(params) => <ErrorPageContent {...params} />}>
30+
<HomepageHeader />
31+
</ErrorBoundary>
32+
33+
<Footer />
34+
</LayoutProvider>
1035
)
1136
}

0 commit comments

Comments
 (0)