一个美丽的爱心动画效果页面。
-
在 GitHub 上创建新仓库
- 访问 https://github.com/new
- 仓库名称:例如
loveamazing(可以���定义) - 选择 Public(公开)
- 不要勾选 "Initialize this repository with a README"
- 点击 "Create repository"
-
在本地初始化 Git 并推送代码
# 在项目目录下执行 git init git add . git commit -m "Initial commit" git branch -M main git remote add origin https://github.com/你的用户名/仓库名.git git push -u origin main
-
启用 GitHub Pages
- 进入仓库页面
- 点击 Settings(设置)
- 在左侧菜单找到 Pages
- Source 选择 "Deploy from a branch"
- Branch 选择 "main",文件夹选择 "/ (root)"
- 点击 Save
-
访问你的网站
- 等待几分钟后,访问:
https://你的用户名.github.io/仓库名/ - 例如:
https://love99you.github.io/loveamazing/
- 等待几分钟后,访问:
直接在浏览器中打开 index.html 文件即可预览效果。