mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-07-30 09:40:05 +00:00
🏗️ change doc theme
This commit is contained in:
30
website/src/pages/index.tsx
Normal file
30
website/src/pages/index.tsx
Normal file
@ -0,0 +1,30 @@
|
||||
import Hero, { HeroFeatureSingle } from "@theme/Hero";
|
||||
|
||||
import CodeBlock from "@theme/CodeBlock";
|
||||
import Layout from "@theme/Layout";
|
||||
import React from "react";
|
||||
import clsx from "clsx";
|
||||
import styles from "./index.module.css";
|
||||
|
||||
export default function Home() {
|
||||
const feature = {
|
||||
title: "Develop",
|
||||
tagline: "fast to code",
|
||||
description: "仅需两步,即可开始编写你的机器人",
|
||||
};
|
||||
|
||||
return (
|
||||
<Layout>
|
||||
<Hero />
|
||||
<HeroFeatureSingle {...feature}>
|
||||
<CodeBlock
|
||||
title="Installation"
|
||||
className={clsx("inline-block", styles.homeCodeBlock)}
|
||||
metastring="bash"
|
||||
>
|
||||
{"pip install nb-cli\nnb create"}
|
||||
</CodeBlock>
|
||||
</HeroFeatureSingle>
|
||||
</Layout>
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user