mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-25 09:35:03 +08:00
31 lines
751 B
TypeScript
31 lines
751 B
TypeScript
|
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>
|
||
|
);
|
||
|
}
|