feat: align projects page with Figma design

This commit is contained in:
quanganh2k4 2026-10-30 23:26:57 +07:00
parent 78848dd7d1
commit 9de99c833b
42 changed files with 347 additions and 384 deletions

View file

@ -77,14 +77,14 @@ export const ProjectListPage: React.FC = () => {
}
return (
<div className="space-y-5">
<div className="project-dashboard space-y-5">
{/* Page Header matching MVP · Quản lý dự án.png */}
<div className="flex flex-wrap items-start justify-between gap-4">
<div className="flex flex-wrap items-center justify-between gap-4">
<div>
<h1 className="text-[28px] font-bold leading-tight tracking-tight text-slate-900">
<h1 className="text-[27px] font-medium leading-[40.5px] tracking-[-1px] text-[var(--project-heading)]">
Dự án của bạn
</h1>
<p className="mt-1 text-xs text-slate-500">
<p className="mt-1.5 text-xs leading-[18px] text-[var(--project-body)]">
Quản lý dữ liệu, phân công gán nhãn và kiểm soát chất lượng trong một nơi.
</p>
</div>
@ -92,9 +92,9 @@ export const ProjectListPage: React.FC = () => {
<button
type="button"
onClick={() => setIsCreateModalOpen(true)}
className="inline-flex items-center gap-2 rounded-xl bg-[#C95C3C] px-4 py-2.5 text-xs font-semibold text-white shadow-sm transition hover:bg-[#B5492B]"
className="inline-flex h-10 items-center gap-2 rounded-lg bg-[var(--color-brand-orange-red)] px-4 text-[13px] font-semibold text-white [outline:1px_solid_var(--project-accent)] [outline-offset:-1px] transition hover:bg-[var(--brand-primary-hover)] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--project-accent)]"
>
<span className="text-base leading-none">+</span>
<img className="h-4 w-4" src="/assets/projects-ui/plus.svg" alt="" />
<span>Tạo dự án</span>
</button>
</div>

View file

@ -16,24 +16,12 @@ export const ActivityFeed: React.FC<ActivityFeedProps> = ({
const displayed = expanded ? activities : activities.slice(0, 2)
return (
<div className="space-y-3">
<div className="space-y-5">
{/* Main Activity Bar matching wireframe */}
<div className="flex flex-wrap items-center justify-between gap-3 rounded-2xl border border-slate-200/80 bg-white px-5 py-3 shadow-[0_1px_2px_rgba(15,23,42,0.02)]">
<div className="flex flex-wrap items-center justify-between gap-3 px-3 py-2">
<div className="flex flex-wrap items-center gap-6 text-xs text-slate-500">
{/* Pulse / Waveform icon */}
<svg
className="h-4 w-4 text-slate-400 shrink-0"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
strokeWidth={2}
>
<path
strokeLinecap="round"
strokeLinejoin="round"
d="M3 12h4l3-8 4 16 3-8h4"
/>
</svg>
<img className="h-[15px] w-[15px] shrink-0" src="/assets/projects-ui/activity.svg" alt="" />
{displayed.map((act) => (
<span key={act.id} className="inline-flex items-center gap-1 text-slate-500">
@ -48,7 +36,7 @@ export const ActivityFeed: React.FC<ActivityFeedProps> = ({
<button
type="button"
onClick={() => setExpanded((prev) => !prev)}
className="text-xs font-semibold text-indigo-600 hover:text-indigo-700 transition"
className="text-[11px] font-semibold text-[var(--project-accent)] transition hover:opacity-80"
>
{expanded ? 'Thu gọn ↑' : 'Xem tất cả →'}
</button>

View file

@ -1,39 +1,45 @@
import React, { useState } from 'react'
import { useNavigate } from 'react-router-dom'
import { Project, TaskType } from '@/types'
import { Project, ProjectStatus, TaskType } from '@/types'
interface ProjectCardProps {
project: Project
onDelete?: (projectId: string) => void
}
const TASK_BADGE_CONFIG: Record<
TaskType,
{ label: string; icon: React.ReactNode }
const TASK_BADGE_CONFIG: Record<TaskType, { label: string; iconSrc: string }> = {
classification: { label: 'Classification', iconSrc: '/assets/projects-ui/tags.svg' },
object_detection: { label: 'Object Detection', iconSrc: '/assets/projects-ui/scan.svg' },
segmentation: { label: 'Segmentation', iconSrc: '/assets/projects-ui/pentagon.svg' },
}
const PROJECT_STATUS_PRESENTATION: Record<
ProjectStatus,
{ label: string; background: string; text: string; dot: string }
> = {
classification: {
label: 'Classification',
icon: (
<svg className="h-3.5 w-3.5 text-slate-600" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth={2}>
<path strokeLinecap="round" strokeLinejoin="round" d="M7 7h.01M7 3h5c.512 0 1.024.195 1.414.586l7 7a2 2 0 010 2.828l-7 7a2 2 0 01-2.828 0l-7-7A1.994 1.994 0 013 12V7a4 4 0 014-4z" />
</svg>
),
annotating: {
label: 'Đang gán nhãn',
background: 'var(--project-status-active-bg)',
text: 'var(--project-status-active-text)',
dot: 'var(--color-brand-orange-red)',
},
object_detection: {
label: 'Object Detection',
icon: (
<svg className="h-3.5 w-3.5 text-slate-600" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth={2}>
<path strokeLinecap="round" strokeLinejoin="round" d="M4 8V5a1 1 0 011-1h3M16 4h3a1 1 0 011 1v3M20 16v3a1 1 0 01-1 1h-3M8 20H5a1 1 0 01-1-1v-3" />
</svg>
),
pending_review: {
label: 'Chờ duyệt',
background: 'var(--project-status-review-bg)',
text: 'var(--project-status-review-text)',
dot: 'var(--project-status-review-dot)',
},
segmentation: {
label: 'Segmentation',
icon: (
<svg className="h-3.5 w-3.5 text-slate-600" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth={2}>
<polygon points="12 3 20 8.5 17 19 7 19 4 8.5" strokeLinecap="round" strokeLinejoin="round" />
</svg>
),
completed: {
label: 'Hoàn thành',
background: 'var(--project-status-complete-bg)',
text: 'var(--project-status-complete-text)',
dot: 'var(--project-status-complete-text)',
},
draft: {
label: 'Bản nháp',
background: 'var(--project-status-draft-bg)',
text: 'var(--project-status-draft-text)',
dot: 'var(--project-status-draft-text)',
},
}
@ -48,10 +54,11 @@ export const ProjectCard: React.FC<ProjectCardProps> = ({ project, onDelete }) =
? Math.round((annotatedCount / project.stats.totalImages) * 100)
: 0
const formatNum = (n: number) => n.toLocaleString('vi-VN')
const formatProjectNumber = (value: number) => value.toLocaleString('vi-VN')
const isPendingReviewHighlight =
project.status === 'pending_review' && project.stats.pendingReview > 0
const statusPresentation = PROJECT_STATUS_PRESENTATION[project.status]
const displayMembers = project.members.slice(0, 3)
@ -62,128 +69,28 @@ export const ProjectCard: React.FC<ProjectCardProps> = ({ project, onDelete }) =
return (
<div
onClick={handleOpenOverview}
className="group relative flex cursor-pointer flex-col overflow-hidden rounded-2xl border border-slate-200/80 bg-white shadow-[0_1px_3px_rgba(15,23,42,0.04)] transition-all duration-200 hover:-translate-y-0.5 hover:border-slate-300 hover:shadow-md"
className="group relative flex cursor-pointer flex-col overflow-hidden rounded-[12px] border border-[var(--project-border)] bg-[var(--project-surface)] shadow-none transition-all duration-200 hover:-translate-y-0.5 hover:shadow-md"
>
{/* Top Thumbnail with decorative overlays */}
<div className="relative h-44 w-full overflow-hidden bg-slate-100">
<div className="relative h-[174px] w-full overflow-hidden bg-slate-100">
<img
src={project.thumbnailUrl}
alt={project.name}
className="h-full w-full object-cover transition-transform duration-300 group-hover:scale-[1.02]"
/>
{/* Decorative Bounding Box overlay for Object Detection */}
{project.taskType === 'object_detection' && (
<svg
className="pointer-events-none absolute inset-0 h-full w-full"
viewBox="0 0 400 180"
preserveAspectRatio="none"
>
{/* Cyan bbox around car */}
<rect
x="105"
y="72"
width="66"
height="48"
fill="rgba(6, 182, 212, 0.14)"
stroke="#06B6D4"
strokeWidth="2"
rx="2"
/>
<rect x="105" y="61" width="32" height="11" fill="#06B6D4" rx="1.5" />
<text x="109" y="69" fill="#ffffff" fontSize="7.5" fontWeight="600">
Ô tô
</text>
{/* Red/Orange bbox around bus */}
<rect
x="212"
y="34"
width="124"
height="84"
fill="rgba(239, 68, 68, 0.14)"
stroke="#EF4444"
strokeWidth="2"
rx="2"
/>
<rect x="212" y="23" width="44" height="11" fill="#EF4444" rx="1.5" />
<text x="216" y="31" fill="#ffffff" fontSize="7.5" fontWeight="600">
Xe buýt
</text>
{/* Amber bbox around motorbike */}
<rect
x="248"
y="112"
width="34"
height="52"
fill="rgba(245, 158, 11, 0.16)"
stroke="#F59E0B"
strokeWidth="1.8"
rx="2"
/>
<rect
x="298"
y="108"
width="36"
height="56"
fill="rgba(34, 197, 94, 0.16)"
stroke="#22C55E"
strokeWidth="1.8"
rx="2"
/>
</svg>
)}
{/* Decorative Polygon Mask overlay for Segmentation */}
{project.taskType === 'segmentation' && (
<svg
className="pointer-events-none absolute inset-0 h-full w-full"
viewBox="0 0 400 180"
preserveAspectRatio="none"
>
{/* Cyan polygon mask on car */}
<polygon
points="110,94 122,74 156,74 168,92 166,118 108,118"
fill="rgba(6, 182, 212, 0.36)"
stroke="#22D3EE"
strokeWidth="2"
/>
{/* Red/Coral polygon mask on bus */}
<polygon
points="216,42 292,35 334,54 334,114 276,118 216,96"
fill="rgba(239, 68, 68, 0.35)"
stroke="#F87171"
strokeWidth="2"
/>
{/* Green polygon masks on motorbikes */}
<polygon
points="254,124 268,112 280,128 276,162 252,160"
fill="rgba(34, 197, 94, 0.38)"
stroke="#4ADE80"
strokeWidth="1.8"
/>
<polygon
points="304,118 318,108 332,126 328,162 302,160"
fill="rgba(168, 85, 247, 0.38)"
stroke="#C084FC"
strokeWidth="1.8"
/>
</svg>
)}
{/* Top-left Task Badge */}
<div className="absolute left-3.5 top-3.5 inline-flex items-center gap-1.5 rounded-lg bg-white/95 px-2.5 py-1 text-xs font-semibold text-slate-800 shadow-sm backdrop-blur-sm">
{badge.icon}
<div className="absolute left-3 top-3 inline-flex items-center gap-1.5 rounded-[5px] bg-white/95 px-[9px] py-[5px] text-[10px] font-semibold text-[var(--project-heading)] shadow-sm backdrop-blur-sm">
<img className="h-3 w-3" src={badge.iconSrc} alt="" />
<span>{badge.label}</span>
</div>
</div>
{/* Card Content */}
<div className="flex flex-1 flex-col p-5">
<div className="flex flex-1 flex-col gap-[13px] p-[18px]">
{/* Title + 3-dots menu */}
<div className="flex items-start justify-between gap-2">
<h3 className="text-lg font-bold text-slate-900 group-hover:text-[#C95C3C] transition-colors">
<h3 className="text-[17px] font-semibold leading-[26px] text-[var(--project-heading)] group-hover:text-[var(--project-accent)] transition-colors">
{project.name}
</h3>
<div className="relative" onClick={(e) => e.stopPropagation()}>
@ -193,9 +100,7 @@ export const ProjectCard: React.FC<ProjectCardProps> = ({ project, onDelete }) =
className="flex h-7 w-7 items-center justify-center rounded-lg text-slate-400 hover:bg-slate-100 hover:text-slate-600"
aria-label="Tùy chọn dự án"
>
<svg className="h-4 w-4" fill="currentColor" viewBox="0 0 20 20">
<path d="M6 10a2 2 0 11-4 0 2 2 0 014 0zm6 0a2 2 0 11-4 0 2 2 0 014 0zm6 0a2 2 0 11-4 0 2 2 0 014 0z" />
</svg>
<img className="h-4 w-4" src="/assets/projects-ui/ellipsis.svg" alt="" />
</button>
{menuOpen && (
<div className="absolute right-0 top-8 z-20 w-44 rounded-xl border border-slate-200 bg-white py-1.5 shadow-lg">
@ -237,50 +142,47 @@ export const ProjectCard: React.FC<ProjectCardProps> = ({ project, onDelete }) =
</div>
{/* Description & Monospace Slug */}
<p className="mt-1 text-xs text-slate-500">{project.description}</p>
<p className="mt-2 font-mono text-[11px] text-slate-400">{project.slug}</p>
<p className="text-[11px] leading-[17px] text-[var(--project-body)]">{project.description}</p>
<p className="font-mono text-[10px] leading-[15px] text-[var(--project-muted)]">{project.slug}</p>
{/* Image count & class count */}
<div className="mt-3.5 flex items-center gap-3 text-xs font-medium text-slate-600">
<span>{formatNum(project.stats.totalImages)} ảnh</span>
<div className="flex items-center gap-4 text-[11px] leading-[17px] text-[var(--project-body)]">
<span>{formatProjectNumber(project.stats.totalImages)} ảnh</span>
<span>{project.classes.length} lớp</span>
</div>
{/* Progress text & bar */}
<div className="mt-3">
<div className="flex items-center justify-between text-xs">
<span className="text-slate-500">{formatNum(annotatedCount)} đã gán nhãn</span>
<span className="font-bold text-indigo-600">{progressPercent}%</span>
<div>
<div className="flex items-center justify-between text-[11px]">
<span className="text-[var(--project-body)]">{formatProjectNumber(annotatedCount)} đã gán nhãn</span>
<span className="font-semibold text-[var(--project-accent)]">{progressPercent}%</span>
</div>
<div className="mt-2 h-1.5 w-full overflow-hidden rounded-full bg-slate-100">
<div className="mt-1.5 h-[5px] w-full overflow-hidden rounded-full bg-[var(--project-border)]">
<div
className="h-full rounded-full bg-[#C95C3C] transition-all duration-300"
className="h-full rounded-full bg-[var(--color-brand-orange-red)] transition-all duration-300"
style={{ width: `${Math.min(100, Math.max(0, progressPercent))}%` }}
/>
</div>
</div>
{/* Status Pill & Member Avatar Stack */}
<div className="mt-4 flex items-center justify-between">
{isPendingReviewHighlight ? (
<span className="inline-flex items-center gap-1.5 rounded-full bg-[#FEF3C7] px-3 py-1 text-xs font-semibold text-[#B45309]">
<span className="h-1.5 w-1.5 rounded-full bg-[#F59E0B]" />
{formatNum(project.stats.pendingReview)} ảnh chờ duyệt
</span>
) : (
<span className="inline-flex items-center gap-1.5 rounded-full bg-[#FEE2E2]/80 px-3 py-1 text-xs font-semibold text-[#B91C1C]">
<span className="h-1.5 w-1.5 rounded-full bg-[#EF4444]" />
Đang gán nhãn
</span>
)}
<div className="flex items-center justify-between">
<span
className="inline-flex items-center gap-1.5 rounded-md px-2 py-1 text-[11px] font-medium"
style={{ backgroundColor: statusPresentation.background, color: statusPresentation.text }}
>
<span className="h-1.5 w-1.5 rounded-full" style={{ backgroundColor: statusPresentation.dot }} />
{isPendingReviewHighlight
? `${formatProjectNumber(project.stats.pendingReview)} ảnh chờ duyệt`
: statusPresentation.label}
</span>
<div className="flex items-center -space-x-1.5">
{displayMembers.map((member) => (
<div
key={member.id}
title={member.name}
style={{ backgroundColor: member.color }}
className="flex h-6 w-6 items-center justify-center rounded-full border-2 border-white text-[10px] font-bold text-slate-700"
className="flex h-6 w-6 items-center justify-center rounded-full border-2 border-white bg-[var(--project-avatar-background)] text-[11px] font-semibold text-[var(--project-accent)]"
>
{member.initials}
</div>
@ -289,9 +191,9 @@ export const ProjectCard: React.FC<ProjectCardProps> = ({ project, onDelete }) =
</div>
{/* Divider + Footer */}
<div className="mt-4 flex items-center justify-between border-t border-slate-100 pt-3.5 text-xs">
<span className="text-slate-400">{project.updatedAt}</span>
<span className="inline-flex items-center gap-1 font-semibold text-indigo-600 group-hover:translate-x-0.5 transition-transform">
<div className="flex items-center justify-between border-t border-[var(--project-border)] pt-3 text-[10px]">
<span className="text-[var(--project-muted)]">{project.updatedAt}</span>
<span className="inline-flex items-center gap-1 text-[11px] font-semibold text-[var(--project-accent)] group-hover:translate-x-0.5 transition-transform">
Mở tổng quan →
</span>
</div>

View file

@ -31,25 +31,13 @@ export const ProjectFilters: React.FC<ProjectFiltersProps> = ({
<div className="flex flex-wrap items-center gap-3">
{/* Search Input */}
<div className="relative w-full sm:w-80">
<svg
className="pointer-events-none absolute left-3.5 top-1/2 h-4 w-4 -translate-y-1/2 text-slate-400"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
strokeWidth={2}
>
<path
strokeLinecap="round"
strokeLinejoin="round"
d="M21 21l-4.35-4.35m0 0A7.5 7.5 0 104.5 4.5a7.5 7.5 0 0012.15 12.15z"
/>
</svg>
<img className="pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2" src="/assets/projects-ui/search.svg" alt="" />
<input
type="text"
value={searchQuery}
onChange={(e) => onSearchChange(e.target.value)}
placeholder="Tìm theo tên dự án..."
className="h-10 w-full rounded-xl border border-slate-200 bg-white pl-10 pr-4 text-sm text-slate-800 placeholder:text-slate-400 focus:border-indigo-500 focus:outline-none focus:ring-2 focus:ring-indigo-500/15"
className="h-10 w-full rounded-lg border border-[var(--project-border)] bg-white pl-10 pr-4 text-xs text-[var(--project-heading)] placeholder:text-[var(--project-muted)] focus:border-[var(--project-accent)] focus:outline-none focus:ring-2 focus:ring-[var(--project-accent)]/15"
/>
</div>
@ -58,22 +46,14 @@ export const ProjectFilters: React.FC<ProjectFiltersProps> = ({
<select
value={selectedTaskType}
onChange={(e) => onTaskTypeChange(e.target.value as 'all' | TaskType)}
className="h-10 appearance-none rounded-xl border border-slate-200 bg-white pl-3.5 pr-9 text-sm font-medium text-slate-700 focus:border-indigo-500 focus:outline-none focus:ring-2 focus:ring-indigo-500/15"
className="h-10 appearance-none rounded-lg border border-[var(--project-border)] bg-white pl-3.5 pr-9 text-xs font-normal text-[var(--project-heading)] focus:border-[var(--project-accent)] focus:outline-none focus:ring-2 focus:ring-[var(--project-accent)]/15"
>
<option value="all">Tất cả bài toán</option>
<option value="classification">Classification</option>
<option value="object_detection">Object Detection</option>
<option value="segmentation">Segmentation</option>
</select>
<svg
className="pointer-events-none absolute right-3 top-1/2 h-4 w-4 -translate-y-1/2 text-slate-500"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
strokeWidth={2}
>
<path strokeLinecap="round" strokeLinejoin="round" d="M19 9l-7 7-7-7" />
</svg>
<img className="pointer-events-none absolute right-3 top-1/2 h-[13px] w-[13px] -translate-y-1/2" src="/assets/projects-ui/chevron-down.svg" alt="" />
</div>
{/* Status Filter */}
@ -81,22 +61,14 @@ export const ProjectFilters: React.FC<ProjectFiltersProps> = ({
<select
value={selectedStatus}
onChange={(e) => onStatusChange(e.target.value as 'all' | ProjectStatus)}
className="h-10 appearance-none rounded-xl border border-slate-200 bg-white pl-3.5 pr-9 text-sm font-medium text-slate-700 focus:border-indigo-500 focus:outline-none focus:ring-2 focus:ring-indigo-500/15"
className="h-10 appearance-none rounded-lg border border-[var(--project-border)] bg-white pl-3.5 pr-9 text-xs font-normal text-[var(--project-heading)] focus:border-[var(--project-accent)] focus:outline-none focus:ring-2 focus:ring-[var(--project-accent)]/15"
>
<option value="all">Tất cả trạng thái</option>
<option value="annotating">Đang gán nhãn</option>
<option value="pending_review">Chờ duyệt</option>
<option value="completed">Hoàn thành</option>
</select>
<svg
className="pointer-events-none absolute right-3 top-1/2 h-4 w-4 -translate-y-1/2 text-slate-500"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
strokeWidth={2}
>
<path strokeLinecap="round" strokeLinejoin="round" d="M19 9l-7 7-7-7" />
</svg>
<img className="pointer-events-none absolute right-3 top-1/2 h-[13px] w-[13px] -translate-y-1/2" src="/assets/projects-ui/chevron-down-2.svg" alt="" />
</div>
</div>
@ -106,38 +78,25 @@ export const ProjectFilters: React.FC<ProjectFiltersProps> = ({
<select
value={sortBy}
onChange={(e) => onSortChange(e.target.value as 'updated' | 'name' | 'progress')}
className="appearance-none bg-transparent pr-5 text-xs font-medium text-slate-500 hover:text-slate-800 focus:outline-none cursor-pointer"
className="appearance-none bg-transparent pr-5 text-[11px] font-normal text-[var(--project-body)] hover:text-[var(--project-heading)] focus:outline-none cursor-pointer"
>
<option value="updated">Mới cập nhật</option>
<option value="name">Tên dự án (A-Z)</option>
<option value="progress">Tiến độ gán nhãn</option>
</select>
<svg
className="pointer-events-none absolute right-0.5 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-slate-400"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
strokeWidth={2}
>
<path strokeLinecap="round" strokeLinejoin="round" d="M19 9l-7 7-7-7" />
</svg>
<img className="pointer-events-none absolute right-0.5 top-1/2 h-3.5 w-3.5 -translate-y-1/2" src="/assets/projects-ui/chevron-down.svg" alt="" />
</div>
<button
type="button"
onClick={() => onViewModeChange(viewMode === 'grid' ? 'list' : 'grid')}
title={viewMode === 'grid' ? 'Chuyển sang dạng danh sách' : 'Chuyển sang dạng lưới'}
className="flex h-8 w-8 items-center justify-center rounded-lg text-indigo-600 transition hover:bg-indigo-50"
className="flex h-8 w-8 items-center justify-center rounded-lg text-[var(--project-accent)] transition hover:bg-[var(--project-accent-soft)]"
>
{viewMode === 'grid' ? (
<svg className="h-4 w-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth={2}>
<rect x="3" y="3" width="7" height="7" rx="1.5" />
<rect x="14" y="3" width="7" height="7" rx="1.5" />
<rect x="3" y="14" width="7" height="7" rx="1.5" />
<rect x="14" y="14" width="7" height="7" rx="1.5" />
</svg>
<img className="h-4 w-4" src="/assets/projects-ui/layout-grid-2.svg" alt="" />
) : (
<svg className="h-4 w-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth={2}>
<svg className="h-4 w-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth={2} aria-hidden="true">
<path strokeLinecap="round" strokeLinejoin="round" d="M4 6h16M4 12h16M4 18h16" />
</svg>
)}

View file

@ -52,13 +52,13 @@ export const ProjectStatsCards: React.FC<ProjectStatsCardsProps> = ({ projects }
{cards.map((card) => (
<div
key={card.label}
className="rounded-2xl border border-slate-200/80 bg-white px-5 py-4 shadow-[0_1px_2px_rgba(15,23,42,0.03)]"
className="flex flex-col gap-[5px] rounded-[10px] border border-[var(--project-border)] bg-[var(--project-surface)] p-[18px] shadow-none"
>
<p className="text-xs font-medium text-slate-500">{card.label}</p>
<p className="mt-2 text-[28px] font-bold leading-tight tracking-tight text-slate-900">
<p className="text-[11px] font-normal text-[var(--project-body)]">{card.label}</p>
<p className="text-[28px] font-normal leading-[42px] text-[var(--project-heading)]">
{card.value}
</p>
<p className="mt-2 text-xs text-slate-500">{card.subtext}</p>
<p className="text-[10px] leading-[15px] text-[var(--project-body)]">{card.subtext}</p>
</div>
))}
</div>

View file

@ -1,14 +1,9 @@
import { Project, ImageItem, ActivityLog, CreateProjectInput, LabelClass, ProjectMemberSummary } from '@/types'
// SVG Data URLs for realistic street/vehicle thumbnails matching the wireframes
export const THUMBNAIL_CAR_SEDAN =
'https://images.unsplash.com/photo-1549399542-7e3f8b79c341?auto=format&fit=crop&w=900&q=80'
export const THUMBNAIL_TRAFFIC_STREET =
'https://images.unsplash.com/photo-1519003722824-194d4455a60c?auto=format&fit=crop&w=900&q=80'
export const THUMBNAIL_STREET_SEGMENTATION =
'https://images.unsplash.com/photo-1506521781263-d8422e82f27a?auto=format&fit=crop&w=900&q=80'
// Card thumbnails from the Figma project management screen.
export const THUMBNAIL_CAR_SEDAN = '/assets/projects/classification.jpg'
export const THUMBNAIL_TRAFFIC_STREET = '/assets/projects/object-detection.jpg'
export const THUMBNAIL_STREET_SEGMENTATION = '/assets/projects/segmentation.jpg'
export const INITIAL_PROJECTS: Project[] = [
{