[feat] negosium/front: 아이마켓 보고서 기준 토스풍 UI 리뉴얼 — 로그인·포털 목록(KPI·모바일 카드)·협상방 3단(말풍선·타임라인·결과/성공률 카드)·모바일 드로어, 목록 서버 페이징 유지·검색 비움

This commit is contained in:
minaChoi committed 2026-07-20 17:27:11 +09:00
1 parent 03c22f9474
commit 2386cb8867
58 files changed
+1394 -1178

No files matched your search

+1 -1
View File
@@ -2,7 +2,7 @@ import { type ReactNode } from 'react'
import { cn } from '@/lib'
const HEADER_BASE =
'flex w-full h-[56px] py-[18px] items-center rounded-t-[8px] bg-primary text-primary-foreground'
'flex w-full h-[56px] items-center bg-white text-foreground border-b border-border'
const HEADER_ALIGN = {
left: 'justify-start',
+6 -6
View File
@@ -8,19 +8,19 @@ const SIDEBAR_WIDTH = {
'w-[20%] max-w-[320px] ' +
'max-[1520px]:w-[23%] max-[1410px]:w-[25%] ' +
'max-[1180px]:w-[27%] max-[1024px]:w-[29%] max-[960px]:w-[33%]',
chat: 'w-[350px] max-[1350px]:w-[310px] max-[1180px]:w-[280px]',
chat: 'w-[300px] max-[1350px]:w-[284px] max-[1180px]:w-[260px]',
} as const
const styles = {
root: 'flex w-full min-h-screen max-h-screen bg-background',
scrollX: 'flex w-full min-h-screen max-h-screen overflow-x-auto overflow-y-hidden',
scrollXInner: 'flex w-full min-h-screen max-h-screen min-w-[1024px] bg-background',
sidebar: 'flex flex-col h-screen pt-2 bg-background',
// 좌측 레일은 lg 미만에서 숨기고(드로어로 대체), main 이 전체 폭을 차지한다. 보고서식 풀블리드 + 경계선.
sidebar: 'hidden lg:flex flex-col h-screen bg-white border-r border-border',
logoHeader:
'flex w-full h-[56px] pl-[32px] pr-[24px] py-[8px] items-center justify-between shrink-0',
main: 'flex flex-1 flex-col h-screen overflow-hidden pt-2 pr-2 pb-2 pl-0',
// 다크 헤더와 합쳐져 카드 형태
content: 'flex flex-1 flex-col min-h-0 w-full overflow-hidden rounded-b-[8px] bg-surface',
'flex w-full h-[56px] pl-[24px] pr-[16px] items-center justify-between shrink-0 border-b border-border',
main: 'flex flex-1 flex-col h-screen overflow-hidden',
content: 'flex flex-1 flex-col min-h-0 w-full overflow-hidden bg-surface',
} as const
export type SidebarWidth = keyof typeof SIDEBAR_WIDTH
+57
View File
@@ -0,0 +1,57 @@
import { useNavigate } from 'react-router'
import { Bell, LogOut } from 'lucide-react'
import { useLogoutMutation, useMeQuery } from '@/apis'
import { Logo } from '@/components'
import { cn, interactive } from '@/lib'
// 포털 상단 네비게이션 바 (목록 화면 전용).
export function PortalHeader() {
const navigate = useNavigate()
const { data: user } = useMeQuery()
const logout = useLogoutMutation()
const handleLogout = () =>
logout.mutate(undefined, { onSuccess: () => navigate('/') })
return (
<header className="sticky top-0 z-40 flex h-16 items-center justify-between border-b border-border bg-white/90 px-4 shadow-sm backdrop-blur sm:px-6">
<Logo size="md" />
<div className="flex items-center gap-2 sm:gap-3">
<button
type="button"
aria-label="알림"
className={cn(
'relative flex size-9 items-center justify-center rounded-xl text-neutral-70 hover:bg-neutral-10',
interactive,
)}
>
<Bell className="size-5" />
<span className="absolute right-2 top-2 size-1.5 rounded-full bg-brand-600" />
</button>
<div className="hidden min-w-0 flex-col items-end sm:flex">
<span className="max-w-[180px] truncate text-[13px] font-bold text-neutral-90">
{user?.supplierName ?? '-'}
</span>
<span className="text-[11px] text-neutral-60">{user?.name ?? '공급 파트너'}</span>
</div>
<button
type="button"
onClick={handleLogout}
disabled={logout.isPending}
className={cn(
'flex items-center gap-1.5 rounded-xl border border-border px-3 py-1.5 text-xs font-bold text-neutral-70 hover:bg-neutral-10 disabled:opacity-50',
interactive,
)}
>
<LogOut className="size-3.5" />
<span className="hidden sm:inline">로그아웃</span>
</button>
</div>
</header>
)
}
export default PortalHeader