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

Kim, Subin's avatar
Kim, Subin committed
7
8
9

function Login() {

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

Kim, Subin's avatar
Kim, Subin committed
11
    return (
이재연's avatar
logsign    
이재연 committed
12
        <div>
Kim, Subin's avatar
Kim, Subin committed
13
14
            <Nav1 />
            <Nav2 />
이재연's avatar
logsign    
이재연 committed
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
            <Container className="my-5">
                <Row className="justify-content-center">

                    <Col md={5} xs={10} className="border">
                        <h3 className="text-center mt-5">Login</h3>
                        <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" className="mx-sm-3" size="sm" placeholder="User Name"></Form.Control>
                                    </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" className="mx-sm-3" size="sm" placeholder="Password"></Form.Control>
                                    </Col>
                                </Form.Row>
                            </Form.Group>
                            <Button variant="outline-dark" type="submit" block>Login</Button>
                            <div className="loginLine">
                                <Link to="/signup">SignUp?</Link>
                            </div>
                        </Form>
                    </Col>
                </Row>




            </Container>
        </div>

이재연's avatar
2    
이재연 committed
54

Kim, Subin's avatar
Kim, Subin committed
55
56
57
58
    )
}

export default Login