SignUpPage.js 3.61 KB
Newer Older
우지원's avatar
ul    
우지원 committed
1
import React, { useState } from 'react';
2
import { Button, Form, Container, Navbar } from 'react-bootstrap';
우지원's avatar
ul    
우지원 committed
3
import { Link } from 'react-router-dom';
Choi Ga Young's avatar
Choi Ga Young committed
4
import Menu from '../Components/Menu';
우지원's avatar
ul    
우지원 committed
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

function SingUp() {
    const [validated, setValidated] = useState(false);

    const handleSubmit = (event) => {
        const form = event.currentTarget;
        if (form.checkValidity() === false) {
            event.preventDefault();
            event.stopPropagation();
        }

        setValidated(true);
    };

    return (
20
        <>
Choi Ga Young's avatar
Choi Ga Young committed
21
            <Menu />
우지원's avatar
ul    
우지원 committed
22

23
24
25
26
            <div>
                <Form noValidate validated={validated} onSubmit={handleSubmit}>
                    <Container className="d-flex justify-content-center">
                        <div className="mt-5 p-5 shadow w-75">
우지원's avatar
ul    
우지원 committed
27

28
29
30
31
32
33
34
35
36
37
                            <h2 className="text-center ">회원가입</h2>

                            <Form.Group controlId="formGroupUsername">
                                <Form.Label>이름</Form.Label>
                                <Form.Control
                                    required
                                    type="text"
                                    placeholder="이름을 입력해주세요" />
                                <Form.Control.Feedback type="invalid">
                                    필수 정보입니다! 이름을 입력해주세요!
우지원's avatar
ul    
우지원 committed
38
                            </Form.Control.Feedback>
39
                            </Form.Group>
우지원's avatar
ul    
우지원 committed
40

41
42
43
44
45
46
47
48
                            <Form.Group controlId="formGroupNickname">
                                <Form.Label>별명</Form.Label>
                                <Form.Control
                                    required
                                    type="text"
                                    placeholder="별명을 입력해주세요" />
                                <Form.Control.Feedback type="invalid">
                                    필수 정보입니다! 별명을 입력해주세요!
우지원's avatar
ul    
우지원 committed
49
                            </Form.Control.Feedback>
50
                            </Form.Group>
우지원's avatar
ul    
우지원 committed
51

52
53
54
55
56
57
58
59
                            <Form.Group controlId="formGroupEmail">
                                <Form.Label>이메일</Form.Label>
                                <Form.Control
                                    required
                                    type="text"
                                    placeholder="이메일을 입력해주세요" />
                                <Form.Control.Feedback type="invalid">
                                    필수 정보입니다! 이메일을 입력해주세요!
우지원's avatar
ul    
우지원 committed
60
                        </Form.Control.Feedback>
61
                            </Form.Group>
우지원's avatar
ul    
우지원 committed
62

63
64
65
66
67
68
69
70
                            <Form.Group controlId="formGroupPassword">
                                <Form.Label>비밀번호</Form.Label>
                                <Form.Control
                                    required
                                    type="text"
                                    placeholder="비밀번호를 입력해주세요" />
                                <Form.Control.Feedback type="invalid">
                                    필수 정보입니다! 비밀번호를 입력해주세요!
우지원's avatar
ul    
우지원 committed
71
                            </Form.Control.Feedback>
72
                            </Form.Group>
우지원's avatar
ul    
우지원 committed
73

74
75
76
77
78
79
80
81
                            <Link to="./">
                                <Button type="submit" variant="outline-success" size="lg" className="mr-4" block>가입</Button>
                            </Link>
                        </div>
                    </Container>
                </Form>
            </div >
        </>
우지원's avatar
ul    
우지원 committed
82
83
84
85
    )
}

export default SingUp