-
+
Liên hệ quản trị viên không gian nhóm
-
+
danable hoạt động theo mô hình lời mời nội bộ để đảm bảo an toàn
dữ liệu. Vui lòng liên hệ Quản trị viên nhóm của bạn (ví dụ:{' '}
-
+
minhanh@visionlab.vn
) để nhận email lời mời tham gia dự án.
@@ -136,7 +116,8 @@ export const LoginPage: React.FC = () => {
diff --git a/src/pages/auth/components/HeroSection.tsx b/src/pages/auth/components/HeroSection.tsx
index e98d3f1..fe623aa 100644
--- a/src/pages/auth/components/HeroSection.tsx
+++ b/src/pages/auth/components/HeroSection.tsx
@@ -1,149 +1,196 @@
-import React, { useState } from 'react'
+import React from 'react'
+import { LOGIN_COLORS, createInsetOutlineStyle } from '@/styles/theme'
+
+interface BoundingBoxItem {
+ id: string
+ label: string
+ color: string
+ position: {
+ left: number
+ top: number
+ width: number
+ height: number
+ }
+ badgeWidth: number
+}
+
+/**
+ * Danh sách các khung nhận diện vật thể (Bounding Box) hiển thị trên ảnh minh họa.
+ * Tách cấu hình tọa độ và màu sắc rõ ràng thay vì gán cứng trong JSX.
+ */
+const TRAFFIC_BOUNDING_BOXES: BoundingBoxItem[] = [
+ {
+ id: 'car',
+ label: 'Ô tô',
+ color: LOGIN_COLORS.boundingBox.carCyan, // #16b9c9
+ position: { left: 248, top: 157, width: 74, height: 65 },
+ badgeWidth: 33,
+ },
+ {
+ id: 'bus',
+ label: 'Xe buýt',
+ color: LOGIN_COLORS.boundingBox.busPurple, // #ae7cff
+ position: { left: 155, top: 96, width: 106, height: 87 },
+ badgeWidth: 49,
+ },
+]
+
+const PREVIEW_STATS = [
+ {
+ value: '4.320',
+ description: 'ảnh trong không gian nhóm',
+ },
+ {
+ value: 'Bạn quyết định',
+ description: 'duyệt nhãn trước khi xuất',
+ },
+]
+
+const AI_TASK_TYPES = ['Classification', 'Object Detection', 'Segmentation']
+
+/**
+ * Hàm tạo style cho khung Bounding Box và nhãn tên đối tượng theo màu định nghĩa.
+ */
+function getBoundingBoxStyles(box: BoundingBoxItem): {
+ frameStyle: React.CSSProperties
+ badgeStyle: React.CSSProperties
+} {
+ return {
+ frameStyle: {
+ left: `${box.position.left}px`,
+ top: `${box.position.top}px`,
+ width: `${box.position.width}px`,
+ height: `${box.position.height}px`,
+ ...createInsetOutlineStyle(box.color, 2),
+ },
+ badgeStyle: {
+ width: `${box.badgeWidth}px`,
+ backgroundColor: box.color,
+ },
+ }
+}
export const HeroSection: React.FC = () => {
- const [hoveredBox, setHoveredBox] = useState<'bus' | 'car' | null>(null)
- const [activeTask, setActiveTask] = useState('Object Detection')
-
return (
-
-
-
+
+ {/* Thanh thương hiệu phía trên */}
+
+
+

+
+ danable
+
+
+
+ NỀN TẢNG DỮ LIỆU CHO AI
+
+
+
+ {/* Tiêu đề & thông điệp chính */}
+
+
TỪ DỮ LIỆU THÔ ĐẾN NHÃN CHẤT LƯỢNG
-
-
+
Giải pháp dữ liệu cho AI
-
-
+
Kiểm soát chất lượng mô hình AI của bạn từ những bước bắt đầu.
+
- {/* Interactive Preview Card */}
-
- {/* Card Top Bar */}
-
-
- Giao thông đô thị
-
-
-
- Đã duyệt thủ công
-
-
-
- {/* Street Traffic Image + Bounding Box Overlays */}
-
-

-
- {/* Subtle road scene gradient for crisp bounding box contrast */}
-
-
- {/* Purple Bounding Box: Xe buýt */}
-
setHoveredBox('bus')}
- onMouseLeave={() => setHoveredBox(null)}
- style={{
- left: '28%',
- top: '35%',
- width: '20%',
- height: '31%',
- }}
- className={`absolute border-2 transition-all duration-150 cursor-pointer ${
- hoveredBox === 'bus'
- ? 'border-[#A855F7] bg-[#A855F7]/20 shadow-[0_0_0_2px_rgba(168,85,247,0.3)]'
- : 'border-[#C084FC] bg-[#A855F7]/10'
- }`}
- >
-
- Xe buýt
-
- {/* Corner handles */}
-
-
-
-
-
-
- {/* Cyan Bounding Box: Ô tô */}
-
setHoveredBox('car')}
- onMouseLeave={() => setHoveredBox(null)}
- style={{
- left: '45.5%',
- top: '57%',
- width: '13.5%',
- height: '24%',
- }}
- className={`absolute border-2 transition-all duration-150 cursor-pointer ${
- hoveredBox === 'car'
- ? 'border-[#06B6D4] bg-[#06B6D4]/25 shadow-[0_0_0_2px_rgba(6,182,212,0.35)]'
- : 'border-[#22D3EE] bg-[#06B6D4]/10'
- }`}
- >
-
- Ô tô
-
- {/* Corner handles */}
-
-
-
-
-
-
-
- {/* Card Bottom Stats */}
-
-
-
- 4.320
-
-
- ảnh trong không gian nhóm
-
-
-
-
-
- Bạn quyết định
-
-
- duyệt nhãn trước khi xuất
-
-
-
+ {/* Thẻ minh họa gán nhãn giao thông đô thị */}
+
+ {/* Tiêu đề thẻ minh họa */}
+
+
+ Giao thông đô thị
+
+
+ Đã duyệt thủ công
+
- {/* Bottom Task Tags */}
-
- {(['Classification', 'Object Detection', 'Segmentation'] as const).map(
- (task) => {
- const isSelected = activeTask === task
- return (
-
- {/* Footer Copyright */}
-
+ {/* Các loại bài toán gán nhãn hỗ trợ */}
+
+ {AI_TASK_TYPES.map((taskName) => (
+
+ {taskName}
+
+ ))}
+
+
+ {/* Bản quyền */}
+
© 2026 danable. Dữ liệu của bạn, quyền kiểm soát của bạn.
diff --git a/src/pages/auth/components/LoginForm.tsx b/src/pages/auth/components/LoginForm.tsx
index 94acd97..f31e4fd 100644
--- a/src/pages/auth/components/LoginForm.tsx
+++ b/src/pages/auth/components/LoginForm.tsx
@@ -1,6 +1,7 @@
import React, { useState } from 'react'
import { Link } from 'react-router-dom'
-import { LoginRequest } from '../../../types'
+import { LoginRequest } from '@/types'
+import { LOGIN_COLORS, createInsetOutlineStyle } from '@/styles/theme'
import { SSOButton } from './SSOButton'
export interface LoginFormProps {
@@ -38,196 +39,194 @@ export const LoginForm: React.FC
= ({
})
}
+ const inputBoxOutlineStyle = createInsetOutlineStyle(
+ LOGIN_COLORS.borderControl,
+ 1
+ )
+
return (
-