Skip to content

Commit b2157e7

Browse files
committed
Publishing nextjs to GH Pages
1 parent 1053e9a commit b2157e7

73 files changed

Lines changed: 8120 additions & 314 deletions

Some content is hidden

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

.github/workflows/deploy.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Deploy Next.js to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
deploy:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
18+
- name: Setup Node.js
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: 20
22+
23+
- name: Install dependencies
24+
run: npm ci
25+
26+
- name: Build static site
27+
run: npm run build
28+
29+
- name: Export static site
30+
run: npm run export
31+
32+
- name: Add .nojekyll
33+
run: touch out/.nojekyll
34+
35+
- name: Deploy to GitHub Pages
36+
uses: peaceiris/actions-gh-pages@v4
37+
with:
38+
github_token: ${{ secrets.GITHUB_TOKEN }}
39+
publish_dir: ./out

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,5 @@
2121
npm-debug.log*
2222
yarn-debug.log*
2323
yarn-error.log*
24+
/.next
25+
/.vscode

404.html

Lines changed: 0 additions & 1 deletion
This file was deleted.

README.md

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
# Personal Portfolio Website
2+
3+
A modern and creative portfolio website built with Next.js and Three.js, featuring interactive 3D animations and a sleek design.
4+
5+
## Features
6+
7+
- Interactive 3D background using Three.js
8+
- Smooth animations with Framer Motion
9+
- Responsive design
10+
- Modern UI with Tailwind CSS
11+
- TypeScript support
12+
13+
## Tech Stack
14+
15+
- Next.js 14
16+
- React Three Fiber
17+
- Three.js
18+
- Framer Motion
19+
- Tailwind CSS
20+
- TypeScript
21+
22+
## Getting Started
23+
24+
1. Clone the repository:
25+
```bash
26+
git clone <repository-url>
27+
cd portfolio-website
28+
```
29+
30+
2. Install dependencies:
31+
```bash
32+
npm install
33+
```
34+
35+
3. Run the development server:
36+
```bash
37+
npm run dev
38+
```
39+
40+
4. Open [http://localhost:3000/portfolio](http://localhost:3000/portfolio) with your browser to see the result.
41+
42+
## Deploying to GitHub Pages
43+
44+
1. Make sure your repo is set up with a `gh-pages` branch:
45+
```bash
46+
git checkout --orphan gh-pages
47+
git reset --hard
48+
git commit --allow-empty -m "Initialize gh-pages"
49+
git push origin gh-pages
50+
git checkout main
51+
```
52+
53+
2. Deploy:
54+
```bash
55+
npm run deploy
56+
```
57+
58+
This will build and export the site to the `out` directory and push it to the `gh-pages` branch. Your site will be available at:
59+
60+
```
61+
https://lemon.github.io/portfolio/
62+
```
63+
64+
## Project Structure
65+
66+
```
67+
portfolio-website/
68+
├── src/
69+
│ ├── app/ # Next.js app directory
70+
│ ├── components/ # React components
71+
│ └── styles/ # Global styles
72+
└── public/ # Static assets
73+
```
74+
75+
## Customization
76+
77+
- Update the content in `src/app/page.tsx` and components in `src/components/` to personalize your portfolio
78+
- Modify the 3D scene in `src/components/three/Scene.tsx`
79+
- Adjust colors and styles in `tailwind.config.ts`
80+
81+
## License
82+
83+
MIT

_next/static/chunks/1329d575-d64afb4cdccf38b3.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

_next/static/chunks/290-836de0cd5e1ad0ec.js

Lines changed: 0 additions & 34 deletions
This file was deleted.

_next/static/chunks/4bd1b696-a4846ff7f9ee774c.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

_next/static/chunks/684-0f030171f2c78459.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

_next/static/chunks/8e1d74a4-a9bb94b80cf9752d.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

_next/static/chunks/app/_not-found/page-046e858efe863284.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)