Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/app/estimates/received/page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import type { Metadata } from "next";

import CustomerAuthGate from "@/components/auth/CustomerAuthGate";
import { ReceivedEstimatesLoadingSkeleton } from "@/components/estimate/EstimateLoadingSkeletons";
import ReceivedEstimatesPageClient from "@/components/estimate/received/ReceivedEstimatesPageClient";

export const metadata: Metadata = {
Expand All @@ -11,7 +10,7 @@ export const metadata: Metadata = {

export default function ReceivedEstimatesPage() {
return (
<CustomerAuthGate loadingFallback={<ReceivedEstimatesLoadingSkeleton />}>
<CustomerAuthGate>
<ReceivedEstimatesPageClient />
</CustomerAuthGate>
);
Expand Down
14 changes: 9 additions & 5 deletions src/components/common/DetailHeroBanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ interface DetailHeroBannerProps {
showProfile?: boolean;
imageUrl?: string | null;
name?: string;
/** 첫 화면 LCP 프로필 이미지를 preload할지 여부 */
preloadProfileImage?: boolean;
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved
}

/**
Expand All @@ -18,12 +20,13 @@ export default function DetailHeroBanner({
showProfile = true,
imageUrl = null,
name = "",
preloadProfileImage = false,
}: DetailHeroBannerProps) {
if (!showProfile) {
return (
<div className="bg-background-brand relative h-30.5 w-full shrink-0 overflow-hidden md:h-42.5 xl:h-56.25">
<HeroDecorationRightIcon className="text-icon-brand-tertiary pointer-events-none absolute bottom-0 left-[calc(50%_+_152px)] hidden h-37 w-81.25 xl:block" />
<HeroDecorationLeftIcon className="text-icon-brand-tertiary pointer-events-none absolute top-[79.39px] left-[calc(50%_-_750px)] hidden h-28.75 w-42.5 xl:block" />
<HeroDecorationRightIcon className="text-icon-brand-tertiary pointer-events-none absolute bottom-0 left-[calc(50%+152px)] hidden h-37 w-81.25 xl:block" />
<HeroDecorationLeftIcon className="text-icon-brand-tertiary pointer-events-none absolute top-[79.39px] left-[calc(50%-750px)] hidden h-28.75 w-42.5 xl:block" />
</div>
);
}
Expand All @@ -36,22 +39,23 @@ export default function DetailHeroBanner({
{/* 2026.07.25 정슬기 - [수정] Figma hero-decoration SVG(캡슐 벡터)로 원형 CSS 대체 */}
{/* 우측: AABB x=1112(50%+152), 주황 배너 하단에 맞춤 */}
{/* 2026.07.26 정슬기 - [수정] Tailwind arbitrary calc 연산자 공백을 _로 표기 */}
<HeroDecorationRightIcon className="text-icon-brand-tertiary pointer-events-none absolute bottom-0 left-[calc(50%_+_152px)] hidden h-37 w-81.25 xl:block" />
<HeroDecorationLeftIcon className="text-icon-brand-tertiary pointer-events-none absolute top-[79.39px] left-[calc(50%_-_750px)] hidden h-28.75 w-42.5 xl:block" />
<HeroDecorationRightIcon className="text-icon-brand-tertiary pointer-events-none absolute bottom-0 left-[calc(50%+152px)] hidden h-37 w-81.25 xl:block" />
<HeroDecorationLeftIcon className="text-icon-brand-tertiary pointer-events-none absolute top-[79.39px] left-[calc(50%-750px)] hidden h-28.75 w-42.5 xl:block" />
</div>

{/* 2026.07.24 정슬기 - [수정] margin 토큰 유틸(left-margin-*) 사용 */}
{/* 2026.07.25 정슬기 - [수정] Desktop 아바타 x=359 (Figma 8091:47378), 129×137, r20, top=122 */}
{/* 2026.07.26 정슬기 - [수정] Tablet 프로필 Figma 100×100·r12 (1:9171 / 1:11975) — size-25 */}
{/* 프로필은 Figma처럼 둥근 네모(원형 X). 기본 아이콘도 사각 배경으로 맞춤 */}
<div className="bg-background-avatar rounded-16 md:rounded-12 left-margin-mobile md:left-margin-tablet xl:rounded-20 absolute bottom-0 size-21.5 overflow-hidden md:size-25 xl:top-30.5 xl:bottom-auto xl:left-[max(1rem,calc(50%_-_601px))] xl:h-34.25 xl:w-32.25">
<div className="bg-background-avatar rounded-16 md:rounded-12 left-margin-mobile md:left-margin-tablet xl:rounded-20 absolute bottom-0 size-21.5 overflow-hidden md:size-25 xl:top-30.5 xl:bottom-auto xl:left-[max(1rem,calc(50%-601px))] xl:h-34.25 xl:w-32.25">
<div className="relative size-full">
{imageUrl ? (
<Image
src={resolveMoverProfileImageSrc(imageUrl)}
alt={`${name} 기사님 프로필`}
fill
sizes="(max-width: 768px) 86px, (max-width: 1024px) 100px, 129px"
preload={preloadProfileImage}
className="object-cover"
/>
) : (
Expand Down
44 changes: 34 additions & 10 deletions src/components/common/ScrollToTopButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ function shouldHideScrollToTop(pathname: string): boolean {
if (pathname.startsWith("/oauth/")) {
return true;
}

return SCROLL_TO_TOP_HIDDEN_PATHS.has(pathname);
}

Expand All @@ -37,6 +38,7 @@ function isMoverDetailPath(pathname: string): boolean {
if (pathname === APP_ROUTES.MOVERS.ROOT || pathname === APP_ROUTES.MOVERS.FAVORITES) {
return false;
}

return pathname.startsWith(`${APP_ROUTES.MOVERS.ROOT}/`);
}

Expand All @@ -47,10 +49,15 @@ function isMoverDetailPath(pathname: string): boolean {
*/
export default function ScrollToTopButton() {
const pathname = usePathname();

const [scrolledPastThreshold, setScrolledPastThreshold] = useState(false);
const [isFocused, setIsFocused] = useState(false);

const hiddenByRoute = shouldHideScrollToTop(pathname);
const raiseForStickyCta = isMoverDetailPath(pathname);
const show = !hiddenByRoute && scrolledPastThreshold;

// 버튼에 포커스가 남아 있는 동안에는 숨기지 않음
const show = !hiddenByRoute && (scrolledPastThreshold || isFocused);
Comment thread
juengseulki marked this conversation as resolved.
Resolved

useEffect(() => {
if (hiddenByRoute) {
Expand All @@ -62,11 +69,15 @@ export default function ScrollToTopButton() {
};

updateVisibility();
window.addEventListener("scroll", updateVisibility, { passive: true });

window.addEventListener("scroll", updateVisibility, {
passive: true,
});

return () => {
window.removeEventListener("scroll", updateVisibility);
};
}, [pathname, hiddenByRoute]);
}, [hiddenByRoute]);

if (hiddenByRoute) {
return null;
Expand All @@ -76,22 +87,34 @@ export default function ScrollToTopButton() {
<button
type="button"
aria-label="맨 위로"
aria-hidden={!show}
tabIndex={show ? 0 : -1}
onFocus={() => {
setIsFocused(true);
}}
onBlur={() => {
setIsFocused(false);
}}
onClick={() => {
window.scrollTo({ top: 0, behavior: "smooth" });
window.scrollTo({
top: 0,
behavior: "smooth",
});
}}
className={cn(
"bg-background-surface shadow-toast rounded-20 fixed z-30 flex size-64 flex-col items-center justify-center gap-2",

// Mobile 16~20 / Desktop 24~32 + Safe Area
"right-[max(1rem,env(safe-area-inset-right))] md:right-[max(1.5rem,env(safe-area-inset-right))] lg:right-[max(2rem,env(safe-area-inset-right))]",

raiseForStickyCta
? "bottom-[calc(7rem+env(safe-area-inset-bottom))] lg:bottom-[max(1.5rem,env(safe-area-inset-bottom))]"
: "bottom-[max(1rem,env(safe-area-inset-bottom))] md:bottom-[max(1.5rem,env(safe-area-inset-bottom))] lg:bottom-[max(2rem,env(safe-area-inset-bottom))]",

"transition-[opacity,transform,box-shadow] duration-200 ease-out",
"hover:shadow-notification hover:-translate-y-4",
"active:translate-y-0 active:scale-95",
"focus-visible:ring-border-brand focus-visible:ring-2 focus-visible:outline-none",

Comment thread
juengseulki marked this conversation as resolved.
Resolved
show
? "pointer-events-auto translate-y-0 opacity-100"
: "pointer-events-none translate-y-8 opacity-0",
Expand All @@ -100,12 +123,13 @@ export default function ScrollToTopButton() {
<Image
src={CHARACTER_SRC}
alt=""
width={40}
height={40}
className="size-40 object-contain"
aria-hidden="true"
width={28}
height={28}
draggable={false}
className="pointer-events-none size-28 object-contain select-none"
/>
<Text as="span" variant="xs-medium" className="text-text-muted leading-none tracking-wide">

<Text as="span" variant="md-bold" className="text-text-primary">
TOP
</Text>
</button>
Expand Down
17 changes: 16 additions & 1 deletion src/components/estimate/detail/EstimateDetailLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ export function EstimateDetailQueryState({
actionBusy={actionBusy}
className={className}
/>

{secondaryAction}
</div>
</div>
Expand Down Expand Up @@ -154,7 +155,17 @@ export function EstimateDetailLoadingState({

<PageHeader title={title ?? "견적 상세"} backFallbackHref={backFallbackHref} />

<DetailHeroBanner showProfile={showProfile} />
{showProfile ? (
<div className="relative h-160 w-full shrink-0 md:h-200 xl:h-64.75">
<div className="bg-background-brand absolute top-0 left-1/2 h-30.5 w-full max-w-480 -translate-x-1/2 md:h-42.5 xl:h-56.25" />

<div className="bg-background-avatar rounded-16 md:rounded-12 left-margin-mobile md:left-margin-tablet xl:rounded-20 absolute bottom-0 size-21.5 overflow-hidden md:size-25 xl:top-30.5 xl:bottom-auto xl:left-[max(1rem,calc(50%_-_601px))] xl:h-34.25 xl:w-32.25">
<Skeleton className="size-full rounded-none" />
</div>
</div>
) : (
<DetailHeroBanner showProfile={false} />
)}

<div
className={cn(
Expand Down Expand Up @@ -183,6 +194,7 @@ export function EstimateDetailLoadingState({
<Skeleton className="h-32 w-4/5 md:h-36" />
<Skeleton className="h-32 w-3/5 md:h-36" />
</div>

<Skeleton className="hidden h-24 w-96 md:block" />
</div>

Expand Down Expand Up @@ -219,11 +231,13 @@ export function EstimateDetailLoadingState({
<section className="flex w-full flex-col gap-20" aria-hidden="true">
<div className="flex flex-col gap-12">
<Skeleton className="h-24 w-md" />

<div className="grid grid-cols-1 gap-12 md:grid-cols-2 md:gap-20">
<Skeleton className="rounded-16 h-92 w-full" />
<Skeleton className="rounded-16 h-92 w-full" />
</div>
</div>

<Skeleton className="h-px w-full rounded-none" />
</section>

Expand All @@ -246,6 +260,7 @@ export function EstimateDetailLoadingState({
<Skeleton className="rounded-16 size-64 shrink-0" />
<Skeleton className="rounded-16 h-64 flex-1" />
</div>

<Skeleton className="h-20 w-4/5 self-center" />
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default function EstimateDetailPageSkeleton() {
return (
<div aria-busy="true" aria-label="견적 상세 정보를 불러오는 중입니다.">
<EstimateDetailLayout
showProfile={false}
showProfile
backFallbackHref={APP_ROUTES.MOVER_ESTIMATES.SENT}
contentClassName="pt-35 pb-64 md:pt-[46px] md:pb-80 lg:pt-[43px] lg:pb-37-5"
rowClassName={ESTIMATE_DETAIL_LAYOUT_CLASSES.rowClassName}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default function PendingEstimatesPageClient() {
const showRefetchError = isError && hasData;

return (
<div className="bg-background-default md:bg-background-subtle flex w-full flex-col items-center">
<div className="bg-background-default md:bg-background-subtle flex w-full flex-1 flex-col items-center">
{showInitialSkeleton ? <PendingEstimatesLoadingSkeleton /> : null}

{showBlockingError ? (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default function ReceivedEstimatesPageClient() {
return (
<div
className={cn(
"bg-background-default md:bg-background-subtle flex w-full flex-col items-center",
"bg-background-default md:bg-background-subtle flex w-full flex-1 flex-col items-center",
!isEmpty && "py-38 md:py-32 xl:py-64",
)}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export function EstimateRequestListSkeleton({
aria-label="보낸 견적 요청을 불러오는 중"
>
{showFilter ? (
<div className="flex w-full justify-end" aria-hidden="true">
<div className="flex w-full justify-start" aria-hidden="true">
<Skeleton className="rounded-12 h-54 w-128 md:w-160" />
</div>
) : null}
Expand Down
25 changes: 14 additions & 11 deletions src/components/estimate/requests/EstimateRequestsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,17 +91,20 @@ export default function EstimateRequestsList({

if (pagination.totalCount === 0) {
return isAllFilter ? (
<EstimatesListEmptyState
description={
<>
아직 보낸 견적 요청이 없어요
<br />
견적 요청을 작성하고 기사님의 견적을 받아보세요
</>
}
buttonLabel="견적 요청하기"
href={APP_ROUTES.ESTIMATE_REQUEST}
/>
<div className="-translate-y-26 md:-translate-y-26 xl:-translate-y-40">
<EstimatesListEmptyState
description={
<>
아직 보낸 견적 요청이 없어요
<br />
견적 요청을 작성하고 기사님의 견적을 받아보세요
</>
}
buttonLabel="견적 요청하기"
href={APP_ROUTES.ESTIMATE_REQUEST}
alignWithFilter
/>
</div>
) : (
<div className="flex w-full flex-col gap-24 md:gap-32">
<div className="px-margin-mobile md:px-margin-tablet max-w-container-desktop-narrow mx-auto w-full xl:px-0">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,12 @@ export default function EstimateRequestsPageClient() {
};

return (
<div className="bg-background-default md:bg-background-subtle flex w-full flex-col items-center py-38 md:py-32 xl:py-64">
<div
className={cn(
"bg-background-default md:bg-background-subtle flex w-full flex-col items-center",
isEmpty ? "flex-1" : "py-38 md:py-32 xl:py-64",
)}
>
{isLoading ? <EstimateRequestListSkeleton showFilter /> : null}
Comment thread
juengseulki marked this conversation as resolved.
Resolved

{isError ? (
Expand Down
2 changes: 1 addition & 1 deletion src/components/landing/LandingBottomBanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default function LandingBottomBanner() {
height={60}
unoptimized
draggable={false}
className="pointer-events-none select-none h-[34px] w-[33px] object-contain md:h-[60px] md:w-[58px]"
className="pointer-events-none h-[34px] w-[33px] object-contain select-none md:h-[60px] md:w-[58px]"
/>
</div>

Expand Down
6 changes: 3 additions & 3 deletions src/components/landing/LandingFeatureCompare.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default function LandingFeatureCompare() {
alt="여러 업체의 견적 카드 비교 예시"
fill
draggable={false}
className="pointer-events-none select-none object-cover object-top"
className="pointer-events-none object-cover object-top select-none"
sizes="(min-width: 1280px) 1920px, 100vw"
/>
<h2 className="text-text-secondary absolute top-[14.18%] left-[21.72%] z-10 text-[length:calc(32/1920*100cqw)] leading-[calc(42/1920*100cqw)] font-bold whitespace-nowrap">
Expand All @@ -42,7 +42,7 @@ export default function LandingFeatureCompare() {
alt="여러 업체의 견적 카드 비교 예시"
fill
draggable={false}
className="pointer-events-none select-none object-cover object-top"
className="pointer-events-none object-cover object-top select-none"
sizes="100vw"
/>
<h2 className="text-text-secondary absolute top-[5.6%] left-[4.3%] z-10 text-[length:calc(32/744*100cqw)] leading-[calc(42/744*100cqw)] font-bold whitespace-nowrap">
Expand All @@ -61,7 +61,7 @@ export default function LandingFeatureCompare() {
alt="여러 업체의 견적 카드 비교 예시"
fill
draggable={false}
className="pointer-events-none select-none object-cover object-top"
className="pointer-events-none object-cover object-top select-none"
sizes="100vw"
/>
<Text
Expand Down
6 changes: 3 additions & 3 deletions src/components/landing/LandingFeatureRequest.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default function LandingFeatureRequest() {
alt="견적 상세 화면 예시"
fill
draggable={false}
className="pointer-events-none select-none object-cover object-left-top"
className="pointer-events-none object-cover object-left-top select-none"
sizes="(min-width: 1280px) 1400px, 100vw"
/>
<Text
Expand All @@ -47,7 +47,7 @@ export default function LandingFeatureRequest() {
alt="견적 상세 화면 예시"
fill
draggable={false}
className="pointer-events-none select-none object-cover object-top"
className="pointer-events-none object-cover object-top select-none"
sizes="100vw"
/>
</div>
Expand All @@ -73,7 +73,7 @@ export default function LandingFeatureRequest() {
alt="견적 상세 화면 예시"
fill
draggable={false}
className="pointer-events-none select-none object-cover object-top"
className="pointer-events-none object-cover object-top select-none"
sizes="100vw"
/>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/components/landing/LandingHero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default function LandingHero() {
fill
priority
draggable={false}
className="pointer-events-none select-none object-cover object-bottom opacity-80"
className="pointer-events-none object-cover object-bottom opacity-80 select-none"
sizes="100vw"
/>
<div aria-hidden className="bg-landing-hero-overlay absolute inset-0" />
Expand All @@ -32,7 +32,7 @@ export default function LandingHero() {
width={160}
height={99}
draggable={false}
className="pointer-events-none select-none h-[62px] w-[100px] object-contain md:h-[99px] md:w-160"
className="pointer-events-none h-[62px] w-[100px] object-contain select-none md:h-[99px] md:w-160"
unoptimized
/>

Expand Down
Loading