diff --git a/apps/web-client/src/app/page.tsx b/apps/web-client/src/app/page.tsx index e210bd72..3b588a6f 100644 --- a/apps/web-client/src/app/page.tsx +++ b/apps/web-client/src/app/page.tsx @@ -5,6 +5,9 @@ import { useEffect, useState } from 'react'; import { useTranslation } from '@/hooks/use-translation'; import { BrandLogo } from '@/components/ui/brand-logo'; import { Button } from '@/components/ui/button'; +import { Footer } from '@/components/layout/footer'; +import { NavigationHeader } from '@/components/layout/navigation-header'; +import { Zap, Building, Code } from 'lucide-react'; /** * EN: Home page component - main application entry point with brand elements @@ -56,101 +59,104 @@ export default function Home() { } return ( - // EN: Main content area with brand gradient background - // VI: Khu vực nội dung chính với background gradient thương hiệu -
- {/* EN: Brand gradient overlay / VI: Overlay gradient thương hiệu */} -
+ <> + + {/* EN: Main content area with brand gradient background / VI: Khu vực nội dung chính với background gradient thương hiệu */} +
+ {/* EN: Brand gradient overlay / VI: Overlay gradient thương hiệu */} +
- {/* EN: Decorative brand dots / VI: Chấm trang trí thương hiệu */} -
-
-
+ {/* EN: Decorative brand dots / VI: Chấm trang trí thương hiệu */} +
+
+
-
- {/* EN: Brand Logo / VI: Logo thương hiệu */} -
- -
+
+ {/* EN: Brand Logo / VI: Logo thương hiệu */} +
+ +
- {/* EN: Hero Title / VI: Tiêu đề Hero */} -

- {t('home.title')} -

+ {/* EN: Hero Title / VI: Tiêu đề Hero */} +

+ {t('home.title')} +

- {/* EN: Subtitle/Description / VI: Phụ đề/Mô tả */} -

- {t('home.description')} -

+ {/* EN: Subtitle/Description / VI: Phụ đề/Mô tả */} +

+ {t('home.description')} +

- {/* EN: Conditional rendering based on authentication status / VI: Render có điều kiện dựa trên trạng thái xác thực */} -
- {isAuthenticated && user ? ( - // EN: Authenticated user welcome message / VI: Thông báo chào mừng người dùng đã xác thực -
-
- {user.email?.[0].toUpperCase()} + {/* EN: Conditional rendering based on authentication status / VI: Render có điều kiện dựa trên trạng thái xác thực */} +
+ {isAuthenticated && user ? ( + // EN: Authenticated user welcome message / VI: Thông báo chào mừng người dùng đã xác thực +
+
+ {user.email?.[0].toUpperCase()} +
+

+ {t('home.welcome', { email: user.email })} +

+
+ + {t('home.role', { role: user.role })} +
-

- {t('home.welcome', { email: user.email })} -

-
- - {t('home.role', { role: user.role })} + ) : ( + // EN: Login prompt for unauthenticated users / VI: Nhắc đăng nhập cho người dùng chưa xác thực +
+

+ {t('home.pleaseLogin')} +

+
+ + +
-
- ) : ( - // EN: Login prompt for unauthenticated users / VI: Nhắc đăng nhập cho người dùng chưa xác thực -
-

- {t('home.pleaseLogin')} -

-
-
+ + {/* EN: Feature highlights / VI: Điểm nổi bật tính năng */} + {!isAuthenticated && ( +
+ {[ + { title: 'Fast Development', icon: Zap, desc: 'Build and deploy in minutes' }, + { title: 'Enterprise Ready', icon: Building, desc: 'Production-grade platform' }, + { title: 'Developer First', icon: Code, desc: 'Built for modern teams' }, + ].map((feature, index) => ( +
- Get Started - - -
+
+ +
+

+ {feature.title} +

+

{feature.desc}

+
+ ))}
)}
- - {/* EN: Feature highlights / VI: Điểm nổi bật tính năng */} - {!isAuthenticated && ( -
- {[ - { title: 'Fast Development', icon: '⚡', desc: 'Build and deploy in minutes' }, - { title: 'Enterprise Ready', icon: '🏢', desc: 'Production-grade platform' }, - { title: 'Developer First', icon: '💻', desc: 'Built for modern teams' }, - ].map((feature, index) => ( -
-
- {feature.icon} -
-

- {feature.title} -

-

{feature.desc}

-
- ))} -
- )} -
-
+
+