OpenGuitarChordProject 个人主页 - 独立AI研究者阿早的项目展示网站。
这是一个极简、学术、开源风格的个人主页,核心是展示 OpenGuitarChordProject(开源吉他和弦识别项目)。
设计原则:
- 项目 > 个人
- 诚实 > 包装
- 清晰 > 炫技
- React 18 + TypeScript
- Vite(构建工具)
- Tailwind CSS(样式)
- shadcn/ui(UI组件)
- Lucide React(图标)
npm installnpm run devnpm run build构建输出在 dist/ 目录。
- 创建 GitHub 仓库
zaosusu.github.io - 将代码推送到仓库
- 在仓库设置中启用 GitHub Pages
- 选择部署分支(通常是
main或gh-pages)
在项目根目录创建 .github/workflows/deploy.yml:
name: Deploy to GitHub Pages
on:
push:
branches: [ main ]
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: 'pages'
cancel-in-progress: true
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: './dist'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4.
├── src/
│ ├── sections/ # 页面区块组件
│ │ ├── Hero.tsx # 首屏
│ │ ├── ProjectOverview.tsx # 项目介绍
│ │ ├── AboutMe.tsx # 关于我
│ │ ├── Timeline.tsx # 时间线
│ │ ├── Contact.tsx # 联系方式
│ │ └── Footer.tsx # 页脚
│ ├── App.tsx # 主应用组件
│ ├── App.css # 应用样式
│ ├── index.css # 全局样式
│ └── main.tsx # 入口文件
├── index.html # HTML模板
├── tailwind.config.js # Tailwind配置
├── vite.config.ts # Vite配置
└── package.json # 项目依赖
编辑 src/sections/ 目录下的对应组件:
Hero.tsx- 修改标题、副标题ProjectOverview.tsx- 修改项目介绍AboutMe.tsx- 修改个人背景Timeline.tsx- 修改时间线内容Contact.tsx- 修改联系方式
编辑 src/index.css 或 tailwind.config.js 修改颜色、字体等样式变量。
- 背景主色:
#0a0a0a(纯黑) - 背景次色:
#1a1a1a(深灰) - 文字主色:
#f0f0f0(白色) - 文字次色:
#999999(中灰) - 文字弱化:
#666666(深灰) - 边框:
#333333
- 中文:Noto Sans SC
- 英文/数字:Inter
MIT License