-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpage.tsx
More file actions
363 lines (355 loc) · 11.5 KB
/
Copy pathpage.tsx
File metadata and controls
363 lines (355 loc) · 11.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
import IconBox from "@/components/common/icons/IconBox";
import CheckBox from "@/components/common/icons/CheckBox";
import Header from "@/components/common/header/Header";
import {
Button,
ButtonCta,
ButtonCtaModal,
IconButton,
IconOnlyButton,
TextButton,
TextOnlyButton,
} from "@/components/common/buttons";
import { Toast, ToastFrame } from "@/components/common/toast";
import {
ChipRound,
ChipRoundSelected,
ChipQnumber,
} from "@/components/common/chips";
import ChipMainDemo from "@/components/common/chips/ChipMainDemo";
import ModalLinkInputDemo from "@/components/common/modal/ModalLinkInputDemo";
import { CompleteBadge } from "@/components/common/badges";
import { Tooltip, TooltipModify } from "@/components/common/tooltip";
import { TabMenuThree, TabMenuTwo } from "@/components/common/tabs";
import { CreditHeader, CreditRow } from "@/components/common/credit";
import { SearchBar } from "@/components/common/searchbar";
import {
InputAutoGrow,
InputFile,
InputMain,
InputMultiLine,
InputMultiLine1000,
InputSingleLine,
} from "@/components/common/input";
function Section({
title,
children,
}: {
title: string;
children: React.ReactNode;
}) {
return (
<section className="flex flex-col gap-4">
<h2 className="text-h28-bold">{title}</h2>
<div className="flex flex-wrap items-center gap-3">{children}</div>
</section>
);
}
export default function Home() {
return (
<div className="p-10 flex flex-col gap-10 ">
<Section title="Header">
<div className="w-full">
<Header />
</div>
</Section>
<Section title="Toast">
<div className="flex w-full max-w-[594px] flex-col gap-5">
<Toast />
<Toast variant="check" />
<Toast variant="warning" />
<Toast variant="dark" />
</div>
</Section>
<Section title="Toast/Frame">
<ToastFrame />
</Section>
<Section title="Button — Primary">
<div className="flex items-center gap-4">
<Button label="기업 선택하기" iconType="HOME_S" size="large" />
<Button label="기업 선택하기" iconType="HOME_S" size="medium" />
<Button label="기업 선택하기" iconType="HOME_S" size="small" />
</div>
</Section>
<Section title="Button — Secondary">
<div className="flex items-center gap-4">
<Button
label="기업 선택하기"
iconType="HOME_S"
size="large"
styleType="secondary"
/>
<Button
label="기업 선택하기"
iconType="HOME_S"
size="medium"
styleType="secondary"
/>
<Button
label="기업 선택하기"
iconType="HOME_S"
size="small"
styleType="secondary"
/>
</div>
</Section>
<Section title="Button — Tertiary">
<div className="flex items-center gap-4">
<Button
label="기업 선택하기"
iconType="HOME_S"
size="large"
styleType="tertiary"
/>
<Button
label="기업 선택하기"
iconType="HOME_S"
size="medium"
styleType="tertiary"
/>
<Button
label="기업 선택하기"
iconType="HOME_S"
size="small"
styleType="tertiary"
/>
<Button
label="기업 선택하기"
iconType="SPARKLE"
size="xsmall"
styleType="tertiary"
/>
</div>
</Section>
<Section title="Button — Quaternary">
<div className="flex items-center gap-4">
<Button
label="기업 선택하기"
iconType="HOME_S"
size="large"
styleType="quaternary"
/>
<Button
label="기업 선택하기"
iconType="HOME_S"
size="medium"
styleType="quaternary"
/>
<Button
label="기업 선택하기"
iconType="HOME_S"
size="small"
styleType="quaternary"
/>
</div>
</Section>
<Section title="Button — Inactive">
<div className="flex items-center gap-4">
<Button
label="기업 선택하기"
iconType="HOME_S"
size="large"
active={false}
/>
<Button
label="기업 선택하기"
iconType="HOME_S"
size="medium"
styleType="secondary"
active={false}
/>
<Button
label="기업 선택하기"
iconType="HOME_S"
size="small"
styleType="quaternary"
active={false}
/>
<Button
label="기업 선택하기"
iconType="SPARKLE"
size="xsmall"
styleType="tertiary"
active={false}
/>
</div>
</Section>
<Section title="IconContainer Arrow">
<div className="flex items-center gap-6">
<IconButton direction="left" />
<IconButton direction="right" />
<IconButton direction="left" active />
<IconButton direction="right" active />
</div>
</Section>
<Section title="Button/Icon">
<div className="flex items-center gap-6">
<IconOnlyButton tone="light" />
<IconOnlyButton tone="dark" />
</div>
</Section>
<Section title="CTA">
<div className="flex flex-wrap items-start gap-8">
<ButtonCta className="w-[456px]" />
<ButtonCta variant="gradient_dark" className="w-[456px]" />
<ButtonCta variant="empty_white" className="w-[456px]" />
<ButtonCta variant="empty_dark" className="w-[456px]" />
</div>
</Section>
<Section title="Button/CTA/ModalButton">
<div className="flex w-[480px] flex-col gap-8">
<ButtonCtaModal />
<ButtonCtaModal stack="stack2_horizontal" />
<ButtonCtaModal stack="stack3_vertical" />
</div>
</Section>
<Section title="Button/Text">
<div className="flex items-center gap-8">
<TextButton size="small" styleType="primary" />
<TextButton size="large" styleType="primary" />
<TextButton size="small" styleType="secondary" />
<TextButton size="large" styleType="secondary" />
<TextButton size="large" styleType="primary" iconPosition="left" />
<TextButton size="large" styleType="secondary" iconPosition="left" />
</div>
</Section>
<Section title="Button/TextOnly">
<div className="flex items-center gap-8">
<TextOnlyButton size="small" styleType="primary" />
<TextOnlyButton size="large" styleType="primary" />
<TextOnlyButton size="small" styleType="secondary" />
<TextOnlyButton size="large" styleType="secondary" />
</div>
</Section>
<Section title="IconBox">
<IconBox type="TRASH" />
<IconBox type="HOME_M" />
<IconBox type="SPARKLE" />
</Section>
<Section title="CheckBox">
<CheckBox type="DEFAULT" />
<CheckBox type="RADIO_L" />
<CheckBox type="RADIO_M" />
</Section>
<Section title="ChipMain — Mid">
<ChipMainDemo />
</Section>
<Section title="ChipRound">
<ChipRound label="strong" variant="strong" />
<ChipRound label="normal" variant="normal" />
<ChipRound label="assistive" variant="assistive" />
</Section>
<Section title="ChipRoundSelected">
<ChipRoundSelected label="mid" />
<ChipRoundSelected label="mid selected" selected />
</Section>
<Section title="ChipQnumber">
<ChipQnumber number={1} showComplete />
<ChipQnumber number={1} showComplete selected />
<ChipQnumber number={2} />
<ChipQnumber number={2} selected />
</Section>
<Section title="Modal — LinkInput">
<ModalLinkInputDemo />
</Section>{" "}
<Section title="SearchBar">
<div className="w-[500px]">
<SearchBar />
</div>
</Section>
<Section title="InputMain">
<div className="flex flex-col gap-4 ">
<InputMain
label="라벨"
required
placeholder="내용을 입력해주세요."
disabled
rightContent="최대 20자"
/>
<InputMain
label="라벨"
required
placeholder="내용을 입력해주세요."
rightContent="최대 20자"
/>
<InputMain
label="라벨"
required
value="한 개수기"
rightContent="최대 20자"
error="에러 메시지가 들어갑니다."
/>
</div>
</Section>
<Section title="InputSingleLine">
<div className="flex flex-col gap-4 ">
<InputSingleLine placeholder="내용을 입력해주세요." disabled />
<InputSingleLine placeholder="내용을 입력해주세요." />
</div>
</Section>
<Section title="InputMultiLine">
<div className="flex flex-col gap-4 w-[360px]">
<InputMultiLine placeholder="내용을 입력해주세요." />
</div>
</Section>
<Section title="InputMultiLine1000">
<div className="flex flex-col gap-4 w-[360px]">
<InputMultiLine1000 placeholder="내용을 입력해주세요." />
</div>
</Section>
<Section title="InputAutoGrow">
<div className="flex flex-col gap-4 w-[360px]">
<InputAutoGrow placeholder="내용을 입력해주세요." />
</div>
</Section>
<Section title="InputFile">
<div className="w-[480px]">
<InputFile />
<Section title="Complete">
<CompleteBadge />
</Section>
<Section title="Tooltip">
<div className="grid w-full grid-cols-3 items-start gap-x-0 gap-y-6">
<div className="flex flex-col items-start gap-8">
<Tooltip placement="right_mid" />
<Tooltip placement="left_mid" />
<Tooltip
placement="left_up"
lines={["1회 크레딧 무료 증정", "1회 크레딧 무료 증정"]}
/>
</div>
<div className="flex flex-col items-start gap-8">
<Tooltip placement="up_mid" />
<Tooltip placement="up_left" />
<Tooltip placement="up_right" />
</div>
<div className="flex flex-col items-start gap-8">
<Tooltip placement="down_left" />
<Tooltip placement="down_mid" />
<Tooltip placement="down_right" />
</div>
</div>
</Section>
<Section title="Tooltip/Modify">
<TooltipModify />
</Section>
<Section title="Tab Menu 2">
<TabMenuTwo />
</Section>
<Section title="Tab Menu 3">
<TabMenuThree />
</Section>
</div>
</Section>
<Section title="CreditHeader">
<CreditHeader />
</Section>
<Section title="CreditRow">
<div className="flex flex-col gap-8">
<CreditRow />
<CreditRow variant="assistive" dateTime="2026.04.07 오후 10:02" />
</div>
</Section>
</div>
);
}