Skip to content

Commit 7a8bb5f

Browse files
design beautiful awesome blog show method
1 parent 3701f8b commit 7a8bb5f

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

BeautifulAwesomeDesign.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# 背景
2+
- 当前的展示方案(将markdown(直接使用markdown的list语法)直接渲染成html的形式)展示的效果比较丑,我想使用react与Radix UI来进行重构
3+
- 询问了ChatGPT然后进行了预研,使用github pages展示react项目是可行的,核心点是要配合使用[gh-pages库](https://www.npmjs.com/package/gh-pages)
4+
5+
## high level design
6+
- 好看一点,支持Macbook Pro和iPhone展示效果
7+
- Github Pages展示页面
8+
- 自动化(每次push代码到master分支,代码就会直接在github page上进行部署)
9+
10+
## low level design
11+
- 技术栈:react、Radix UI(使用Card组件)、tailwindcss、gh-pages依赖;使用github action实现自动化(push master事件,执行`npm run deploy(vite build && gh-pages -d dist)`命令进行部署);vite进行项目创建
12+
- 数据结构设计
13+
```
14+
name(string): who's blog
15+
url(string): blogs's url
16+
[optional]describe(string): introduce the blog, the author
17+
[optional]avatar(string): author's avatar url or location path
18+
```
19+
- 写博客流程设计
20+
1. 信息提供(json)
21+
2. 头像图片处理
22+
- 卡片设计(单个博客数据展示效果设计)
23+
1. 上面是avatar图片
24+
1. 接着是博客作者名称
25+
1. 接着是博客描述

0 commit comments

Comments
 (0)