Skip to content

Commit aa09178

Browse files
authored
Use Next.js (#15)
1 parent 050ad8c commit aa09178

File tree

126 files changed

+17768
-3055
lines changed

Some content is hidden

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

126 files changed

+17768
-3055
lines changed

.archive/jekyll.zip

3.98 MB
Binary file not shown.

.eslintrc.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "next/core-web-vitals"
3+
}

.firebaserc

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"projects": {
3+
"default": "amr-abed"
4+
}
5+
}

.github/workflows/check.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Lint code
2+
3+
on:
4+
push:
5+
workflow_call:
6+
7+
jobs:
8+
check:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- name: Setup Node.js
13+
uses: actions/setup-node@v4
14+
with:
15+
node-version: 20
16+
- name: Install dependencies
17+
run: make install
18+
- name: Format and lint
19+
run: make lint

.github/workflows/deploy.yml

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Deploy to GitHub Pages
2+
on:
3+
pull_request:
4+
types: [closed]
5+
branches: [main]
6+
7+
permissions:
8+
contents: read
9+
pages: write
10+
id-token: write
11+
12+
concurrency:
13+
group: "pages"
14+
cancel-in-progress: false
15+
16+
jobs:
17+
check:
18+
uses: ./.github/workflows/check.yml
19+
build:
20+
if: github.event.pull_request.merged == true
21+
needs: [check]
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/checkout@v4
25+
- name: Setup Node.js
26+
uses: actions/setup-node@v4
27+
with:
28+
node-version: 20
29+
- name: Setup GitHuib Pages
30+
uses: actions/configure-pages@v5
31+
with:
32+
static_site_generator: next
33+
- name: Install dependencies
34+
run: make install
35+
36+
- name: Build with Next.js
37+
run: make build
38+
- name: Upload artifact
39+
uses: actions/upload-pages-artifact@v3
40+
with:
41+
path: ./out
42+
43+
deploy:
44+
environment:
45+
name: github-pages
46+
url: ${{ steps.deployment.outputs.page_url }}
47+
48+
runs-on: ubuntu-latest
49+
needs: build
50+
51+
steps:
52+
- name: Publish to GitHub Pages
53+
id: deployment
54+
uses: actions/deploy-pages@v4

.gitignore

+39-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,43 @@
22
.idea/
33
Icon*
44
*.bak*
5-
5+
*.log
66
blog/
7-
_site/
7+
_site/
8+
firebase-key.json
9+
.firebase/
10+
11+
# dependencies
12+
node_modules
13+
/.pnp
14+
.pnp.js
15+
.yarn/install-state.gz
16+
17+
# testing
18+
/coverage
19+
20+
# next.js
21+
/.next/
22+
/out/
23+
24+
# production
25+
/build
26+
27+
# misc
28+
.DS_Store
29+
*.pem
30+
31+
# debug
32+
npm-debug.log*
33+
yarn-debug.log*
34+
yarn-error.log*
35+
36+
# local env files
37+
.env*.local
38+
39+
# vercel
40+
.vercel
41+
42+
# typescript
43+
*.tsbuildinfo
44+
next-env.d.ts

.prettierignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
pnpm-lock.yaml
2+
package-lock.json
3+
firebase.json
4+
.github/

.prettierrc.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"plugins": ["@trivago/prettier-plugin-sort-imports"],
3+
"importOrder": ["^[react]", "^@(?!/)", "^@/", "^[./]"],
4+
"importOrderSeparation": true
5+
}

.travis.yml

-11
This file was deleted.

Makefile

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
install:
2+
npm install
3+
4+
format:
5+
npm run format
6+
7+
lint:
8+
npm run lint
9+
10+
local:
11+
npm run dev
12+
13+
build:
14+
npm run build
15+
16+
deploy: build
17+
firebase deploy --only hosting
18+
19+
clean:
20+
rm -rf node_modules .next out

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
## Amr Abed's Personal Website
1+
## Amr Abed's Personal Website
2+
23
[![Website](https://img.shields.io/website-up-down-brightgreen-red/https/amrabed.com.svg?label=amrabed.com)](https://amrabed.com)
34
[![Build Status](https://travis-ci.org/amrabed/amrabed.github.io.svg?branch=master)](https://travis-ci.org/amrabed/amrabed.github.io)
45
[![](https://sonarcloud.io/api/project_badges/measure?project=amrabed.github.io&metric=alert_status)](https://sonarcloud.io/dashboard?id=amrabed.github.io)

_config.yml

-20
This file was deleted.

_layouts/default.html

-95
This file was deleted.

about/index.html

-75
This file was deleted.

about/index.js

-2
This file was deleted.

assets/css/amrabed.min.css

-1
This file was deleted.

assets/css/creative.min.css

-5
This file was deleted.

0 commit comments

Comments
 (0)