Skip to content

Commit

Permalink
doc: website
Browse files Browse the repository at this point in the history
  • Loading branch information
Arman19941113 committed Nov 16, 2024
1 parent 4783742 commit 11d341e
Show file tree
Hide file tree
Showing 30 changed files with 3,062 additions and 4 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/website.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: deployment

on:
push:
branches: [ "main" ]
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

jobs:
build-and-deployment:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:

- name: Checkout
uses: actions/checkout@v4

- name: Set up pnpm
uses: pnpm/action-setup@v4
with:
version: 9

- name: Set up node
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'

- name: Install dependencies
run: cd web && pnpm install

- name: Build
run: cd web && pnpm run build

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: 'web/out'

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,10 @@ dist-ssr
*.njsproj
*.sln
*.sw?

# next.js
.next/
out/
# typescript
*.tsbuildinfo
next-env.d.ts
6 changes: 2 additions & 4 deletions postcss.config.mjs
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import tailwindcss from 'tailwindcss'
import postcssPresetEnv from 'postcss-preset-env'
import tailwindcss from 'tailwindcss'

export default {
plugins: [
tailwindcss,
postcssPresetEnv({
stage: 0,
}),
postcssPresetEnv(),
],
}
10 changes: 10 additions & 0 deletions web/next.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
basePath: '/rename-photos',
output: 'export',
images: {
loaderFile: './src/assets/loader.ts',
},
}

export default nextConfig
28 changes: 28 additions & 0 deletions web/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"name": "web",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start"
},
"dependencies": {
"@nextui-org/button": "^2.0.38",
"@nextui-org/snippet": "^2.0.43",
"@nextui-org/system": "^2.2.6",
"@nextui-org/theme": "^2.2.11",
"clsx": "^2.1.1",
"framer-motion": "^11.11.17",
"next": "15.0.3",
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"devDependencies": {
"@types/node": "^20",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"postcss": "^8.4.49",
"tailwindcss": "^3.4.15",
"typescript": "^5.6.3"
}
}
Loading

0 comments on commit 11d341e

Please sign in to comment.