Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
2c2eeb3
init setup new project
mpsalunggg Aug 8, 2024
daa5f60
feat(setup): setup eslint, husky and prettier
vickyadrii Aug 8, 2024
210c7f3
feat(setup): setup jest for the unit testing
vickyadrii Aug 8, 2024
d0edc1a
feat: create navbar
vickyadrii Aug 18, 2024
c5c8036
feat: create navbar
vickyadrii Aug 18, 2024
0ecf29c
feat: dark mode toggle
mpsalunggg Aug 18, 2024
d2e17b6
feat: create hero section component
vickyadrii Aug 18, 2024
34b6bcc
Merge branches 'feat/setup-shadcn' and 'feat/setup-shadcn' of github.…
vickyadrii Aug 18, 2024
2c1cc2c
chore: icon image logo
mpsalunggg Aug 18, 2024
794984c
chore: remove comment
mpsalunggg Aug 18, 2024
d651106
Merge branches 'feat/setup-shadcn' and 'feat/setup-shadcn' of github.…
vickyadrii Aug 18, 2024
770bd78
chore: remove unused code
vickyadrii Aug 18, 2024
939bbdd
fix: color dark mode
mpsalunggg Aug 18, 2024
6d4b612
fix: fix the background gradient is broken
vickyadrii Aug 18, 2024
26b769a
feat: event page
mpsalunggg Aug 18, 2024
680e214
chore: add color foreground
mpsalunggg Aug 19, 2024
58136d8
chore: reusable component card, create unit testing card
mpsalunggg Aug 20, 2024
00a6f8e
set ci/cd
AfandyW Aug 21, 2024
fa93fca
test ci/cd on push
AfandyW Aug 21, 2024
a754306
test
AfandyW Aug 21, 2024
1a0f106
feat: ci/cd staging
AfandyW Aug 21, 2024
db408be
Merge pull request #7 from hammer-code/feat/setup-shadcn
mpsalunggg Aug 23, 2024
6677e84
add type module package json
mpsalunggg Aug 23, 2024
720d37c
Merge pull request #8 from hammer-code/feat/setup-shadcn
mpsalunggg Aug 23, 2024
4d76e13
update yarn
mpsalunggg Aug 23, 2024
c4666f0
Merge pull request #9 from hammer-code/feat/setup-shadcn
mpsalunggg Aug 23, 2024
f8d7dfd
add ts-jest
mpsalunggg Aug 23, 2024
1d0acfc
Merge pull request #10 from hammer-code/feat/setup-shadcn
mpsalunggg Aug 23, 2024
1bf6367
add resolutions string-width
mpsalunggg Aug 23, 2024
7fed4a4
Merge pull request #11 from hammer-code/feat/setup-shadcn
mpsalunggg Aug 23, 2024
d20c19a
remove nextpage type
mpsalunggg Aug 23, 2024
22b3073
Merge pull request #12 from hammer-code/feat/setup-shadcn
mpsalunggg Aug 23, 2024
353fb66
feat: events card and typography responsive
adzaky Aug 23, 2024
993acfc
Merge pull request #13 from adzaky/feat/events-responsive
mpsalunggg Aug 26, 2024
9727627
feat: support module
AfandyW Aug 23, 2024
d346983
fix
AfandyW Aug 26, 2024
e0ed920
test ci-cd
AfandyW Aug 26, 2024
ab09a10
Merge pull request #14 from hammer-code/hotfix/ci-cd
mpsalunggg Aug 26, 2024
7658ef6
feat: add translation next-intl
mpsalunggg Aug 26, 2024
2a92a1a
chore: remove props on events page
mpsalunggg Aug 26, 2024
cdb7ddd
fix: map link, type, etc
mpsalunggg Aug 26, 2024
4ded9bd
chore: add key
mpsalunggg Aug 26, 2024
e674988
[FEAT] - Add translation next-intl
mpsalunggg Aug 26, 2024
103ee1c
test deployment
vickyadrii Aug 26, 2024
4e614cb
fix: bg color card when light theme
mpsalunggg Aug 26, 2024
661b03d
Feat/setup next intl
vickyadrii Aug 26, 2024
ed80009
wip: about section
mpsalunggg Aug 27, 2024
f614b4a
feat: create partner section
adzaky Aug 29, 2024
998b68b
fix: added back missing card bg background
adzaky Aug 29, 2024
9c4e18f
[FEAT] - Home Page Partner Section
mpsalunggg Sep 2, 2024
5e06062
Merge branches 'development' and 'development' of github.com:hammer-c…
vickyadrii Sep 14, 2024
2a2ff1e
fix: tailwind is broken
vickyadrii Sep 14, 2024
536d7fb
feat: add join community btn
vickyadrii Sep 14, 2024
d416c32
fix: update logic where set theme to dark or light
vickyadrii Sep 14, 2024
351a04a
feat: create contact and footer components
vickyadrii Sep 14, 2024
7bd5835
feat: adjust the footer
vickyadrii Sep 15, 2024
330144a
Merge branches 'refactor/landing-page' and 'feat/section-about' of gi…
vickyadrii Sep 15, 2024
ad78e4c
ref: remove locale prefix
vickyadrii Sep 15, 2024
5e2e6a9
ref: remove locale prefix
vickyadrii Sep 15, 2024
431d60d
chore: change default locale to id
vickyadrii Sep 15, 2024
4a5936c
refactor: improve landing page and fix some issues
vickyadrii Sep 15, 2024
484478d
fix: error build
vickyadrii Sep 15, 2024
5ec80fb
fix: test build
vickyadrii Sep 15, 2024
c18efac
fix: error build
vickyadrii Sep 15, 2024
107a2da
fix: error build
vickyadrii Sep 15, 2024
dbecca3
fix: error build
vickyadrii Sep 15, 2024
22f1955
fix: error build
vickyadrii Sep 15, 2024
8f001cd
fix: error build
vickyadrii Sep 15, 2024
750ebc7
fix: error build
vickyadrii Sep 15, 2024
016b9fc
fix: error build
vickyadrii Sep 16, 2024
275a097
fix: error build
vickyadrii Sep 16, 2024
c63e5bc
fix: responsive footer
vickyadrii Sep 16, 2024
3a531e7
fix: responsive footer
vickyadrii Sep 16, 2024
7f809bf
feat: add english locale data using next-intl
vickyadrii Sep 16, 2024
b4d2fc4
feat: add english locale data using next-intl
vickyadrii Sep 16, 2024
38421ee
feat: create certificate detail page
vickyadrii Sep 16, 2024
77cbb3f
feat: create certificate detail page
vickyadrii Sep 16, 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
10 changes: 0 additions & 10 deletions .editorconfig

This file was deleted.

1 change: 0 additions & 1 deletion .env.local

This file was deleted.

20 changes: 20 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"env": {
"browser": true,
"es2021": true
},
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "next/core-web-vitals", "prettier"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["@typescript-eslint", "react"],
"rules": {
"no-console": "warn",
"no-undef": "off",
"no-unused-vars": "off",
"react/no-unescaped-entities": "off",
"@next/next/no-page-custom-font": "off"
}
}
56 changes: 56 additions & 0 deletions .github/workflows/development.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Development CI/CD Piipeline

on:
pull_request:
branches:
- development
types:
- closed

jobs:
build-test:
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: "20"

- name: Install Dependencies
run: yarn

- name: Test Next.js App
run: yarn test

- name: Build Next.js App
run: yarn build

deploy:
runs-on: ubuntu-latest
needs: build-test
environment: development
steps:
- name: Checkout Code
uses: actions/checkout@v2

- name: Deploy to Development Environment
env:
VPS_IP: ${{ secrets.VPS_IP }}
VPS_USER: ${{ secrets.VPS_USER }}
VPS_KEY: ${{ secrets.VPS_KEY }}
run: |
echo "$VPS_KEY" > vps_key.pem

chmod 600 vps_key.pem

ssh -o StrictHostKeyChecking=no -i vps_key.pem $VPS_USER@$VPS_IP "
cd /home/hmcroot/app/development/hammercode-web &&
git restore . && git clean -f && git checkout development &&
git pull origin development &&
yarn &&
yarn build &&
pm2 restart hammercode-web-dev || PORT=4001 pm2 start npm --name 'hammercode-web-dev' -- start"
41 changes: 35 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,36 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

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

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
.next
pnpm*
.yarn*
*.log
node_modules
out
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# local env files
.env*.local

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts
2 changes: 2 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
npx lint-staged
yarn lint
8 changes: 8 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.next
.cache
package-lock.json
public
node_modules
next-env.d.ts
next.config.ts
yarn.lock
8 changes: 8 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"trailingComma": "es5",
"bracketSpacing": true,
"printWidth": 120,
"tabWidth": 2,
"singleQuote": false,
"arrowParens": "always"
}
60 changes: 22 additions & 38 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,52 +1,36 @@
<p align="center">
<a href="https://hammercode.org">
<h1 align="center">Hammercode</h1>
</a>
</p>

<p align="center">

</p>
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).

## Getting Started

Visit <a aria-label="next.js learn" href="<<<<https://nextjs.org/learn>>>>">https://nextjs.org/learn</a> to get started with Next.js.

## Documentation

Visit [https://nextjs.org/docs](https://nextjs.org/docs) to view the full documentation.

## Who is using Next.js?

Next.js is used by the world's leading companies. Check out the [Next.js Showcase](https://nextjs.org/showcase) to learn more.

## Community

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.
First, run the development server:

To chat with other community members you can join the [Next.js Discord](https://nextjs.org/discord).
```bash
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
```

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

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

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

### Good First Issues
## Learn More

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.
To learn more about Next.js, take a look at the following resources:

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

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

## Security
## Deploy on Vercel

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.
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.

<https://vercel.com/security>
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
17 changes: 17 additions & 0 deletions components.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"$schema": "https://ui.shadcn.com/schema.json",
"style": "default",
"rsc": true,
"tsx": true,
"tailwind": {
"config": "tailwind.config.ts",
"css": "src/app/globals.css",
"baseColor": "slate",
"cssVariables": true,
"prefix": ""
},
"aliases": {
"components": "@/components",
"utils": "@/lib/utils"
}
}
27 changes: 27 additions & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import type { Config } from "jest";
import nextJest from "next/jest.js";

const createJestConfig = nextJest({
// Provide the path to your Next.js app to load next.config.js and .env files in your test environment
dir: "./",
});

// Add any custom config to be passed to Jest
const config: Config = {
preset: "ts-jest",
transform: {
"^.+\\.(t|j)sx?$": ["ts-jest", { isolatedModules: true }],
},
coverageProvider: "v8",
testEnvironment: "jsdom",
moduleNameMapper: {
"^@/components/(.*)$": "<rootDir>/components/$1",
"^@/fetaures/(.*)$": "<rootDir>/fetaures/$1",
},
setupFilesAfterEnv: ["<rootDir>/jest.setup.ts"],
// Add more setup options before each test is run
// setupFilesAfterEnv: ['<rootDir>/jest.setup.ts'],
};

// createJestConfig is exported this way to ensure that next/jest can load the Next.js config which is async
export default createJestConfig(config);
1 change: 1 addition & 0 deletions jest.setup.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import "@testing-library/jest-dom";
17 changes: 0 additions & 17 deletions next.config.js

This file was deleted.

18 changes: 18 additions & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import createNextIntlPlugin from "next-intl/plugin";

const withNextIntl = createNextIntlPlugin("./src/lib/i18n.ts");

/** @type {import('next').NextConfig} */
const nextConfig = {
images: {
remotePatterns: [
{
protocol: "https",
hostname: "**",
},
],
},
trailingSlash: true,
};

export default withNextIntl(nextConfig);
Loading