Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ui): migrate from daisyui to shadcn #38

Merged
merged 39 commits into from
Sep 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
6e87a93
chore: delete all files for migration
MFarabi619 Jul 21, 2024
6d5e576
feat: add fumadocs
MFarabi619 Jul 21, 2024
79f9b0a
chore: add back public directory
MFarabi619 Jul 21, 2024
281c57b
chore: add shadcn ui
MFarabi619 Jul 21, 2024
a1d8684
ci: refactor pipeline
MFarabi619 Jul 21, 2024
ae5f0e7
chore: add husky
MFarabi619 Jul 21, 2024
a9885f4
chore: add anthony fu's eslint config
MFarabi619 Jul 21, 2024
26e356c
style: run ESLint on project
MFarabi619 Jul 21, 2024
3b091df
chore: add lint-staged
MFarabi619 Jul 21, 2024
20d51df
chore: add commitlint
MFarabi619 Jul 21, 2024
90f238a
chore: add commitizen
MFarabi619 Jul 21, 2024
6aa7311
chore: add semantic release
MFarabi619 Jul 21, 2024
0461dd6
chore: add storybook
MFarabi619 Jul 21, 2024
fffb3dc
chore: add storybook addons, theming not working on preview
MFarabi619 Jul 21, 2024
e2d78b6
chore: migrate content over
MFarabi619 Jul 22, 2024
2c947bf
feat: convert header to new design
MFarabi619 Jul 22, 2024
82736c7
feat: convert hero section to new design
MFarabi619 Jul 22, 2024
0a0c719
feat: darken background
MFarabi619 Jul 22, 2024
8531898
fix(build): bundler failing
MFarabi619 Aug 18, 2024
448e027
fix(sections/about): convert hero section
MFarabi619 Aug 18, 2024
f066cab
fix(build): failing due to typescript error
MFarabi619 Aug 19, 2024
9c18391
chore(config/gitignore): add .env to .gitignore
MFarabi619 Aug 19, 2024
2befa00
fix(footer): misaligned icons
MFarabi619 Aug 19, 2024
f96839b
feat(ui/storybook): re-order sidebar categories
MFarabi619 Aug 19, 2024
ab37e1e
fix(repo): incorrect package.json git repository url
MFarabi619 Aug 21, 2024
18c1a7f
chore(deps): add react-icons
MFarabi619 Aug 21, 2024
670ad3f
refactor(components/footer): extract social media icons out into comp…
MFarabi619 Aug 21, 2024
e4bd18a
chore: add commented hsl-wrapped values for nvim color plugin to work
MFarabi619 Sep 5, 2024
2deaec7
chore(config/tailwind): add mobile screen sizes
MFarabi619 Sep 5, 2024
25c998d
chore(docs): disable eslint rule at line-level with explanation
MFarabi619 Sep 5, 2024
4c8c381
refactor(api/send): remove '^M' carriage returns
MFarabi619 Sep 8, 2024
6473977
feat(contact): migrate form to use shadcn and aceternity
MFarabi619 Sep 8, 2024
8e14ccb
build: fix failing vercel deployment due to frozen lockfile and docs …
MFarabi619 Sep 8, 2024
1407705
chore: enable vercel analytics
MFarabi619 Sep 8, 2024
3e48851
chore: enable vercel speed insights
MFarabi619 Sep 8, 2024
edf4ea2
feat(components/shadcn): add sonner toast
MFarabi619 Sep 8, 2024
8baecb0
feat: improve email template formatting
MFarabi619 Sep 8, 2024
80ca45d
feat(ui/contact): disable button while message is sending
MFarabi619 Sep 8, 2024
f3f6f4c
feat(ui/contact): add confirmation toasts when submit button is clicked
MFarabi619 Sep 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .cz.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{ "path": "@commitlint/cz-commitlint" }
97 changes: 0 additions & 97 deletions .eslintrc.json

This file was deleted.

130 changes: 63 additions & 67 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,79 +2,75 @@ name: CI

on:
push:
branches: [main]
branches: '*'
pull_request:
branches: [main]
branches: '*'

jobs:
build:
release:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x, 22.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

name: Build with ${{ matrix.node-version }}
runs-on: ubuntu-latest
node-version: [20]

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
- name: 🛎️ Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 0 # All history for branches and tags

- name: 📦 Install pnpm
uses: pnpm/action-setup@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run build

# test:
# strategy:
# matrix:
# node-version: [20.x]

# name: Run all tests
# runs-on: ubuntu-latest
#
# steps:
# - uses: actions/checkout@v3
# with:
# fetch-depth: 0 # Retrieve Git history, needed to verify commits
# - name: Use Node.js ${{ matrix.node-version }}
# uses: actions/setup-node@v3
# with:
# node-version: ${{ matrix.node-version }}
# cache: 'npm'
# - run: npm ci
#
# - name: Build Next.js for E2E tests
# run: npm run build
#
# - if: github.event_name == 'pull_request'
# name: Validate all commits from PR
# run: npx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose
#
# - name: Linter
# run: npm run lint
#
# - name: Type checking
# run: npm run check-types

# - name: Run unit tests
# run: npm run test

# - name: Upload coverage reports to Codecov
# uses: codecov/codecov-action@v3
version: 9

- name: 🛠️ Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: '${{ matrix.node-version }}'
cache: pnpm

- name: 📂 Install Dependencies
run: pnpm i

- name: 🧐 Check Code Quality
run: pnpm lint

# - name: 🎭 Install Playwright
# run: pnpm i playwright http-server wait-on; npx playwright install --with-deps

# - name: 📔 Build Storybook
# run: pnpm build-storybook --quiet

# - name: 🧪 Serve Storybook and run tests
# run: |
# pnpx concurrently -k -s first -n "SB,TEST" -c "magenta,blue" \
# "pnpm exec http-server storybook-static --port 6006 --silent" \
# "pnpm exec wait-on tcp:6006 && pnpm test-storybook"

# - name: 🔬 Run Unit Tests
# run: pnpm jest ...

# - name: 🔍 Run Integration Tests
# run: pnpm jest ...

# - name: ⌚ 💀 Run E2E Tests
# run: pnpx playwright test

# - name: 👀 Run Visual Tests
# env:
# CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

# - name: Install Playwright (used for Storybook and E2E tests)
# run: npx playwright install --with-deps

# - name: Run storybook tests
# run: npm run test-storybook:ci
#
# - uses: actions/upload-artifact@v3
# if: always()
# with:
# name: test-results
# path: test-results/
# retention-days: 7
# CHROMATIC_PROJECT_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
# run: pnpm run chromatic

- name: 🏗️ Build Project
# env:
# SANITY_API_READ_TOKEN: ${{ secrets.SANITY_API_READ_TOKEN }}
run: pnpm build:all

- name: 🤖 Run Semantic Release
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: pnpm exec semantic-release

- name: 💰 Profit
run: echo 🐞
36 changes: 15 additions & 21 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,38 +1,32 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
# deps
/node_modules
/.pnp
.pnp.js
.yarn/install-state.gz

# testing
/coverage
# generated content
.map.ts
.contentlayer
.content-collections

# next.js
# test & build
/coverage
/.next/
/out/

# production
/build
*.tsbuildinfo

# caches
.eslintcache

# misc
.DS_Store
*.pem

# debug
/.pnp
.pnp.js
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# local env files
# others
.env
.env*.local

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts

*storybook.log
1 change: 1 addition & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pnpm dlx commitlint --edit
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pnpm lint-staged
1 change: 0 additions & 1 deletion .prettierignore

This file was deleted.

4 changes: 0 additions & 4 deletions .prettierrc

This file was deleted.

40 changes: 40 additions & 0 deletions .storybook/custom-viewports.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
import { INITIAL_VIEWPORTS } from '@storybook/addon-viewport'

export const customViewports = {
...INITIAL_VIEWPORTS,
'720p': {
name: '720p',
styles: {
width: '1280px',
height: '720px',
},
},
'1080p': {
name: '1080p',
styles: {
width: '1920px',
height: '1080px',
},
},
'2k': {
name: '2K',
styles: {
width: '2560px',
height: '1440px',
},
},
'4k': {
name: '4K',
styles: {
width: '3840px',
height: '2160px',
},
},
'21/9': {
name: '21/9',
styles: {
width: '2560px',
height: '1080px',
},
},
}
Loading
Loading