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

@ -28,7 +28,7 @@ const MOCK_NOTIFICATIONS: NotificationItem[] = [
},
]
export const NotificationBell: React.FC = () => {
export const NotificationBell: React.FC<{ isProjectList?: boolean }> = ({ isProjectList = false }) => {
const [open, setOpen] = useState(false)
const [notifications, setNotifications] = useState(MOCK_NOTIFICATIONS)
const ref = useRef<HTMLDivElement>(null)
@ -54,10 +54,10 @@ export const NotificationBell: React.FC = () => {
<button
type="button"
onClick={() => setOpen((prev) => !prev)}
className="relative rounded-full p-2 text-slate-500 hover:bg-slate-100 hover:text-slate-800 transition-colors"
className={`relative rounded-full transition-colors ${isProjectList ? 'p-0 text-[#697386]' : 'p-2 text-slate-500 hover:bg-slate-100 hover:text-slate-800'}`}
aria-label="Thông báo"
>
<svg
{isProjectList ? <img className="h-[18px] w-[18px]" src="/assets/projects-ui/bell.svg" alt="" /> : <svg
className="h-4 w-4"
fill="none"
viewBox="0 0 24 24"
@ -69,8 +69,8 @@ export const NotificationBell: React.FC = () => {
strokeLinejoin="round"
d="M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9"
/>
</svg>
{unreadCount > 0 && (
</svg>}
{!isProjectList && unreadCount > 0 && (
<span className="absolute top-1.5 right-1.5 h-2 w-2 rounded-full bg-[#C95C3C] ring-2 ring-white" />
)}
</button>