feat: migrate YMB site to React Vite
This commit is contained in:
1 parent
ab9f50d66b
commit
63430a66de
18 files changed
+556
-38
No files matched your search
@@ -2,17 +2,21 @@
|
||||
|
||||
# YMB Site
|
||||
|
||||
YMB 公开站点响应式首页原型,参考 YouTube 的内容发现信息架构,支持桌面端与移动端。
|
||||
YMB 公开站点 React + Vite 项目,参考 YouTube 的内容发现信息架构,支持桌面端与移动端。
|
||||
|
||||
## 运行
|
||||
|
||||
直接用浏览器打开 `index.html`,或在当前目录启动任意静态文件服务器。
|
||||
```bash
|
||||
pnpm install
|
||||
pnpm dev
|
||||
pnpm build
|
||||
```
|
||||
|
||||
## 包含
|
||||
|
||||
- 桌面端:顶部搜索、侧边导航、推荐网格、Shorts 横滑区、频道订阅。
|
||||
- 移动端:顶部紧凑栏、双列内容、横滑 Shorts、底部导航。
|
||||
- 原生 JS:搜索、题材筛选、播放提示、关注切换。
|
||||
- React:搜索、题材筛选、播放提示、关注切换、移动端菜单。
|
||||
- 多语言:印尼语 `?lang=id`、English `?lang=en`、简体中文 `?lang=zh`。
|
||||
- SEO:动态 `lang/title/description`、canonical、hreflang、Open Graph、Twitter Card、JSON-LD、robots.txt、sitemap.xml。
|
||||
|
||||
|
||||
Reference in new issue
Block a user