diff options
| author | 2026-01-21 11:03:03 +0800 | |
|---|---|---|
| committer | 2026-01-29 02:55:10 +0100 | |
| commit | 4c92bc58fe6a217de029e52634c91160ed69fca3 (patch) | |
| tree | c3aeb29591e5e2b952e506b802eb231237af88c5 /packages/docs/app/routes | |
| parent | 0dc78f169678ddd0cbbdbd8d30e9bd7166ba4d87 (diff) | |
| download | DropOut-4c92bc58fe6a217de029e52634c91160ed69fca3.tar.gz DropOut-4c92bc58fe6a217de029e52634c91160ed69fca3.zip | |
feat(docs): add React Router docs with Fumadocs
Diffstat (limited to 'packages/docs/app/routes')
| -rw-r--r-- | packages/docs/app/routes/home.tsx | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/packages/docs/app/routes/home.tsx b/packages/docs/app/routes/home.tsx new file mode 100644 index 0000000..7f03ba9 --- /dev/null +++ b/packages/docs/app/routes/home.tsx @@ -0,0 +1,30 @@ +import type { Route } from './+types/home'; +import { HomeLayout } from 'fumadocs-ui/layouts/home'; +import { Link } from 'react-router'; +import { baseOptions } from '@/lib/layout.shared'; + +export function meta({}: Route.MetaArgs) { + return [ + { title: 'New React Router App' }, + { name: 'description', content: 'Welcome to React Router!' }, + ]; +} + +export default function Home() { + return ( + <HomeLayout {...baseOptions()}> + <div className="p-4 flex flex-col items-center justify-center text-center flex-1"> + <h1 className="text-xl font-bold mb-2">Fumadocs on React Router.</h1> + <p className="text-fd-muted-foreground mb-4"> + The truly flexible docs framework on React.js. + </p> + <Link + className="text-sm bg-fd-primary text-fd-primary-foreground rounded-full font-medium px-4 py-2.5" + to="/docs" + > + Open Docs + </Link> + </div> + </HomeLayout> + ); +} |