Skip to content

Commit ee4703a

Browse files
committed
update homepage to terminal style (refrence TermHub)
1 parent 641e626 commit ee4703a

212 files changed

Lines changed: 18429 additions & 62283 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.env.example

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Site title shown in browser tab
2+
VITE_SITE_TITLE=My Portfolio
3+
4+
# Google Analytics measurement ID (leave blank to disable)
5+
VITE_GA_ID=

.github/workflows/pages.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Build and Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: pages
15+
cancel-in-progress: true
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v4
23+
24+
- name: Setup Node
25+
uses: actions/setup-node@v4
26+
with:
27+
node-version: 20
28+
cache: npm
29+
30+
- name: Install dependencies
31+
run: npm ci
32+
33+
- name: Build
34+
run: npm run build
35+
env:
36+
BASE_URL: /${{ github.event.repository.name }}/
37+
38+
- name: Ensure SPA fallback and .nojekyll
39+
run: |
40+
cp dist/index.html dist/404.html
41+
touch dist/.nojekyll
42+
43+
- name: Upload Pages artifact
44+
uses: actions/upload-pages-artifact@v3
45+
with:
46+
path: ./dist
47+
48+
deploy:
49+
environment:
50+
name: github-pages
51+
url: ${{ steps.deployment.outputs.page_url }}
52+
runs-on: ubuntu-latest
53+
needs: build
54+
steps:
55+
- name: Deploy to GitHub Pages
56+
id: deployment
57+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,26 @@
1-
.DS_Store
2-
node_modules
3-
/dist
4-
5-
firebase.json
6-
.firebase
7-
.firebaserc
8-
9-
config.js
10-
11-
# local env files
12-
.env.local
13-
.env.*.local
14-
15-
16-
# Log files
1+
# Logs
2+
logs
3+
*.log
174
npm-debug.log*
185
yarn-debug.log*
196
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
.env
2015

2116
# Editor directories and files
17+
.vscode/*
18+
!.vscode/extensions.json
2219
.idea
23-
.vscode
20+
.DS_Store
2421
*.suo
2522
*.ntvs*
2623
*.njsproj
2724
*.sln
2825
*.sw?
26+
/en

.mcp.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"mcpServers": {
3+
"termhub": {
4+
"command": "node",
5+
"args": ["mcp-server/dist/index.js"],
6+
"env": {
7+
"TERMHUB_ROOT": "."
8+
}
9+
}
10+
}
11+
}

CONTRIBUTING.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# Contributing to Terminal Portfolio Template
2+
3+
Thank you for your interest in contributing! This document provides guidelines for contributing to the project.
4+
5+
## Ways to Contribute
6+
7+
- **Bug Reports:** Open an issue describing the bug, steps to reproduce, and expected behavior.
8+
- **Feature Requests:** Open an issue with a clear description of the proposed feature.
9+
- **Pull Requests:** Bug fixes, new components, documentation improvements are all welcome.
10+
- **Themes:** Share your custom color palettes or terminal themes.
11+
12+
## Development Setup
13+
14+
```bash
15+
git clone https://github.com/H-Freax/TermHub.git
16+
cd TermHub
17+
npm install
18+
npm run dev
19+
```
20+
21+
## Pull Request Guidelines
22+
23+
1. **Fork & branch:** Create a feature branch from `main` (e.g., `feature/add-timeline-component`).
24+
2. **Keep it focused:** One PR per feature or fix. Avoid mixing unrelated changes.
25+
3. **Test your changes:** Run `npm run build` to ensure TypeScript compiles without errors.
26+
4. **Commit messages:** Use clear, imperative-mood messages:
27+
- `fix: resolve dark mode flicker on Projects page`
28+
- `feat: add responsive tab bar to Experience terminal`
29+
- `docs: update customization guide in README`
30+
5. **No breaking changes to config:** If your change requires users to update `src/config/` or `src/data/` files, document the migration clearly.
31+
32+
## Code Style
33+
34+
- Follow existing patterns and naming conventions in the codebase.
35+
- Use the centralized `terminalPalette` from `src/config/theme.ts` -- do not hardcode color values in components.
36+
- Import personal info from `src/config/personal.ts` -- do not hardcode names, emails, or URLs.
37+
- Keep components focused: one component, one responsibility.
38+
39+
## AI-Assisted Contributions
40+
41+
If your contribution uses AI-generated code:
42+
- You must understand and be able to explain all code you submit.
43+
- Disclose AI assistance in your PR description.
44+
- Ensure AI-generated code follows the project's style and conventions.
45+
46+
## License
47+
48+
By contributing, you agree that your contributions will be licensed under the [GNU General Public License v3.0](LICENSE).

0 commit comments

Comments
 (0)