From efb449041e030c8d9ec06a4f4cfbf5554c868a93 Mon Sep 17 00:00:00 2001 From: shu Date: Sat, 5 Sep 2026 21:00:19 +0800 Subject: init commit --- src/pages/_index.tsx | 44 ++++++++++++++++++++++++++++++++++++++++++++ src/pages/index.module.css | 23 +++++++++++++++++++++++ src/pages/markdown-page.mdx | 8 ++++++++ 3 files changed, 75 insertions(+) create mode 100644 src/pages/_index.tsx create mode 100644 src/pages/index.module.css create mode 100644 src/pages/markdown-page.mdx (limited to 'src/pages') diff --git a/src/pages/_index.tsx b/src/pages/_index.tsx new file mode 100644 index 0000000..2e006d1 --- /dev/null +++ b/src/pages/_index.tsx @@ -0,0 +1,44 @@ +import type {ReactNode} from 'react'; +import clsx from 'clsx'; +import Link from '@docusaurus/Link'; +import useDocusaurusContext from '@docusaurus/useDocusaurusContext'; +import Layout from '@theme/Layout'; +import HomepageFeatures from '@site/src/components/HomepageFeatures'; +import Heading from '@theme/Heading'; + +import styles from './index.module.css'; + +function HomepageHeader() { + const {siteConfig} = useDocusaurusContext(); + return ( +
+
+ + {siteConfig.title} + +

{siteConfig.tagline}

+
+ + Docusaurus Tutorial - 5min ⏱️ + +
+
+
+ ); +} + +export default function Home(): ReactNode { + const {siteConfig} = useDocusaurusContext(); + return ( + + +
+ +
+
+ ); +} diff --git a/src/pages/index.module.css b/src/pages/index.module.css new file mode 100644 index 0000000..9f71a5d --- /dev/null +++ b/src/pages/index.module.css @@ -0,0 +1,23 @@ +/** + * CSS files with the .module.css suffix will be treated as CSS modules + * and scoped locally. + */ + +.heroBanner { + padding: 4rem 0; + text-align: center; + position: relative; + overflow: hidden; +} + +@media screen and (max-width: 996px) { + .heroBanner { + padding: 2rem; + } +} + +.buttons { + display: flex; + align-items: center; + justify-content: center; +} diff --git a/src/pages/markdown-page.mdx b/src/pages/markdown-page.mdx new file mode 100644 index 0000000..ffc8c39 --- /dev/null +++ b/src/pages/markdown-page.mdx @@ -0,0 +1,8 @@ +--- +title: Markdown page example +--- + +# Markdown page example + +You don't need React to write simple standalone pages. + -- cgit v1.2.3