Skip to content

Commit a42419e

Browse files
committed
feat: initial commit
0 parents  commit a42419e

30 files changed

+5002
-0
lines changed

.github/workflows/ci.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
6+
permissions:
7+
contents: read
8+
9+
jobs:
10+
build:
11+
name: Lint and Build
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v5
16+
17+
- name: Setup Node.js
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version-file: '.nvmrc'
21+
cache: npm
22+
23+
- name: Install dependencies
24+
run: npm ci
25+
26+
- name: Run lint
27+
run: npm run lint
28+
29+
- name: Build site
30+
run: npm run build

.github/workflows/deploy.yml

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

.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist/
12+
dist-ssr/
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea/
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npx lint-staged

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v24

CONTRIBUTING.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# Contributing to LinkedIn Personal Site
2+
3+
Thanks for your interest in contributing! This project is a simple, SSG React app intended for easy customization and deployment. The guidelines below help keep contributions consistent and easy to review.
4+
5+
## Development Setup
6+
7+
- Node.js: use the version in `.nvmrc`
8+
- Install dependencies: `npm install`
9+
- Start dev server: `npm run dev`
10+
- Build SSG output: `npm run build`
11+
- Preview build: `npm run preview`
12+
13+
## Branch, Commit, PR
14+
15+
- Create a feature branch from `main`: `feat/...`, `fix/...`, or `docs/...`
16+
- Write clear, concise commits. Group related changes.
17+
- Open a PR to `main`. Include:
18+
- What changed and why
19+
- Screenshots if the UI changed
20+
- Any follow‑ups needed
21+
22+
## Code Style
23+
24+
- TypeScript + React functional components
25+
- Tailwind CSS utility classes for styling
26+
- Keep components small and typed; prefer clear prop names and types
27+
- Avoid unnecessary abstractions; favor readability
28+
29+
## Formatting & Linting
30+
31+
- Biome is configured in `biome.json`
32+
- Check: `npm run lint`
33+
- Auto‑fix: `npm run lint:fix`
34+
- Pre‑commit hooks run Biome via `lint-staged`
35+
36+
## Testing & Verification
37+
38+
- This project is a static site; verify builds succeed (`npm run build`) and manually test pages in the browser
39+
- For UI updates, please include a screenshot or short description of the change
40+
41+
## Content & Assets
42+
43+
- Site content lives in `site-data.json`
44+
- Replace `public/profile.jpeg` with your own profile image when customizing
45+
46+
## License
47+
48+
- By contributing, you agree your contributions will be licensed under the [MIT License](https://wei.mit-license.org/)

README.md

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# Simple Resume Template
2+
3+
A fast, responsive, SEO-friendly single‑page resume website powered by React, TypeScript, Tailwind CSS, Vite, and Static Site Generation (SSG).
4+
5+
## Demo & Screenshot
6+
7+
- Live demo: TBD
8+
- Screenshot: ![screenshot](https://github.com/user-attachments/assets/262e0d31-8d96-467a-b9ac-2ea2419204ae)
9+
10+
## Features
11+
12+
- React + TypeScript responsive single‑page app
13+
- Content is driven by a single JSON file for easy customization
14+
- Static Site Generation (SSG) for fast first paint and SEO
15+
- GitHub Actions for CI and GitHub Pages deployment
16+
- Formatter & linter with pre‑commit hooks
17+
18+
## Getting Started
19+
20+
1. Make a new repo by clicking "Use this template"
21+
2. Content: edit `site-data.json`
22+
3. Profile image: replace `public/profile.jpeg` with your own profile image (200×200 recommended)
23+
4. Style: edit Tailwind styles in `src/style.css` and within component files as needed
24+
25+
### Recommended: Generate `site-data.json` using AI from LinkedIn
26+
27+
1. LinkedIn Profile > More > Save as PDF
28+
2. Download [site-data.json](./site-data.json)
29+
3. Upload both files to your favorite AI and ask it to generate a `site-data.json` file tailored to you!
30+
31+
## Project Structure
32+
33+
- `index.html`: main html file
34+
- `src/`: react components and app entry
35+
- `public/`: static assets like profile image
36+
- `site-data.json`: all content for the site
37+
- `dist/`: generated site output (not committed)
38+
39+
## Scripts
40+
41+
- `npm run dev`: start local dev server
42+
- `npm run build`: build static site with SSG
43+
- `npm run preview`: preview built output
44+
- `npm run lint`: check formatting/lint with Biome
45+
- `npm run lint:fix`: auto‑format and fix with Biome
46+
47+
## Deployment
48+
49+
### GitHub Pages
50+
1) Ensure the repository has Pages enabled under Settings → Pages, with source “GitHub Actions”.
51+
2) The included workflow `.github/workflows/deploy.yml` builds and deploys on pushes to `main`.
52+
3) Push to `main`. The site will publish to the Pages URL shown in the workflow output.
53+
4) Optionally, set up a custom domain under Settings → Pages.
54+
55+
### Other static hosts
56+
- Netlify, Vercel, Cloudflare Pages: configure a project that runs `npm run build` and serves the `dist/` directory.
57+
58+
## Contribution Guidelines
59+
60+
We welcome improvements! Please see `CONTRIBUTING.md` for coding style, branch/PR process, and local setup. Highlights:
61+
- Use Node.js as defined in `.nvmrc`.
62+
- Before committing, run `npm run lint:fix`.
63+
- Keep components small and typed; prefer descriptive prop types.
64+
65+
## License
66+
67+
[MIT](https://wei.mit-license.org/)

biome.json

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
3+
"vcs": {
4+
"enabled": true,
5+
"clientKind": "git",
6+
"useIgnoreFile": true
7+
},
8+
"files": {
9+
"ignoreUnknown": false
10+
},
11+
"formatter": {
12+
"enabled": true,
13+
"indentStyle": "space",
14+
"indentWidth": 2,
15+
"lineWidth": 120
16+
},
17+
"linter": {
18+
"enabled": true,
19+
"rules": {
20+
"recommended": true,
21+
"correctness": {
22+
"useUniqueElementIds": "off"
23+
},
24+
"suspicious": {
25+
"noArrayIndexKey": "off",
26+
"noUnknownAtRules": "off"
27+
}
28+
}
29+
},
30+
"javascript": {
31+
"formatter": {
32+
"quoteStyle": "double"
33+
}
34+
},
35+
"assist": {
36+
"enabled": true,
37+
"actions": {
38+
"source": {
39+
"organizeImports": "on"
40+
}
41+
}
42+
}
43+
}

index.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!DOCTYPE html>
2+
<html lang="en" class="scroll-smooth">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<link rel="preconnect" href="https://fonts.googleapis.com">
7+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
8+
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet">
9+
</head>
10+
<body class="bg-slate-50 text-slate-600 antialiased text-sm">
11+
<div id="root"></div>
12+
<script type="module" src="/src/main.tsx"></script>
13+
</body>
14+
</html>

0 commit comments

Comments
 (0)