diff --git a/.github/workflows/deploy-backoffice.yml b/.github/workflows/deploy-backoffice.yml
new file mode 100644
index 0000000..4c2f433
--- /dev/null
+++ b/.github/workflows/deploy-backoffice.yml
@@ -0,0 +1,35 @@
+name: Deploy Backoffice
+
+on:
+ push:
+ branches:
+ - develop
+ paths:
+ - 'apps/backoffice/**' # INI BASED ON PATH CHANGES JADI NTAR KALAU ADA PUSH DIISNI OTOMATIS DEPLOY
+
+jobs:
+ deploy:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout repo
+ uses: actions/checkout@v4
+
+ - name: Deploy via SSH
+ uses: appleboy/ssh-action@v1.0.3
+ with:
+ host: ${{ secrets.SSH_HOST }}
+ username: ${{ secrets.SSH_USER }}
+ key: ${{ secrets.SSH_KEY }}
+ port: ${{ secrets.SSH_PORT }}
+ script: |
+ set -e
+ if [ ! -d ~/imphnen-frontend-service-backoffice ]; then
+ git clone https://github.com/IMPHNEN/imphnen-frontend-service.git ~/imphnen-frontend-service-backoffice
+ else
+ cd ~/imphnen-frontend-service-backoffice && git pull
+ fi
+ echo "VITE_API_URL=${{ secrets.VITE_API_URL }}" > ~/imphnen-frontend-service-backoffice/apps/backoffice/.env
+ docker compose -f ~/imphnen-frontend-service-backoffice/docker-compose-backoffice.yml down || true
+ docker compose -f ~/imphnen-frontend-service-backoffice/docker-compose-backoffice.yml build
+ docker compose -f ~/imphnen-frontend-service-backoffice/docker-compose-backoffice.yml up -d
+ docker image prune -af
diff --git a/.github/workflows/deploy-dimentorin.yml b/.github/workflows/deploy-dimentorin.yml
new file mode 100644
index 0000000..543f990
--- /dev/null
+++ b/.github/workflows/deploy-dimentorin.yml
@@ -0,0 +1,35 @@
+name: Deploy Dimentorin
+
+on:
+ push:
+ branches:
+ - develop
+ paths:
+ - 'apps/dimentorin/**' # INI BASED ON PATH CHANGES JADI NTAR KALAU ADA PUSH DIISNI OTOMATIS DEPLOY
+
+jobs:
+ deploy:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout repo
+ uses: actions/checkout@v4
+
+ - name: Deploy via SSH
+ uses: appleboy/ssh-action@v1.0.3
+ with:
+ host: ${{ secrets.SSH_HOST }}
+ username: ${{ secrets.SSH_USER }}
+ key: ${{ secrets.SSH_KEY }}
+ port: ${{ secrets.SSH_PORT }}
+ script: |
+ set -e
+ if [ ! -d ~/imphnen-frontend-service-dimentorin ]; then
+ git clone https://github.com/IMPHNEN/imphnen-frontend-service.git ~/imphnen-frontend-service-dimentorin
+ else
+ cd ~/imphnen-frontend-service-dimentorin && git pull
+ fi
+ echo "VITE_API_URL=${{ secrets.VITE_API_URL }}" > ~/imphnen-frontend-service-dimentorin/apps/dimentorin/.env
+ docker compose -f ~/imphnen-frontend-service-dimentorin/docker-compose-dimentorin.yml down || true
+ docker compose -f ~/imphnen-frontend-service-dimentorin/docker-compose-dimentorin.yml build
+ docker compose -f ~/imphnen-frontend-service-dimentorin/docker-compose-dimentorin.yml up -d
+ docker image prune -af
diff --git a/.github/workflows/deploy-gacha.yml b/.github/workflows/deploy-gacha.yml
new file mode 100644
index 0000000..86c347d
--- /dev/null
+++ b/.github/workflows/deploy-gacha.yml
@@ -0,0 +1,35 @@
+name: Deploy Gacha
+
+on:
+ push:
+ branches:
+ - develop
+ paths:
+ - 'apps/gacha/**' # INI BASED ON PATH CHANGES JADI NTAR KALAU ADA PUSH DIISNI OTOMATIS DEPLOY
+
+jobs:
+ deploy:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout repo
+ uses: actions/checkout@v4
+
+ - name: Deploy via SSH
+ uses: appleboy/ssh-action@v1.0.3
+ with:
+ host: ${{ secrets.SSH_HOST }}
+ username: ${{ secrets.SSH_USER }}
+ key: ${{ secrets.SSH_KEY }}
+ port: ${{ secrets.SSH_PORT }}
+ script: |
+ set -e
+ if [ ! -d ~/imphnen-frontend-service-gacha ]; then
+ git clone https://github.com/IMPHNEN/imphnen-frontend-service.git ~/imphnen-frontend-service-gacha
+ else
+ cd ~/imphnen-frontend-service-gacha && git pull
+ fi
+ echo "VITE_API_URL=${{ secrets.VITE_API_URL }}" > ~/imphnen-frontend-service-gacha/apps/gacha/.env
+ docker compose -f ~/imphnen-frontend-service-gacha/docker-compose-gacha.yml down || true
+ docker compose -f ~/imphnen-frontend-service-gacha/docker-compose-gacha.yml build
+ docker compose -f ~/imphnen-frontend-service-gacha/docker-compose-gacha.yml up -d
+ docker image prune -af
diff --git a/.github/workflows/deploy-landing.yml b/.github/workflows/deploy-landing.yml
index ce85078..89cd15a 100644
--- a/.github/workflows/deploy-landing.yml
+++ b/.github/workflows/deploy-landing.yml
@@ -2,6 +2,8 @@ name: Deploy Landing
on:
push:
+ branches:
+ - develop
paths:
- 'apps/landing/**' # INI BASED ON PATH CHANGES JADI NTAR KALAU ADA PUSH DIISNI OTOMATIS DEPLOY
diff --git a/apps/dimentorin/src/app/auth/login/page.tsx b/apps/dimentorin/src/app/auth/login/page.tsx
index 152f955..20d405a 100644
--- a/apps/dimentorin/src/app/auth/login/page.tsx
+++ b/apps/dimentorin/src/app/auth/login/page.tsx
@@ -51,6 +51,11 @@ export const Components: FC = (): ReactElement => {
Daftar Disini
+
Or
diff --git a/apps/dimentorin/src/app/auth/register-mentor/layout.tsx b/apps/dimentorin/src/app/auth/register-mentor/layout.tsx
new file mode 100644
index 0000000..2d8a74d
--- /dev/null
+++ b/apps/dimentorin/src/app/auth/register-mentor/layout.tsx
@@ -0,0 +1,12 @@
+import { FC, ReactElement } from 'react';
+import { Outlet } from 'react-router-dom';
+
+export const AppLayout: FC = (): ReactElement => {
+ return (
+
+
+
+ );
+};
+
+export default AppLayout;
diff --git a/apps/dimentorin/src/app/auth/register-mentor/page.tsx b/apps/dimentorin/src/app/auth/register-mentor/page.tsx
new file mode 100644
index 0000000..88b6305
--- /dev/null
+++ b/apps/dimentorin/src/app/auth/register-mentor/page.tsx
@@ -0,0 +1,242 @@
+import { FC, ReactElement, useState } from 'react';
+import { ControlledInputField, RegisterResetBanner } from '@imphnen-frontend-service/ui/organisms';
+import { Button, Select } from '@imphnen-frontend-service/ui/atoms';
+import { ArrowLeftOutlined, ArrowRightOutlined } from '@ant-design/icons';
+import { InputField, RegisterMentorStep, SelectField } from '@imphnen-frontend-service/ui/molecules';
+
+export const Components: FC = (): ReactElement => {
+ const [ step, setStep ] = useState(1)
+
+ return (
+
+
+
+
+
+
+
+
+ Register
+
+
+ Welcome to the team, Mentor - powered by IMPHNEN
+
+
+
+
+
+
+ );
+};
+
+export default Components;
diff --git a/apps/dimentorin/src/app/auth/register-mentor/pending/layout.tsx b/apps/dimentorin/src/app/auth/register-mentor/pending/layout.tsx
new file mode 100644
index 0000000..2d8a74d
--- /dev/null
+++ b/apps/dimentorin/src/app/auth/register-mentor/pending/layout.tsx
@@ -0,0 +1,12 @@
+import { FC, ReactElement } from 'react';
+import { Outlet } from 'react-router-dom';
+
+export const AppLayout: FC = (): ReactElement => {
+ return (
+
+
+
+ );
+};
+
+export default AppLayout;
diff --git a/apps/dimentorin/src/app/auth/register-mentor/pending/page.tsx b/apps/dimentorin/src/app/auth/register-mentor/pending/page.tsx
new file mode 100644
index 0000000..d25e357
--- /dev/null
+++ b/apps/dimentorin/src/app/auth/register-mentor/pending/page.tsx
@@ -0,0 +1,41 @@
+import { FC, ReactElement, useEffect } from 'react';
+import { RegisterResetBanner } from '@imphnen-frontend-service/ui/organisms';
+import { Button } from '@imphnen-frontend-service/ui/atoms';
+import { ArrowRightOutlined } from '@ant-design/icons';
+
+export const Components: FC = (): ReactElement => {
+ return (
+
+
+
+
+
+
+ Register Akun Mentor Berhasil
+
+
+ Data kamu telah kami terima dan sedang dalam proses verifikasi.
+
+
+
+ Mohon tunggu maksimal 2 hari kerja untuk proses aktivasi akun. Kami akan menghubungi kamu jika proses telah selesai.
+
+
+
+
+
+
+
+
+ );
+};
+
+export default Components;
diff --git a/apps/dimentorin/src/app/auth/register-mentor/success/layout.tsx b/apps/dimentorin/src/app/auth/register-mentor/success/layout.tsx
new file mode 100644
index 0000000..2d8a74d
--- /dev/null
+++ b/apps/dimentorin/src/app/auth/register-mentor/success/layout.tsx
@@ -0,0 +1,12 @@
+import { FC, ReactElement } from 'react';
+import { Outlet } from 'react-router-dom';
+
+export const AppLayout: FC = (): ReactElement => {
+ return (
+
+
+
+ );
+};
+
+export default AppLayout;
diff --git a/apps/dimentorin/src/app/auth/register-mentor/success/page.tsx b/apps/dimentorin/src/app/auth/register-mentor/success/page.tsx
new file mode 100644
index 0000000..c318b6b
--- /dev/null
+++ b/apps/dimentorin/src/app/auth/register-mentor/success/page.tsx
@@ -0,0 +1,57 @@
+import { FC, ReactElement, useEffect } from 'react';
+import { RegisterResetBanner } from '@imphnen-frontend-service/ui/organisms';
+import { Button } from '@imphnen-frontend-service/ui/atoms';
+import { ArrowRightOutlined } from '@ant-design/icons';
+
+export const Components: FC = (): ReactElement => {
+ return (
+
+
+
+
+
+
+ Register Akun Mentor Berhasil
+
+
+ Akun Kamu Telah Berhasil Diverifikasi!
+
+
+
+ Kamu sekarang bisa login dan mulai menggunakan layanan kami. Selamat bergabung! SENPAIIII
+
+
+
+
+
+
+
+
+ );
+};
+
+export default Components;
diff --git a/apps/dimentorin/src/app/auth/register/otp/page.tsx b/apps/dimentorin/src/app/auth/register/otp/page.tsx
index a79b525..9026713 100644
--- a/apps/dimentorin/src/app/auth/register/otp/page.tsx
+++ b/apps/dimentorin/src/app/auth/register/otp/page.tsx
@@ -32,7 +32,7 @@ export const Components: FC = (): ReactElement => {
const m = Math.floor(seconds / 60);
const s = seconds % 60;
return `${m}:${s.toString().padStart(2, '0')}`;
- };
+ };
return (
@@ -51,7 +51,7 @@ export const Components: FC = (): ReactElement => {
name={'otp'}
maxLength={6}
control={form.control}
- />
+ />