Skip to content

Commit fd39980

Browse files
vickyadriimpsalungggAfandyWadzaky
authored
refactor: improve landing page (#28)
* init setup new project * feat(setup): setup eslint, husky and prettier * feat(setup): setup jest for the unit testing * feat: create navbar * feat: create navbar * feat: dark mode toggle * feat: create hero section component * chore: icon image logo * chore: remove comment * chore: remove unused code * fix: color dark mode * fix: fix the background gradient is broken * feat: event page * chore: add color foreground * chore: reusable component card, create unit testing card * set ci/cd * test ci/cd on push * test * feat: ci/cd staging * add type module package json * update yarn * add ts-jest * add resolutions string-width * remove nextpage type * feat: events card and typography responsive * feat: support module * fix * test ci-cd * feat: add translation next-intl * chore: remove props on events page * fix: map link, type, etc * chore: add key * [FEAT] - Add translation next-intl * feat: add translation next-intl * chore: remove props on events page * fix: map link, type, etc * chore: add key * test deployment * fix: bg color card when light theme * wip: about section * feat: create partner section * fix: added back missing card bg background * fix: tailwind is broken * feat: add join community btn * fix: update logic where set theme to dark or light * feat: create contact and footer components * feat: adjust the footer * ref: remove locale prefix * ref: remove locale prefix * chore: change default locale to id * fix: error build * fix: test build * fix: error build * fix: error build * fix: error build * fix: error build * fix: responsive footer * feat: add english locale data using next-intl * feat: create certificate detail page --------- Co-authored-by: mpsalunggg <[email protected]> Co-authored-by: afandy2000 <[email protected]> Co-authored-by: Muhamad Putra Satria <[email protected]> Co-authored-by: adzaky <[email protected]>
1 parent 24b8455 commit fd39980

File tree

157 files changed

+8778
-2397
lines changed

Some content is hidden

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

157 files changed

+8778
-2397
lines changed

.editorconfig

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

.env.local

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

.eslintrc.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"es2021": true
5+
},
6+
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "next/core-web-vitals", "prettier"],
7+
"parser": "@typescript-eslint/parser",
8+
"parserOptions": {
9+
"ecmaVersion": "latest",
10+
"sourceType": "module"
11+
},
12+
"plugins": ["@typescript-eslint", "react"],
13+
"rules": {
14+
"no-console": "warn",
15+
"no-undef": "off",
16+
"no-unused-vars": "off",
17+
"react/no-unescaped-entities": "off",
18+
"@next/next/no-page-custom-font": "off"
19+
}
20+
}

.github/workflows/development.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Development CI/CD Piipeline
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- development
7+
types:
8+
- closed
9+
10+
jobs:
11+
build-test:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout Code
16+
uses: actions/checkout@v2
17+
18+
- name: Set up Node.js
19+
uses: actions/setup-node@v3
20+
with:
21+
node-version: "20"
22+
23+
- name: Install Dependencies
24+
run: yarn
25+
26+
- name: Test Next.js App
27+
run: yarn test
28+
29+
- name: Build Next.js App
30+
run: yarn build
31+
32+
deploy:
33+
runs-on: ubuntu-latest
34+
needs: build-test
35+
environment: development
36+
steps:
37+
- name: Checkout Code
38+
uses: actions/checkout@v2
39+
40+
- name: Deploy to Development Environment
41+
env:
42+
VPS_IP: ${{ secrets.VPS_IP }}
43+
VPS_USER: ${{ secrets.VPS_USER }}
44+
VPS_KEY: ${{ secrets.VPS_KEY }}
45+
run: |
46+
echo "$VPS_KEY" > vps_key.pem
47+
48+
chmod 600 vps_key.pem
49+
50+
ssh -o StrictHostKeyChecking=no -i vps_key.pem $VPS_USER@$VPS_IP "
51+
cd /home/hmcroot/app/development/hammercode-web &&
52+
git restore . && git clean -f && git checkout development &&
53+
git pull origin development &&
54+
yarn &&
55+
yarn build &&
56+
pm2 restart hammercode-web-dev || PORT=4001 pm2 start npm --name 'hammercode-web-dev' -- start"

.gitignore

Lines changed: 35 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,36 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
.yarn/install-state.gz
8+
9+
# testing
10+
/coverage
11+
12+
# next.js
13+
/.next/
14+
/out/
15+
16+
# production
17+
/build
18+
19+
# misc
120
.DS_Store
2-
.next
3-
pnpm*
4-
.yarn*
5-
*.log
6-
node_modules
7-
out
21+
*.pem
22+
23+
# debug
24+
npm-debug.log*
25+
yarn-debug.log*
26+
yarn-error.log*
27+
28+
# local env files
29+
.env*.local
30+
31+
# vercel
32+
.vercel
33+
34+
# typescript
35+
*.tsbuildinfo
36+
next-env.d.ts

.husky/pre-commit

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
npx lint-staged
2+
yarn lint

.prettierignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.next
2+
.cache
3+
package-lock.json
4+
public
5+
node_modules
6+
next-env.d.ts
7+
next.config.ts
8+
yarn.lock

.prettierrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"trailingComma": "es5",
3+
"bracketSpacing": true,
4+
"printWidth": 120,
5+
"tabWidth": 2,
6+
"singleQuote": false,
7+
"arrowParens": "always"
8+
}

README.md

Lines changed: 22 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,36 @@
1-
<p align="center">
2-
<a href="https://hammercode.org">
3-
<h1 align="center">Hammercode</h1>
4-
</a>
5-
</p>
6-
7-
<p align="center">
8-
9-
</p>
1+
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
102

113
## Getting Started
124

13-
Visit <a aria-label="next.js learn" href="<<<<https://nextjs.org/learn>>>>">https://nextjs.org/learn</a> to get started with Next.js.
14-
15-
## Documentation
16-
17-
Visit [https://nextjs.org/docs](https://nextjs.org/docs) to view the full documentation.
18-
19-
## Who is using Next.js?
20-
21-
Next.js is used by the world's leading companies. Check out the [Next.js Showcase](https://nextjs.org/showcase) to learn more.
22-
23-
## Community
24-
25-
The Next.js community can be found on [GitHub Discussions](https://github.com/vercel/next.js/discussions), where you can ask questions, voice ideas, and share your projects.
5+
First, run the development server:
266

27-
To chat with other community members you can join the [Next.js Discord](https://nextjs.org/discord).
7+
```bash
8+
npm run dev
9+
# or
10+
yarn dev
11+
# or
12+
pnpm dev
13+
# or
14+
bun dev
15+
```
2816

29-
Our [Code of Conduct](https://github.com/vercel/next.js/blob/canary/CODE_OF_CONDUCT.md) applies to all Next.js community channels.
17+
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
3018

31-
## Contributing
19+
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
3220

33-
Please see our [contributing.md](/contributing.md).
21+
This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.
3422

35-
### Good First Issues
23+
## Learn More
3624

37-
We have a list of [good first issues](https://github.com/vercel/next.js/labels/good%20first%20issue) that contain bugs that have a relatively limited scope. This is a great place to get started, gain experience, and get familiar with our contribution process.
25+
To learn more about Next.js, take a look at the following resources:
3826

39-
## Authors
27+
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
28+
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
4029

41-
- Tim Neutkens ([@timneutkens](https://twitter.com/timneutkens))
42-
- Naoyuki Kanezawa ([@nkzawa](https://twitter.com/nkzawa))
43-
- Guillermo Rauch ([@rauchg](https://twitter.com/rauchg))
44-
- Arunoda Susiripala ([@arunoda](https://twitter.com/arunoda))
45-
- Tony Kovanen ([@tonykovanen](https://twitter.com/tonykovanen))
46-
- Dan Zajdband ([@impronunciable](https://twitter.com/impronunciable))
30+
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
4731

48-
## Security
32+
## Deploy on Vercel
4933

50-
If you believe you have found a security vulnerability in Next.js, we encourage you to responsibly disclose this and not open a public issue. We will investigate all legitimate reports. Email `security@vercel.com` to disclose any security vulnerabilities.
34+
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
5135

52-
<https://vercel.com/security>
36+
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.

components.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"$schema": "https://ui.shadcn.com/schema.json",
3+
"style": "default",
4+
"rsc": true,
5+
"tsx": true,
6+
"tailwind": {
7+
"config": "tailwind.config.ts",
8+
"css": "src/app/globals.css",
9+
"baseColor": "slate",
10+
"cssVariables": true,
11+
"prefix": ""
12+
},
13+
"aliases": {
14+
"components": "@/components",
15+
"utils": "@/lib/utils"
16+
}
17+
}

0 commit comments

Comments
 (0)