Files
staytunedsite/README.md
T
2026-10-27 11:53:04 +08:00

33 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 未完待续 · 敬请期待
基于 Vite 和原生 JavaScript 的项目上线预告页。暖白底色搭配橙色星球,支持手机与桌面布局、轻量动效、系统分享及复制链接。
## 本地开发
使用 Node.js 20.19+ 或 22.12+:
```sh
npm install
npm run dev
```
项目的 `.npmrc` 启用了 `legacy-peer-deps`,用于绕过 npm 10 在解析 Vite 可选开发工具同伴依赖时触发的 `Cannot read properties of null (reading 'edgesOut')` 错误。直接运行上述安装命令即可。
## 构建与预览
```sh
npm run build
npm run preview
```
部署时发布 `dist` 目录。
## 调整内容
- `src/main.js`:品牌名称、页面文案、准备阶段和分享内容。
- `src/style.css`:颜色变量、星球插画、动效和响应式布局。
- `index.html`:浏览器标题、页面描述和社交分享元信息。
- `public/favicon.svg`:网站图标。
分享按钮优先调用浏览器的系统分享;不可用时复制链接。复制权限受限时展示可手动复制的链接。页面使用系统字体与 CSS/SVG 插画,无需外部图片或字体服务。