Signup.js 4.87 KB
Newer Older
Kim, Subin's avatar
Kim, Subin committed
1
import React, { useState, useEffect, useRef } from 'react';
이재연's avatar
..    
이재연 committed
2
import { Redirect } from 'react-router-dom';
Kim, Subin's avatar
Kim, Subin committed
3
4
import Nav1 from '../Components/MainNav';
import Nav2 from '../Components/SubNav';
이재연's avatar
logsign    
이재연 committed
5
import { Form, Col, Container, Button, Row } from 'react-bootstrap'
이재연's avatar
이재연 committed
6
import FormCheckInput from 'react-bootstrap/esm/FormCheckInput';
Kim, Subin's avatar
Kim, Subin committed
7
8
9

function Signup() {

이재연's avatar
..    
이재연 committed
10

Kim, Subin's avatar
Kim, Subin committed
11
    return (
이재연's avatar
logsign    
이재연 committed
12
        <div>
이재연's avatar
이재연 committed
13

Kim, Subin's avatar
Kim, Subin committed
14
15
            <Nav1 />
            <Nav2 />
이재연's avatar
logsign    
이재연 committed
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
            <Container className="my-5">
                <Row className="justify-content-center">
                    <Col md={6} xs={10} className="border">
                        <h2 className="text-center mt-5">Sign Up</h2>

                        <Form className="p-5">

                            <Form.Group controlId="formBasicId">
                                <Form.Row>
                                    <Form.Label for="id">User Name</Form.Label>

                                    <Col>
                                        <Form.Control type="text" id="id" size="sm" placeholder="UserName" className="mx-sm-3"></Form.Control>
                                    </Col>
                                </Form.Row>
                            </Form.Group>

                            <Form.Group controlId="formBasicName">
                                <Form.Row>
                                    <Form.Label for="name">Real Name</Form.Label>

                                    <Col>
                                        <Form.Control type="text" id="name" size="sm" placeholder="Enter your Real Name" className="mx-sm-3"></Form.Control>
                                    </Col>
                                </Form.Row>
                            </Form.Group>

                            <Form.Group controlId="formBasicNumber">
                                <Form.Row>
                                    <Form.Label for="number">Resident registration number</Form.Label>

                                    <Col as={Row}>
                                    <Form.Control type="text" id="number1" size="sm" maxlength="6" className="mx-sm-3" style={{width:'120px'}}></Form.Control>
                                    -
이재연's avatar
이재연 committed
50
                                    <Form.Control type="text" id="number2" size="sm" maxlength="1" className="mx-sm-3" style={{width:'25px'}}></Form.Control>
이재연's avatar
logsign    
이재연 committed
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
                                    ******
                                    </Col>

                                </Form.Row>
                            </Form.Group>

                            <Form.Group controlId="formBasicPassword">
                                <Form.Row>
                                    <Form.Label for="password">Password</Form.Label>

                                    <Col>
                                        <Form.Control type="password" id="password" size="sm" aria-describedby="passwordHelpBlock" className="mx-sm-3"></Form.Control>
                                        <Form.Text id="password" muted>Must be 8-20 characters long.</Form.Text>
                                    </Col>
                                </Form.Row>
                            </Form.Group>

                            <Form.Group controlId="formBasicPassword2">
                                <Form.Row>
                                    <Form.Label for="password2">Confirm Password</Form.Label>

                                    <Col>
                                        <Form.Control type="password" id="password2" size="sm" placeholder="Confirm Password" className="mx-sm-3"></Form.Control>
                                    </Col>
                                </Form.Row>
                            </Form.Group>

                            <Form.Group controlId="formBasicTel">
                                <Form.Row>
                                    <Form.Label for="tel">Phone Number</Form.Label>

                                    <Col>
                                        <Form.Control type="text" id="tel" size="sm" placeholder="Enter your Phone Number" className="mx-sm-3"></Form.Control>
                                    </Col>
                                </Form.Row>
                            </Form.Group>

                            <Form.Group controlId="formBasicAdd">
                                <Form.Row>
                                    <Form.Label>Address</Form.Label>

                                    <Col>
                                        <Form.Control type="text" id="add" size="sm" placeholder="Enter your Address" className="mx-sm-3"></Form.Control>
                                    </Col>
                                </Form.Row>
                            </Form.Group>

                            <Button variant="outline-dark" type="submit" block>Sign Up</Button>
                        </Form>

                    </Col>
                </Row>

            </Container>
        </div>
이재연's avatar
..    
이재연 committed
106

Kim, Subin's avatar
Kim, Subin committed
107
108
109
110
    )
}

export default Signup