diff --git a/apps/landing/public/assets/login-banner.webp b/apps/landing/public/assets/login-banner.webp new file mode 100644 index 0000000..67ed796 Binary files /dev/null and b/apps/landing/public/assets/login-banner.webp differ diff --git a/apps/web/e2e/login.spec.ts b/apps/web/e2e/login.spec.ts index 1a697e9..a70f507 100644 --- a/apps/web/e2e/login.spec.ts +++ b/apps/web/e2e/login.spec.ts @@ -7,7 +7,7 @@ test.describe('login', () => { await mockBackend(page); await page.goto('/auth/login'); - await expect(page.getByRole('heading', { name: 'Login to your account!' })).toBeVisible(); + await expect(page.getByRole('heading', { name: 'Sign in to TrackGo' })).toBeVisible(); await expect(page.getByLabel('Username')).toBeVisible(); await expect(page.getByLabel('Password')).toBeVisible(); await expect(page.getByRole('button', { name: 'Login' })).toBeVisible(); @@ -35,6 +35,6 @@ test.describe('login', () => { await expect(page.getByText('Invalid username or password')).toBeVisible(); await expect(page).toHaveURL(/\/auth\/login/); - await expect(page.getByRole('heading', { name: 'Login to your account!' })).toBeVisible(); + await expect(page.getByRole('heading', { name: 'Sign in to TrackGo' })).toBeVisible(); }); }); diff --git a/apps/web/src/apps/auth/login/assets/login-banner.webp b/apps/web/src/apps/auth/login/assets/login-banner.webp new file mode 100644 index 0000000..67ed796 Binary files /dev/null and b/apps/web/src/apps/auth/login/assets/login-banner.webp differ diff --git a/apps/web/src/apps/auth/login/components/android-icon.tsx b/apps/web/src/apps/auth/login/components/android-icon.tsx deleted file mode 100644 index 17110c7..0000000 --- a/apps/web/src/apps/auth/login/components/android-icon.tsx +++ /dev/null @@ -1,6 +0,0 @@ -export const AndroidIcon = (props: any) => ( - - - - -); diff --git a/apps/web/src/apps/auth/login/components/chrome-icon.tsx b/apps/web/src/apps/auth/login/components/chrome-icon.tsx deleted file mode 100644 index 1143373..0000000 --- a/apps/web/src/apps/auth/login/components/chrome-icon.tsx +++ /dev/null @@ -1,16 +0,0 @@ -export const ChromeIcon = (props: any) => ( - - - - - - -); diff --git a/apps/web/src/apps/auth/login/components/google-icon.tsx b/apps/web/src/apps/auth/login/components/google-icon.tsx deleted file mode 100644 index ddb1a8f..0000000 --- a/apps/web/src/apps/auth/login/components/google-icon.tsx +++ /dev/null @@ -1,20 +0,0 @@ -export const GoogleIcon = (props: any) => ( - - - - - - -); diff --git a/apps/web/src/apps/auth/login/components/icon-circle.tsx b/apps/web/src/apps/auth/login/components/icon-circle.tsx deleted file mode 100644 index c39efa7..0000000 --- a/apps/web/src/apps/auth/login/components/icon-circle.tsx +++ /dev/null @@ -1,12 +0,0 @@ -export const IconCircle = ({ x, y, children }: { x: number; y: number; children: React.ReactNode }) => ( -
- {children} -
-); diff --git a/apps/web/src/apps/auth/login/components/microsoft-icon.tsx b/apps/web/src/apps/auth/login/components/microsoft-icon.tsx deleted file mode 100644 index 34f6413..0000000 --- a/apps/web/src/apps/auth/login/components/microsoft-icon.tsx +++ /dev/null @@ -1,8 +0,0 @@ -export const MicrosoftIcon = (props: any) => ( - - - - - - -); diff --git a/apps/web/src/apps/auth/login/components/right-section.tsx b/apps/web/src/apps/auth/login/components/right-section.tsx index ec9e355..44b4907 100644 --- a/apps/web/src/apps/auth/login/components/right-section.tsx +++ b/apps/web/src/apps/auth/login/components/right-section.tsx @@ -1,114 +1,14 @@ -import { Apple, Globe, Mail, MessageCircle } from 'lucide-react'; -import { IconCircle } from './icon-circle'; -import { Ring } from './ring'; -import { AndroidIcon } from './android-icon'; -import { ChromeIcon } from './chrome-icon'; +import { Image } from '@repo/ui/components'; +import loginBanner from '../assets/login-banner.webp'; export function RightSection() { return ( - //
-
- {/* 1. Glossy & Glassmorphic Orbs */} -
-
-
- -

- Write Better {/* Wrapper luar KHUSUS untuk Drop Shadow */} - - {/* Elemen dalam KHUSUS untuk Gradien Teks */} - - Everywhere - - -

- - {/* Graphics Area */} -
- {/* Concentric Rings */} - - - - - - {/* Center Logo */} -
-
- {/* Glowing backdrop */} -
- {/* Custom P/Pen Logo from reference */} - - - - - -
-
- - {/* Orbiting Icons */} - - {/* Ring 1 (r=100) */} -
- - - -
- -
- - - -
- - {/* Ring 2 (r=150) */} -
- - - -
- -
- - y! - -
- - {/* Ring 3 (r=210) */} -
- - - -
- -
- - - -
- - {/* Ring 4 (r=270) */} -
- - - -
-
- - {/* Pagination Indicators */} -
-
-
-
+
+
+
); diff --git a/apps/web/src/apps/auth/login/components/ring.tsx b/apps/web/src/apps/auth/login/components/ring.tsx deleted file mode 100644 index fb9e283..0000000 --- a/apps/web/src/apps/auth/login/components/ring.tsx +++ /dev/null @@ -1,6 +0,0 @@ -export const Ring = ({ size }: { size: number }) => ( -
-); diff --git a/apps/web/src/apps/auth/login/languages/en/login.json b/apps/web/src/apps/auth/login/languages/en/login.json index ec1c4be..0002f55 100644 --- a/apps/web/src/apps/auth/login/languages/en/login.json +++ b/apps/web/src/apps/auth/login/languages/en/login.json @@ -1,6 +1,6 @@ { - "title": "Login to your account!", - "description": "Enter your registered username and password to login!", + "title": "Sign in to TrackGo", + "description": "Manage sales, deliveries, and field activity from one place.", "username_label": "Username", "username_placeholder": "eg. administrator", "password_label": "Password", diff --git a/apps/web/src/apps/auth/login/languages/id/login.json b/apps/web/src/apps/auth/login/languages/id/login.json index 85a6e09..755166a 100644 --- a/apps/web/src/apps/auth/login/languages/id/login.json +++ b/apps/web/src/apps/auth/login/languages/id/login.json @@ -1,6 +1,6 @@ { - "title": "Login ke akun Anda!", - "description": "Masukkan username dan password yang terdaftar untuk login!", + "title": "Masuk ke TrackGo", + "description": "Kelola penjualan, pengiriman, dan aktivitas lapangan dalam satu tempat.", "username_label": "Username", "username_placeholder": "cth. administrator", "password_label": "Password", diff --git a/apps/web/src/main.css b/apps/web/src/main.css index 1e9abaa..1a6a0b5 100644 --- a/apps/web/src/main.css +++ b/apps/web/src/main.css @@ -1,32 +1,3 @@ @import 'tailwindcss'; @import '@repo/ui/theme.css'; @source "../../../packages/ui/src"; - -/* ========================================= - ANIMATION: FLOATING - ========================================= */ - -/* --- Keyframes Definition --- */ -@keyframes floating { - 0%, - 100% { - transform: translateY(0); - } - 50% { - transform: translateY(-10px); /* Peak float distance (adjust as needed) */ - } -} - -/* --- Main Utility Class --- */ -.animate-floating { - animation: floating 4s ease-in-out infinite; -} - -/* --- Speed Variations (Optional) --- */ -.animate-floating-fast { - animation: floating 3s ease-in-out infinite; -} - -.animate-floating-slow { - animation: floating 5s ease-in-out infinite; -}