Skip to content

Commit 0b174c3

Browse files
committed
first commit
1 parent 9dd5c55 commit 0b174c3

File tree

128 files changed

+7153
-71
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

128 files changed

+7153
-71
lines changed

app/(home)/page.tsx

+30-11
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,38 @@
1+
import { Image } from 'fumadocs-core/framework';
12
import Link from 'next/link';
3+
import { Card } from 'fumadocs-ui/components/card';
4+
import { Zap, Code, Package, Puzzle } from 'lucide-react';
25

36
export default function HomePage() {
47
return (
5-
<main className="flex flex-1 flex-col justify-center text-center">
6-
<h1 className="mb-4 text-2xl font-bold">Hello World</h1>
7-
<p className="text-fd-muted-foreground">
8-
You can open{' '}
9-
<Link
10-
href="/docs"
11-
className="text-fd-foreground font-semibold underline"
12-
>
13-
/docs
14-
</Link>{' '}
15-
and see the documentation.
8+
<main className="flex flex-1 flex-col justify-center items-center px-4">
9+
<Image src="/icon.png" alt="SithraRS" width={100} height={100} className='rounded-full mb-4' />
10+
<h1 className="mb-4 text-2xl font-bold">SithraRS</h1>
11+
<p className="text-fd-muted-foreground mb-12 max-w-2xl text-center">
12+
基于 Rust 打造的高性能 OneBot 机器人框架,为您的聊天机器人提供强大支持。
1613
</p>
14+
<div className="grid grid-cols-1 md:grid-cols-2 gap-6 max-w-3xl">
15+
<Card title="极速冷启动" icon={<Zap className="text-yellow-400" />} className="text-left">
16+
<p className="text-fd-muted-foreground">
17+
从启动到加载 5 个插件到就绪仅需 50ms,为您的机器人提供闪电般的响应速度。
18+
</p>
19+
</Card>
20+
<Card title="简单开发" icon={<Code className="text-blue-400" />} className="text-left">
21+
<p className="text-fd-muted-foreground">
22+
开发一个简单的 sithra-rs 插件仅需 17 行代码。得益于 Rust 的内存安全和类型安全特性,让您专注于业务逻辑,无需担心内存泄漏和类型错误。
23+
</p>
24+
</Card>
25+
<Card title="零运行时" icon={<Package className="text-green-400" />} className="text-left">
26+
<p className="text-fd-muted-foreground">
27+
采用静态编译方式,部署简单,无需安装任何运行时环境,保持系统环境的纯净。
28+
</p>
29+
</Card>
30+
<Card title="动态插件系统" icon={<Puzzle className="text-purple-400" />} className="text-left">
31+
<p className="text-fd-muted-foreground">
32+
基于 ioevent 的动态插件系统,支持插件的热插拔和动态加载,让功能模块化、分发和获取变得简单高效。
33+
</p>
34+
</Card>
35+
</div>
1736
</main>
1837
);
1938
}

0 commit comments

Comments
 (0)