forked from nodejs/nodejs.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLearn.tsx
35 lines (26 loc) · 932 Bytes
/
Learn.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import type { FC, PropsWithChildren } from 'react';
import WithBreadcrumbs from '@/components/withBreadcrumbs';
import WithFooter from '@/components/withFooter';
import WithMetaBar from '@/components/withMetaBar';
import WithNavBar from '@/components/withNavBar';
import WithProgressionSidebar from '@/components/withProgressionSidebar';
import WithSidebarCrossLinks from '@/components/withSidebarCrossLinks';
import ArticleLayout from '@/layouts/Article';
const LearnLayout: FC<PropsWithChildren> = ({ children }) => (
<>
<WithNavBar />
<ArticleLayout>
<WithProgressionSidebar navKey="learn" />
<div>
<main className="md:w-[65vw] lg:w-[48vw]">
{children}
<WithSidebarCrossLinks navKey="learn" />
</main>
<WithMetaBar />
</div>
<WithBreadcrumbs navKeys={['learn']} />
</ArticleLayout>
<WithFooter />
</>
);
export default LearnLayout;