Skip to content

Commit f10225d

Browse files
youngminssclaude
andauthored
feat: [QA] 모임 생성 완료, 결과페이지 페이지 UI 개선 (#66)
* chore: [QA] 모임 생성 완료 페이지 및 결과 페이지 UI 개선 - 모임 생성 완료 페이지에서 링크 공유 버튼 제거 - 내 취향 입력 버튼 variant를 secondary로 변경 - 결과 페이지 다른 후보 식당 이미지에 ring 추가 - ResultView에서 사용하지 않는 import 제거 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * feat: 모임 생성 완료 페이지 뒤로가기 버튼을 홈 버튼으로 변경 - HomeIcon 컴포넌트 추가 - BackwardButton 대신 홈 버튼으로 대체 - 클릭 시 홈("/")으로 이동 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 3934066 commit f10225d

File tree

5 files changed

+54
-26
lines changed

5 files changed

+54
-26
lines changed

app/gathering/create/complete/[accessKey]/page.tsx

Lines changed: 19 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,38 +2,41 @@
22

33
import { useParams, useRouter } from "next/navigation";
44

5+
import { twJoin } from "tailwind-merge";
6+
57
import { Layout } from "#/components/layout";
6-
import { BackwardButton } from "#/components/backwardButton";
78
import { Button } from "#/components/button";
89
import { MeetingCompleteIllustration } from "#/components/illustrations";
9-
import { share } from "#/utils/share";
1010
import { Toaster } from "#/components/toast";
11+
import { HomeIcon } from "#/icons/homeIcon";
1112

1213
export default function GatheringCreateCompletePage() {
1314
const params = useParams<{ accessKey: string }>();
1415
const router = useRouter();
1516

16-
const handleBackward = () => {
17-
router.push("/gathering/create");
17+
const handleHomeButtonClick = () => {
18+
router.push("/");
1819
};
1920

2021
const handlePreferenceInput = () => {
2122
router.push(`/gathering/${params.accessKey}/opinion`);
2223
};
2324

24-
const handleShare = () => {
25-
const landingUrl = `${window.location.origin}/gathering/${params.accessKey}/landing`;
26-
share({
27-
title: "함께 갈 맛집, 같이 정해요!",
28-
text: "[요기잇] 다인원을 위한 맛집 서비스",
29-
url: landingUrl,
30-
});
31-
};
32-
3325
return (
3426
<Layout.Root>
3527
<Layout.Header>
36-
<BackwardButton onClick={handleBackward} />
28+
<button
29+
type="button"
30+
aria-label="홈으로 가기"
31+
onClick={handleHomeButtonClick}
32+
className={twJoin(
33+
"ygi:flex ygi:items-center ygi:justify-center",
34+
"ygi:h-12 ygi:w-12 ygi:p-3",
35+
"ygi:cursor-pointer ygi:bg-transparent",
36+
)}
37+
>
38+
<HomeIcon size={24} className="ygi:text-icon-default" />
39+
</button>
3740
</Layout.Header>
3841

3942
<Layout.Content>
@@ -42,7 +45,7 @@ export default function GatheringCreateCompletePage() {
4245
<h1 className="ygi:heading-22-bd ygi:text-text-primary">
4346
모임 준비 끝!
4447
<br />
45-
공유하고 맛집을 정해보세요
48+
공유하기 전에 내 취향 먼저 알려주세요
4649
</h1>
4750
</div>
4851

@@ -55,19 +58,12 @@ export default function GatheringCreateCompletePage() {
5558
<Layout.Footer>
5659
<div className="ygi:flex ygi:gap-3 ygi:px-6">
5760
<Button
58-
variant="tertiary"
61+
variant="secondary"
5962
width="full"
6063
onClick={handlePreferenceInput}
6164
>
6265
내 취향 입력
6366
</Button>
64-
<Button
65-
variant="secondary"
66-
width="full"
67-
onClick={handleShare}
68-
>
69-
링크 공유
70-
</Button>
7167
</div>
7268
</Layout.Footer>
7369

src/icons/homeIcon/HomeIcon.tsx

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
import type { SVGProps } from "react";
2+
3+
export interface HomeIconProps extends Omit<
4+
SVGProps<SVGSVGElement>,
5+
"children"
6+
> {
7+
size?: number | string;
8+
color?: string;
9+
}
10+
11+
export const HomeIcon = ({
12+
size = 24,
13+
color = "currentColor",
14+
...props
15+
}: HomeIconProps) => {
16+
return (
17+
<svg
18+
width={size}
19+
height={size}
20+
viewBox="0 0 24 24"
21+
fill="none"
22+
xmlns="http://www.w3.org/2000/svg"
23+
{...props}
24+
>
25+
<path
26+
d="M8.7999 21.6V14.2964C8.7999 13.6241 9.37298 13.0791 10.0799 13.0791H13.9199C14.6268 13.0791 15.1999 13.6241 15.1999 14.2964V21.6M11.2581 2.62527L2.93811 8.25179C2.60045 8.48014 2.3999 8.84979 2.3999 9.24381V19.7741C2.3999 20.7825 3.25952 21.6 4.3199 21.6H19.6799C20.7403 21.6 21.5999 20.7825 21.5999 19.7741V9.24381C21.5999 8.84979 21.3994 8.48014 21.0617 8.25179L12.7417 2.62527C12.2976 2.32494 11.7022 2.32494 11.2581 2.62527Z"
27+
stroke={color}
28+
strokeWidth="1.6"
29+
strokeLinecap="round"
30+
/>
31+
</svg>
32+
);
33+
};

src/icons/homeIcon/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { HomeIcon } from "./HomeIcon";

src/pageComponents/gathering/opinion/ResultView.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ import {
77
} from "#/pageComponents/gathering/restaurantCard";
88
import type { RecommendationResult } from "#/types/gathering";
99
import { twJoin } from "tailwind-merge";
10-
import { Chip } from "#/components/chip";
11-
import { CrownIcon } from "#/icons/crownIcon";
1210
import { ProgressBar } from "#/components/progressBar";
1311
import { CircleIcon } from "#/icons/circleIcon";
1412
import { XIcon } from "#/icons/xIcon";

src/pageComponents/gathering/restaurantCard/OtherCandidateCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export const OtherCandidateCard = ({
2828
className="ygi:flex ygi:items-start ygi:overflow-hidden"
2929
aria-label={`${ranking}위 추천 음식점: ${restaurant.restaurantName}`}
3030
>
31-
<div className="ygi:relative ygi:h-20 ygi:w-20 ygi:shrink-0 ygi:overflow-hidden ygi:rounded ygi:bg-gray-200">
31+
<div className="ygi:relative ygi:h-20 ygi:w-20 ygi:shrink-0 ygi:overflow-clip ygi:rounded ygi:border ygi:border-border-default ygi:bg-gray-200">
3232
{restaurant.imageUrl ? (
3333
<Image
3434
src={restaurant.imageUrl}

0 commit comments

Comments
 (0)