Skip to content

Commit 2cced5b

Browse files
authored
๐ŸŽจFix home width (#76)
### ๐Ÿ“ ์ž‘์—… ๋‚ด์šฉ - ์ด๋ฒˆ PR์—์„œ ์ž‘์—…ํ•œ ๋‚ด์šฉ์„ ๊ฐ„๋žตํžˆ ์„ค๋ช…ํ•ด์ฃผ์„ธ์š”. ### ๐Ÿ“ธ ์Šคํฌ๋ฆฐ์ƒท (์„ ํƒ) ### ๐Ÿš€ ๋ฆฌ๋ทฐ ์š”๊ตฌ์‚ฌํ•ญ (์„ ํƒ) - ๋ฆฌ๋ทฐ์–ด๊ฐ€ ํŠน๋ณ„ํžˆ ๋ด์ฃผ์—ˆ์œผ๋ฉด ํ•˜๋Š” ๋ถ€๋ถ„์ด ์žˆ๋‹ค๋ฉด ์ž‘์„ฑํ•ด์ฃผ์„ธ์š”.
1 parent 66c4ee5 commit 2cced5b

File tree

2 files changed

+46
-1
lines changed

2 files changed

+46
-1
lines changed

โ€Žsrc/mocks/handlers/event.tsโ€Ž

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,4 +101,49 @@ export const eventHandlers = [
101101
reservationEmail: 'guest@example.com',
102102
});
103103
}),
104+
105+
// src/mocks/handlers/event.ts ์— ์ถ”๊ฐ€
106+
107+
// 4. ๋‚ด๊ฐ€ ์ƒ์„ฑํ•œ/์ฐธ์—ฌํ•œ ์ผ์ • ๋ชฉ๋ก ์กฐํšŒ (GET /events/me)
108+
http.get(path('/events/me'), async () => {
109+
await delay(300);
110+
111+
// ์ œ๊ณตํ•ด์ฃผ์‹  response ํ˜•์‹์— ๋งž์ถ˜ ๋ฐ์ดํ„ฐ
112+
return HttpResponse.json({
113+
events: [
114+
{
115+
publicId: 'my-event-1',
116+
title: '๋‚ด๊ฐ€ ๋งŒ๋“  ํ…Œ๋‹ˆ์Šค ๋ชจ์ž„',
117+
startsAt: '2026-02-10T10:00:00.000Z',
118+
endsAt: '2026-02-10T12:00:00.000Z',
119+
registrationStartsAt: '2026-02-01T00:00:00.000Z',
120+
registrationEndsAt: '2026-02-09T23:59:59.000Z',
121+
capacity: 10,
122+
totalApplicants: 5,
123+
},
124+
{
125+
publicId: 'my-event-2',
126+
title: '์ฐธ์—ฌ ์ค‘์ธ ์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ ์Šคํ„ฐ๋””',
127+
startsAt: '2026-02-15T19:00:00.000Z',
128+
endsAt: '2026-02-15T21:00:00.000Z',
129+
registrationStartsAt: '2026-02-05T00:00:00.000Z',
130+
registrationEndsAt: '2026-02-14T18:00:00.000Z',
131+
capacity: 4,
132+
totalApplicants: 4,
133+
},
134+
{
135+
publicId: 'my-event-3',
136+
title: '์ฃผ๋ง ๋Ÿฌ๋‹ ํฌ๋ฃจ ๋ชจ์ง‘',
137+
startsAt: '2026-02-22T08:00:00.000Z',
138+
endsAt: '2026-02-22T10:00:00.000Z',
139+
registrationStartsAt: '2026-02-10T00:00:00.000Z',
140+
registrationEndsAt: '2026-02-21T20:00:00.000Z',
141+
capacity: 20,
142+
totalApplicants: 12,
143+
},
144+
],
145+
nextCursor: '2026-02-22T08:00:00.000Z',
146+
hasNext: false,
147+
});
148+
}),
104149
];

โ€Žsrc/routes/Home.tsxโ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export default function Home() {
4444

4545
// otherwise, show the dashboard with event cards
4646
return (
47-
<div className="flex-1 flex justify-center">
47+
<div className="max-w-2xl min-w-[320px] mx-auto w-[90%] px-6 flex-1 flex justify-center">
4848
<Dashboard events={events} />
4949
</div>
5050
);

0 commit comments

Comments
ย (0)