-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathindex.tsx
More file actions
28 lines (24 loc) · 928 Bytes
/
index.tsx
File metadata and controls
28 lines (24 loc) · 928 Bytes
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
import { MDXProvider } from '@mdx-js/react';
import type { FC, PropsWithChildren } from 'react';
import { Card, Container } from 'react-bootstrap';
import styles from '../../styles/Home.module.less';
import pageContentStyles from './PageContent.module.less';
export type PageContentProps = PropsWithChildren<{}>;
const components = {
h1: ({ children }: PropsWithChildren<{}>) => (
<h1 className="bg-info text-center fw-bolder" style={{ color: 'red' }}>
{children}
</h1>
),
};
export const PageContent: FC<PageContentProps> = ({ children }) => (
<main
className={`d-flex flex-column justify-content-start align-items-center bg-secondary bg-gradient text-dark bg-opacity-10 ${styles.main}`}
>
<Container>
<Card body className={`p-5 lh-base ${pageContentStyles.MDXProvider}`}>
<MDXProvider components={components}>{children}</MDXProvider>
</Card>
</Container>
</main>
);