Skip to content

Commit 8189c99

Browse files
committed
design: CSS 수정
1 parent ef0b3c6 commit 8189c99

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/pages/dashboard/ui/ticket/TicketOptionResponsePage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import TicketOptionLayout from "../../../../shared/ui/backgrounds/TicketOptionLa
33

44
const TicketOptionResponsePage = () => {
55
return (
6-
<TicketOptionLayout ticketAmount={4}>
6+
<TicketOptionLayout ticketAmount={1}>
77
<TicketOption options={options}>
88
</TicketOption>
99
</TicketOptionLayout>

src/shared/ui/backgrounds/TicketOptionLayout.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ interface TicketOptionLayoutProps {
1414
const TicketOptionLayout = ({ children, ticketAmount }: TicketOptionLayoutProps) => {
1515
const navigate = useNavigate();
1616
const {currentPage, setCurrentPage,resetOptions} = useTicketOptionStore();
17-
const centerContent = ticketAmount > 1 ? `티켓 옵션 선택 (${currentPage}/${ticketAmount})` : "티켓 옵션 선택";
17+
const centerContent = `티켓 옵션 선택 (${currentPage}/${ticketAmount})`;
1818

1919
//페이지
2020
const pageIndicator = Array(ticketAmount).fill(" . ");
@@ -36,7 +36,7 @@ const TicketOptionLayout = ({ children, ticketAmount }: TicketOptionLayoutProps)
3636
return (
3737
<div className="relative flex flex-col">
3838
{/* 헤더 영역 */}
39-
<div className="w-full h-24 md:h-36 bg-gradient-to-br from-[#FF5593] to-[rgb(255,117,119)] rounded-b-[20px] z-10">
39+
<div className="w-full h-28 md:h-36 bg-gradient-to-br from-[#FF5593] to-[rgb(255,117,119)] rounded-b-[20px] z-10">
4040
<Header
4141
leftButtonLabel="<"
4242
leftButtonClassName="text-2xl z-30 font-semibold"
@@ -45,7 +45,7 @@ const TicketOptionLayout = ({ children, ticketAmount }: TicketOptionLayoutProps)
4545
color="white"
4646
/>
4747
{ticketAmount > 1 && (
48-
<div className="flex justify-center gap-2 mt-2">
48+
<div className="flex justify-center gap-2 mt-4 md:mt-12">
4949
{Array.from({ length: ticketAmount }, (_, index) => (
5050
<img
5151
key={index}
@@ -71,15 +71,15 @@ const TicketOptionLayout = ({ children, ticketAmount }: TicketOptionLayoutProps)
7171
</div>
7272
</div>
7373

74-
<div className="flex flex-col mt-8 mx-auto w-[80%]">
74+
<div className="flex flex-col mt-8 mx-auto w-[85%]">
7575
<p className="font-bold text-sm md:text-base">추가 옵션</p>
7676
<p className="text-xs md:text-sm text-gray-500 mt-2">
7777
구매하는 티켓에 추가적으로 선택할 수 있는 옵션들이 있습니다.
7878
</p>
7979
</div>
8080

8181
{/* 내용 영역 */}
82-
<div className="flex flex-col w-[80%] mx-auto mt-4">
82+
<div className="flex flex-col w-[85%] mx-auto mt-4">
8383
{children}
8484
<div className="flex flex-grow" />
8585
<div className="w-full p-6">

0 commit comments

Comments
 (0)