-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
94d9233
commit 3ad38a1
Showing
5 changed files
with
147 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
import { Button, Checkbox, Form, Input } from 'antd'; | ||
|
||
function SurveyForm() { | ||
|
||
const onFinish = (values) => { | ||
console.log('Success:', values); | ||
}; | ||
const onFinishFailed = (errorInfo) => { | ||
console.log('Failed:', errorInfo); | ||
}; | ||
|
||
const { TextArea } = Input; | ||
|
||
return ( | ||
<Form | ||
name="basic" | ||
labelCol={{ | ||
span: 8, | ||
}} | ||
wrapperCol={{ | ||
span: 16, | ||
}} | ||
initialValues={{ | ||
remember: true, | ||
}} | ||
onFinish={onFinish} | ||
onFinishFailed={onFinishFailed} | ||
autoComplete="off" | ||
> | ||
<Form.Item | ||
label="회신받을 이메일" | ||
name="회신받을 이메일" | ||
rules={[ | ||
{ | ||
required: true, | ||
message: '이메일을 입력하세요', | ||
}, | ||
]} | ||
> | ||
<Input /> | ||
</Form.Item> | ||
|
||
<Form.Item | ||
label="제목" | ||
name="제목" | ||
rules={[ | ||
{ | ||
required: true, | ||
message: '제목을 입력하세요', | ||
}, | ||
]} | ||
> | ||
<Input.Password /> | ||
</Form.Item> | ||
|
||
<Form.Item label="내용"> | ||
<TextArea rows={10} /> | ||
</Form.Item> | ||
|
||
<Form.Item | ||
name="remember" | ||
valuePropName="checked" | ||
wrapperCol={{ | ||
offset: 8, | ||
span: 16, | ||
}} | ||
> | ||
<Checkbox>본인입니다</Checkbox> | ||
</Form.Item> | ||
|
||
<Form.Item | ||
wrapperCol={{ | ||
offset: 8, | ||
span: 16, | ||
}} | ||
> | ||
<Button type="primary" htmlType="submit"> | ||
제출 | ||
</Button> | ||
</Form.Item> | ||
</Form> | ||
); | ||
} | ||
|
||
export default SurveyForm; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import SurveyForm from './Form'; | ||
import { Card } from 'antd'; | ||
import styled from 'styled-components'; | ||
const Survey = () => { | ||
|
||
return( | ||
|
||
<> | ||
<LightYellowBack> | ||
<Wrapping> | ||
|
||
<Card bordered={false}> | ||
|
||
|
||
<h2>피드백/문의</h2> | ||
<SurveyForm /> | ||
|
||
|
||
</Card> | ||
</Wrapping> | ||
</LightYellowBack> | ||
</> | ||
|
||
) | ||
|
||
|
||
|
||
|
||
} | ||
|
||
const LightYellowBack = styled.div` | ||
background-color : #fcd469; | ||
`; | ||
|
||
const Wrapping = styled.div` | ||
position: relative; | ||
margin-left : 200px; | ||
margin-right : 200px; | ||
width : 75% | ||
display : flex; | ||
justify-content: center; | ||
align-items: center; | ||
`; | ||
|
||
|
||
export default Survey; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters