Skip to content

Commit 2ff21df

Browse files
committed
feat: update doc
1 parent 3b4b1b2 commit 2ff21df

7 files changed

Lines changed: 39 additions & 1 deletion

File tree

astro.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default defineConfig({
88
// base: 'deft-docs',
99
integrations: [
1010
starlight({
11-
title: 'Deft 文档',
11+
title: 'Deft',
1212
locales: {
1313
root: {
1414
label: '简体中文',

src/assets/demos/retro-snake.gif

65 KB
Loading

src/assets/demos/tiny-spice.png

109 KB
Loading
65.5 KB
Loading

src/assets/demos/video-player.png

430 KB
Loading

src/content/docs/demos.mdx

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
title: Deft示例
3+
description: Deft示例
4+
template: splash
5+
6+
---
7+
import { Card, CardGrid } from '@astrojs/starlight/components';
8+
9+
import { Image } from 'astro:assets';
10+
import retroSnake from "../../assets/demos/retro-snake.gif"
11+
import videoPlayer from "../../assets/demos/video-player.png"
12+
import tinySpice from "../../assets/demos/tiny-spice.png"
13+
import videoConverter from "../../assets/demos/video-converter.png"
14+
15+
16+
<CardGrid>
17+
<Card title="视频格式转换器">
18+
<Image src={videoConverter} alt="video converter" width="600" />
19+
<a href="https://github.com/kasonyang/video-converter">查看源码</a>
20+
</Card>
21+
<Card title="贪吃蛇游戏">
22+
<Image src={retroSnake} alt="retro snake" width="600" />
23+
<a href="https://github.com/kasonyang/retro-snaker">查看源码</a>
24+
</Card>
25+
<Card title="视频播放器">
26+
<Image src={videoPlayer} alt="video player" width="600" />
27+
<a href="https://github.com/deft-ui/deft-video">查看源码</a>
28+
</Card>
29+
<Card title="SPICE远程桌面客户端">
30+
<Image src={tinySpice} alt="SPICE client" width="600" />
31+
<a href="https://github.com/kasonyang/tiny-spice">查看源码</a>
32+
</Card>
33+
</CardGrid>
34+

src/content/docs/index.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ hero:
1010
- text: 快速入门
1111
link: /guides/what-is-deft/
1212
icon: right-arrow
13+
- text: 查看示例
14+
link: /demos
15+
icon: external
16+
variant: minimal
1317
---
1418

1519
import { Card, CardGrid } from '@astrojs/starlight/components';

0 commit comments

Comments
 (0)