[feat] 공급사 포털·landing: 채팅 남은시간·헤더 정비, 데모 미디어(mp4/gif) 교체
- 공급사 포털: 채팅 말풍선·남은시간 표기·헤더바·채팅 화면 정비 - landing: how-it-works 데모를 GIF 재생으로 되돌리고 히어로·디바이스 목업 조정, negotiation_annotated_3d 미디어 갱신
This commit is contained in:
parent
cfee6e89d0
commit
4f9789c08a
@ -22,7 +22,7 @@ export function ChatMessage() {
|
|||||||
스크롤 시 여백도 함께 밀려 올라가도록 스크롤 컨테이너 안쪽에 둔다 */}
|
스크롤 시 여백도 함께 밀려 올라가도록 스크롤 컨테이너 안쪽에 둔다 */}
|
||||||
<div
|
<div
|
||||||
ref={scrollRef}
|
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} />
|
<ChatList scrollRef={scrollRef} />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -20,12 +20,23 @@ export function RemainingTime() {
|
|||||||
return (
|
return (
|
||||||
<span
|
<span
|
||||||
className={cn(
|
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',
|
ended ? 'bg-neutral-20 text-neutral-60' : 'bg-brand-light text-brand-600',
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
<Clock className="size-3.5" />
|
<Clock className="size-3.5 shrink-0" />
|
||||||
협상 마감 {remaining}
|
<span className="truncate">
|
||||||
|
{ended ? (
|
||||||
|
// 종료 시엔 어느 폭에서도 긴 문장('종료되었습니다.')을 쓰지 않는다 — 헤더에서 잘리던 원인.
|
||||||
|
'마감 종료'
|
||||||
|
) : (
|
||||||
|
<>
|
||||||
|
<span className="hidden sm:inline">협상 마감 </span>
|
||||||
|
{remaining}
|
||||||
|
</>
|
||||||
|
)}
|
||||||
|
</span>
|
||||||
</span>
|
</span>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,9 +1,11 @@
|
|||||||
import { type ReactNode } from 'react'
|
import { type ReactNode } from 'react'
|
||||||
import { cn } from '@/lib'
|
import { cn } from '@/lib'
|
||||||
|
|
||||||
// safe-t: 노치 기기에서 헤더가 상태바 밑으로 파고들지 않도록 안전영역만큼 키운다(h-[56px] 은 콘텐츠 높이).
|
// safe-t: 노치 기기에서 헤더가 상태바 밑으로 파고들지 않도록 안전영역만큼 키운다.
|
||||||
|
// box-content 금지 — w-full + px-* 와 겹치면 폭이 "부모100% + 좌우패딩"이 되어 오른쪽이 잘린다.
|
||||||
|
// 대신 border-box(기본) 유지하고 min-h 로 56px + 안전영역을 확보한다.
|
||||||
const HEADER_BASE =
|
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 = {
|
const HEADER_ALIGN = {
|
||||||
left: 'justify-start',
|
left: 'justify-start',
|
||||||
|
|||||||
@ -25,8 +25,9 @@ export function ChatPage() {
|
|||||||
sidebar={<Sidebar />}
|
sidebar={<Sidebar />}
|
||||||
header={
|
header={
|
||||||
<MainHeaderBar className="px-4 sm:px-6 min-[1180px]:px-8">
|
<MainHeaderBar className="px-4 sm:px-6 min-[1180px]:px-8">
|
||||||
<div className="flex w-full items-center justify-between gap-2">
|
{/* min-w-0: flex 기본 min-width:auto 라 자식이 안 줄어들어 헤더 밖으로 넘치던 것 방지 */}
|
||||||
<div className="flex min-w-0 items-center gap-2">
|
<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 />
|
<BackToListButton />
|
||||||
<span className="hidden h-4 w-px bg-border lg:inline-block" />
|
<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" />
|
<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>
|
</span>
|
||||||
</div>
|
</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={<Package className="size-4" />} label="상품" panel="product" />
|
||||||
<PanelToggle icon={<ClipboardList className="size-4" />} label="현황" panel="status" />
|
<PanelToggle icon={<ClipboardList className="size-4" />} label="현황" panel="status" />
|
||||||
<RemainingTime />
|
<RemainingTime />
|
||||||
@ -92,7 +93,7 @@ function PanelToggle({
|
|||||||
type="button"
|
type="button"
|
||||||
onClick={() => open(panel)}
|
onClick={() => open(panel)}
|
||||||
className={cn(
|
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,
|
interactive,
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
|
|||||||
@ -57,8 +57,8 @@ export function HeroNeumorphic() {
|
|||||||
className="w-full flex justify-center"
|
className="w-full flex justify-center"
|
||||||
>
|
>
|
||||||
<video
|
<video
|
||||||
src="/gifs/negotiation_annotated.mp4"
|
src="/gifs/negotiation_annotated_3d.mp4?v=w3"
|
||||||
poster="/gifs/negotiation_annotated.jpg"
|
poster="/gifs/negotiation_annotated_3d.jpg?v=w3"
|
||||||
autoPlay
|
autoPlay
|
||||||
muted
|
muted
|
||||||
loop
|
loop
|
||||||
|
|||||||
@ -241,8 +241,6 @@ const DEMO_TABS: DemoTab[] = [
|
|||||||
checks: ["1:1 비대면 협상 포털 제공", "불필요한 실랑이를 예방하여 파트너십 보호"],
|
checks: ["1:1 비대면 협상 포털 제공", "불필요한 실랑이를 예방하여 파트너십 보호"],
|
||||||
mockup: "phone",
|
mockup: "phone",
|
||||||
gif: "/gifs/negotiation.gif",
|
gif: "/gifs/negotiation.gif",
|
||||||
video: "/gifs/negotiation.mp4",
|
|
||||||
poster: "/gifs/negotiation.jpg",
|
|
||||||
gifAlt: "AI 모바일 자동 협상 시연",
|
gifAlt: "AI 모바일 자동 협상 시연",
|
||||||
fallback: {
|
fallback: {
|
||||||
icon: Smartphone,
|
icon: Smartphone,
|
||||||
|
|||||||
@ -23,11 +23,11 @@ function BrowserFrame({ url, children }: { url: string; children: React.ReactNod
|
|||||||
function PhoneFrame({ children }: { children: React.ReactNode }) {
|
function PhoneFrame({ children }: { children: React.ReactNode }) {
|
||||||
return (
|
return (
|
||||||
<div className="relative bg-black rounded-[48px] p-3 shadow-[0_20px_50px_rgba(0,0,0,0.15)] border-4 border-line-strong w-full max-w-[290px] aspect-[9/18] overflow-hidden flex flex-col">
|
<div className="relative bg-black rounded-[48px] p-3 shadow-[0_20px_50px_rgba(0,0,0,0.15)] border-4 border-line-strong w-full max-w-[290px] aspect-[9/18] overflow-hidden flex flex-col">
|
||||||
<div className="absolute top-4 left-1/2 -translate-x-1/2 bg-black h-5 w-28 rounded-full z-20 flex items-center justify-around px-4">
|
{/* 노치는 화면 '안쪽'에 작은 아일랜드로 — 베젤과 붙으면 검은 덩어리처럼 보인다 */}
|
||||||
<span className="w-1.5 h-1.5 rounded-full bg-[#1F2022]" />
|
<div className="bg-white rounded-[36px] flex-1 overflow-hidden relative flex flex-col justify-center items-center">
|
||||||
<span className="w-10 h-1 bg-[#1F2022] rounded-full" />
|
<div className="absolute top-1 left-1/2 -translate-x-1/2 bg-black/70 h-0.5 w-3.5 rounded-full z-20" />
|
||||||
|
{children}
|
||||||
</div>
|
</div>
|
||||||
<div className="bg-white rounded-[36px] flex-1 overflow-hidden relative flex flex-col justify-center items-center">{children}</div>
|
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@ -34,7 +34,7 @@ type HeroTheme = "neumorphic" | "glassmorphic" | "console";
|
|||||||
|
|
||||||
export default function Home() {
|
export default function Home() {
|
||||||
// 히어로 디자인 비교용 — 스위처는 dev 에서만 노출, 배포본은 console(Live Console) 고정
|
// 히어로 디자인 비교용 — 스위처는 dev 에서만 노출, 배포본은 console(Live Console) 고정
|
||||||
const [heroTheme, setHeroTheme] = useState<HeroTheme>("console");
|
const [heroTheme, setHeroTheme] = useState<HeroTheme>("neumorphic");
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="min-h-screen bg-white text-ink font-sans antialiased selection:bg-primary/10 selection:text-primary">
|
<div className="min-h-screen bg-white text-ink font-sans antialiased selection:bg-primary/10 selection:text-primary">
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 69 KiB After Width: | Height: | Size: 85 KiB |
Binary file not shown.
Loading…
Reference in New Issue
Block a user