f695dd86e9
- 修复硬币翻转动画:从 @keyframes 改为 CSS transition 实现双向动画 - 修复教程自动显示:将 setTutorialChecked 移入 setTimeout 回调, 避免 useEffect cleanup 提前清除 timer 导致 setGuideStep 不执行 - 添加 AppShell UserSettingsContext 共享 userProfile - 实现教程结束后调用 updateUserSettings 标记 manual_divination_shown - 添加点击已确认爻进行编辑的功能 (editingIndex 状态) - 确认爻后不再重置硬币状态 - 积分显示从硬编码改为读取 API 返回值 - 手机端教程使用 absolute 定位替代 fixed 避免滚动偏移 - 添加 isMobile 响应式状态追踪窗口大小变化
Astro Starter Kit: Minimal
npm create astro@latest -- --template minimal
🧑🚀 Seasoned astronaut? Delete this file. Have fun!
🚀 Project Structure
Inside of your Astro project, you'll see the following folders and files:
/
├── public/
├── src/
│ └── pages/
│ └── index.astro
└── package.json
Astro looks for .astro or .md files in the src/pages/ directory. Each page is exposed as a route based on its file name.
There's nothing special about src/components/, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.
Any static assets, like images, can be placed in the public/ directory.
🧞 Commands
All commands are run from the root of the project, from a terminal:
| Command | Action |
|---|---|
npm install |
Installs dependencies |
npm run dev |
Starts local dev server at localhost:4321 |
npm run build |
Build your production site to ./dist/ |
npm run preview |
Preview your build locally, before deploying |
npm run astro ... |
Run CLI commands like astro add, astro check |
npm run astro -- --help |
Get help using the Astro CLI |
👀 Want to learn more?
Feel free to check our documentation or jump into our Discord server.