Skip to content

Commit a13d725

Browse files
authored
Merge branch 'main' into 173-example-home
2 parents b84ec7a + 2bd606e commit a13d725

File tree

1 file changed

+85
-0
lines changed

1 file changed

+85
-0
lines changed
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
import { action } from "@storybook/addon-actions";
2+
import type { Meta, StoryObj } from "@storybook/react";
3+
import { Button } from "../../components/Button/Button";
4+
import { Checkbox } from "../../components/Checkbox/Checkbox";
5+
import { Heading } from "../../components/Heading/Heading";
6+
import { Link } from "../../components/Link/Link";
7+
8+
export default {
9+
parameters: {
10+
layout: "centered",
11+
},
12+
} satisfies Meta;
13+
14+
export const Default: StoryObj = {
15+
render: () => {
16+
return (
17+
<form
18+
onSubmit={(event) => {
19+
event.preventDefault();
20+
action("onSubmit")(event);
21+
}}
22+
style={{ width: 500 }}
23+
>
24+
<div style={{ marginBottom: "2rem" }}>
25+
<Heading level={1}>안녕하세요, 회원이신가요?</Heading>
26+
</div>
27+
28+
<div
29+
style={{
30+
display: "flex",
31+
flexDirection: "column",
32+
gap: "0.5rem",
33+
marginBottom: "1rem",
34+
}}
35+
>
36+
<input
37+
style={{
38+
border: "1px solid lightgray",
39+
borderRadius: "0.5rem",
40+
paddingLeft: "0.5rem",
41+
height: 50,
42+
}}
43+
required
44+
type="email"
45+
placeholder="이메일 주소"
46+
/>
47+
<input
48+
style={{
49+
border: "1px solid lightgray",
50+
borderRadius: "0.5rem",
51+
paddingLeft: "0.5rem",
52+
height: 50,
53+
}}
54+
required
55+
type="password"
56+
placeholder="비밀번호"
57+
/>
58+
</div>
59+
60+
<div
61+
style={{
62+
marginBottom: "1rem",
63+
display: "flex",
64+
justifyContent: "space-between",
65+
}}
66+
>
67+
<Link href="#">비밀번호 찾기</Link>
68+
<Checkbox label="사용자 정보 기억하기" />
69+
</div>
70+
71+
<div
72+
style={{
73+
display: "flex",
74+
justifyContent: "center",
75+
marginBottom: "2rem",
76+
}}
77+
>
78+
<Button variant="solid" type="submit" size="lg">
79+
로그인
80+
</Button>
81+
</div>
82+
</form>
83+
);
84+
},
85+
};

0 commit comments

Comments
 (0)