[feat] 공급사 포털·landing: 채팅 남은시간·헤더 정비, 데모 미디어(mp4/gif) 교체

- 공급사 포털: 채팅 말풍선·남은시간 표기·헤더바·채팅 화면 정비
- landing: how-it-works 데모를 GIF 재생으로 되돌리고 히어로·디바이스 목업 조정, negotiation_annotated_3d 미디어 갱신
This commit is contained in:
minaChoi committed 2026-07-23 15:43:23 +09:00
1 parent cfee6e89d0
commit 4f9789c08a
10 files changed
+31 -19

No files matched your search

@@ -22,7 +22,7 @@ export function ChatMessage() {
스크롤 시 여백도 함께 밀려 올라가도록 스크롤 컨테이너 안쪽에 둔다 */}
<div
ref={scrollRef}
className="chat-scroll h-full overflow-y-auto flex flex-col pt-4 lg:pt-[64px] pb-6 px-4 sm:px-6 min-[1180px]:pl-[80px] min-[1180px]:pr-[72px] min-[1350px]:pl-[140px] min-[1350px]:pr-[126px]"
className="chat-scroll h-full overflow-y-auto flex flex-col pt-0 lg:pt-[64px] pb-6 px-4 sm:px-6 min-[1180px]:pl-[80px] min-[1180px]:pr-[72px] min-[1350px]:pl-[140px] min-[1350px]:pr-[126px]"
>
<ChatList scrollRef={scrollRef} />
</div>
@@ -20,12 +20,23 @@ export function RemainingTime() {
return (
<span
className={cn(
'inline-flex items-center gap-1.5 rounded-full px-3 py-1 text-xs font-bold whitespace-nowrap tabular-nums',
// min-w-0 + truncate: 헤더가 좁아도 잘려나가지 않고 말줄임으로 접힌다.
'inline-flex min-w-0 shrink items-center gap-1.5 rounded-full px-3 py-1 text-xs font-bold tabular-nums',
ended ? 'bg-neutral-20 text-neutral-60' : 'bg-brand-light text-brand-600',
)}
>
<Clock className="size-3.5" />
협상 마감 {remaining}
<Clock className="size-3.5 shrink-0" />
<span className="truncate">
{ended ? (
// 종료 시엔 어느 폭에서도 긴 문장('종료되었습니다.')을 쓰지 않는다 — 헤더에서 잘리던 원인.
'마감 종료'
) : (
<>
<span className="hidden sm:inline">협상 마감 </span>
{remaining}
</>
)}
</span>
</span>
)
}
+4 -2
View File
@@ -1,9 +1,11 @@
import { type ReactNode } from 'react'
import { cn } from '@/lib'
// safe-t: 노치 기기에서 헤더가 상태바 밑으로 파고들지 않도록 안전영역만큼 키운다(h-[56px] 은 콘텐츠 높이).
// safe-t: 노치 기기에서 헤더가 상태바 밑으로 파고들지 않도록 안전영역만큼 키운다.
// box-content 금지 — w-full + px-* 와 겹치면 폭이 "부모100% + 좌우패딩"이 되어 오른쪽이 잘린다.
// 대신 border-box(기본) 유지하고 min-h 로 56px + 안전영역을 확보한다.
const HEADER_BASE =
'flex w-full h-[56px] box-content safe-t items-center bg-white text-foreground border-b border-border'
'flex w-full min-h-[calc(56px+env(safe-area-inset-top))] safe-t items-center bg-white text-foreground border-b border-border'
const HEADER_ALIGN = {
left: 'justify-start',
+5 -4
View File
@@ -25,8 +25,9 @@ export function ChatPage() {
sidebar={<Sidebar />}
header={
<MainHeaderBar className="px-4 sm:px-6 min-[1180px]:px-8">
<div className="flex w-full items-center justify-between gap-2">
<div className="flex min-w-0 items-center gap-2">
{/* min-w-0: flex 기본 min-width:auto 라 자식이 안 줄어들어 헤더 밖으로 넘치던 것 방지 */}
<div className="flex w-full min-w-0 items-center justify-between gap-2">
<div className="flex min-w-0 shrink items-center gap-2">
<BackToListButton />
<span className="hidden h-4 w-px bg-border lg:inline-block" />
<span className="hidden size-2 shrink-0 rounded-full bg-brand-600 animate-pulse lg:inline-block" />
@@ -34,7 +35,7 @@ export function ChatPage() {
실시간 구매 협상 채널
</span>
</div>
<div className="flex items-center gap-1.5">
<div className="flex min-w-0 shrink items-center gap-1.5">
<PanelToggle icon={<Package className="size-4" />} label="상품" panel="product" />
<PanelToggle icon={<ClipboardList className="size-4" />} label="현황" panel="status" />
<RemainingTime />
@@ -92,7 +93,7 @@ function PanelToggle({
type="button"
onClick={() => open(panel)}
className={cn(
'flex items-center gap-1 rounded-lg border border-border px-2 py-1.5 text-xs font-bold text-neutral-70 hover:bg-neutral-10 lg:hidden',
'flex shrink-0 items-center gap-1 rounded-lg border border-border px-2 py-1.5 text-xs font-bold text-neutral-70 hover:bg-neutral-10 lg:hidden',
interactive,
)}
>