Skip to content

Commit 4e0dfad

Browse files
committed
Completed
0 parents  commit 4e0dfad

Some content is hidden

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

48 files changed

+8611
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Auto Update Portfolios
2+
3+
on:
4+
schedule:
5+
- cron: "0 */6 * * *" # every 6 hours
6+
workflow_dispatch: # manual trigger
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
update-periodically:
13+
runs-on: ubuntu-latest
14+
env:
15+
FETCH_TOKEN: ${{ secrets.GITHUB_FETCH_TOKEN }}
16+
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v4
20+
with:
21+
persist-credentials: false # avoid conflicts when pushing manually
22+
23+
- name: Setup Node.js
24+
uses: actions/setup-node@v3
25+
with:
26+
node-version: 20
27+
28+
- name: Run script
29+
run: node scripts/sync_portfolios.js
30+
31+
- name: Commit & Push changes
32+
run: |
33+
git config user.name "github-actions[bot]"
34+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
35+
git add data/portfolios.json
36+
git diff --cached --quiet && echo "✅ No changes to commit" && exit 0
37+
git commit -m "🔄 Auto update portfolio data [skip ci]"
38+
git push https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git HEAD:${{ github.ref_name }}

.github/workflows/sync-readme.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Update data on readme
2+
3+
on:
4+
push:
5+
paths:
6+
- "README.md"
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
update-on-readme:
13+
runs-on: ubuntu-latest
14+
env:
15+
FETCH_TOKEN: ${{ secrets.FETCH_TOKEN }}
16+
steps:
17+
- name: Checkout Repo
18+
uses: actions/checkout@v4
19+
with:
20+
persist-credentials: false # avoid conflicts when pushing manually
21+
22+
- name: Install nodejs
23+
uses: actions/setup-node@v3
24+
with:
25+
node-version: 20
26+
27+
- name: Run Update Script
28+
run: node scripts/sync_readme.js
29+
30+
- name: Commit & Push Updated Data
31+
run: |
32+
git config user.name "github-actions[bot]"
33+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
34+
git add data/portfolios.json README.md
35+
git diff --cached --quiet && echo "✅ No changes to commit" && exit 0
36+
git commit -m "🔄 Auto update portfolio data [skip ci]"
37+
git push https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git HEAD:${{ github.ref_name }}

.gitignore

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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?
25+
26+
27+
.env*
28+

.prettierrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"plugins": [
3+
"prettier-plugin-tailwindcss"
4+
],
5+
"tailwindStylesheet": "./src/index.css"
6+
}

README.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# Devfolios
2+
3+
> A community-driven website that gathers and displays **developer portfolios from around the internet** to help users get ideas for their own portfolios.
4+
5+
---
6+
7+
## Portfolio Conditions
8+
9+
Make sure your portfolio satisfies the following requirements before submitting it:
10+
11+
- **Personal website**
12+
- **Effort in design**
13+
- **Responsive**
14+
- **Embeddable**
15+
- **written in English**
16+
- **one portfolio per GitHub username**
17+
18+
---
19+
20+
## How to Include Your Portfolio
21+
22+
1. This repository should be **forked**.
23+
2. In your fork, open the `README.md` file.
24+
3. Include your portfolio entry in the `Portfolios` section (below) as follows:
25+
26+
```markdown
27+
- [your_github_username](https://your-portfolio-link.com)
28+
```
29+
30+
For instance:
31+
32+
```markdown
33+
- [notstark](https://next-portfolio-stark.vercel.app)
34+
```
35+
36+
Open a Pull Request after committing your modification.
37+
38+
## Portfolios
39+
- [alyssaxuu](https://www.alyssax.com)
40+
- [antfu](https://antfu.me)
41+
- [aulianza](https://aulianza.id)
42+
- [braydoncoyer](https://www.braydoncoyer.dev)
43+
- [devshinthant](https://devshinthant.vercel.app)
44+
- [Evavic44](https://victoreke.com)
45+
- [icantcodefyi](https://ani.ink)
46+
- [israelmitolu](https://www.mitolu.dev)
47+
- [jktrn](https://enscribe.dev)
48+
- [Kinfe123](https://kinfish.farmui.com)
49+
- [ncdai](https://chanhdai.com)
50+
- [Neosoulink](https://nathan-mande.netlify.app)
51+
- [notstark](https://next-portfolio-stark.vercel.app)
52+
- [satnaing](https://satnaing.dev)
53+
- [wiscaksono](https://wiscaksono.com)

components.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"$schema": "https://ui.shadcn.com/schema.json",
3+
"style": "new-york",
4+
"rsc": false,
5+
"tsx": true,
6+
"tailwind": {
7+
"config": "",
8+
"css": "src/index.css",
9+
"baseColor": "zinc",
10+
"cssVariables": true,
11+
"prefix": ""
12+
},
13+
"iconLibrary": "lucide",
14+
"aliases": {
15+
"components": "@/Components",
16+
"utils": "@/lib/utils",
17+
"ui": "@/Components/ui",
18+
"lib": "@/lib",
19+
"hooks": "@/hooks"
20+
},
21+
"registries": {}
22+
}

eslint.config.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import js from '@eslint/js'
2+
import globals from 'globals'
3+
import reactHooks from 'eslint-plugin-react-hooks'
4+
import reactRefresh from 'eslint-plugin-react-refresh'
5+
import tseslint from 'typescript-eslint'
6+
import { defineConfig, globalIgnores } from 'eslint/config'
7+
8+
export default defineConfig([
9+
globalIgnores(['dist']),
10+
{
11+
files: ['**/*.{ts,tsx}'],
12+
extends: [
13+
js.configs.recommended,
14+
tseslint.configs.recommended,
15+
reactHooks.configs['recommended-latest'],
16+
reactRefresh.configs.vite,
17+
],
18+
languageOptions: {
19+
ecmaVersion: 2020,
20+
globals: globals.browser,
21+
},
22+
},
23+
])

index.html

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<!doctype html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="UTF-8" />
6+
<link rel="icon" type="image/svg+xml" href="/favicon.ico" />
7+
<meta property="og:image" content="https://i.ibb.co/svD8PvWv/og.jpg" />
8+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
9+
<meta property="og:description" content="Find best portfolio inspirations from all over the internet." />
10+
<title>Devfolios</title>
11+
</head>
12+
13+
<body>
14+
<div id="root"></div>
15+
<script type="module" src="/src/main.tsx"></script>
16+
</body>
17+
18+
</html>

0 commit comments

Comments
 (0)