Login.js 2.75 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
import { Form, Col, Container, Button, Row } from 'react-bootstrap'
이재연's avatar
이재연 committed
5
import { Link, Redirect } from 'react-router-dom'
이재연's avatar
logsign    
이재연 committed
6

이재연's avatar
이재연 committed
7
function login(){
Kim, Subin's avatar
Kim, Subin committed
8
    return (
이재연's avatar
logsign    
이재연 committed
9
        <div>
Kim, Subin's avatar
Kim, Subin committed
10
11
            <Nav1 />
            <Nav2 />
이재연's avatar
logsign    
이재연 committed
12
13
14
            <Container className="my-5">
                <Row className="justify-content-center">

이재연's avatar
이재연 committed
15
                    <Col md={5} xs={10} className="border" style={{ background: '#F7F3F3' }}>
이재연's avatar
logsign    
이재연 committed
16
17
18
19
20
21
                        <h3 className="text-center mt-5">Login</h3>
                        <Form className="p-5">


                            <Form.Group controlId="formBasicId">
                                <Form.Row>
이재연's avatar
이재연 committed
22
                                    <Form.Label for="id">아이디</Form.Label>
이재연's avatar
logsign    
이재연 committed
23
                                    <Col>
이재연's avatar
이재연 committed
24
25
26
27
28
29
                                        <Form.Control
                                            type="text"
                                            id="id"
                                            value={id}
                                            onChange={({ target: { value } }) => user.d(value)}
                                            className="mx-sm-3" size="sm" placeholder="ID">
이재연's avatar
이재연 committed
30
                                        </Form.Control>
이재연's avatar
logsign    
이재연 committed
31
32
33
34
35
36
                                    </Col>
                                </Form.Row>
                            </Form.Group>

                            <Form.Group controlId="formBasicPassword">
                                <Form.Row>
이재연's avatar
이재연 committed
37
                                    <Form.Label for="password">비밀번호</Form.Label>
이재연's avatar
logsign    
이재연 committed
38
                                    <Col>
이재연's avatar
이재연 committed
39
40
41
42
43
44
                                        <Form.Control
                                            type="password"
                                            id="password"
                                            value={password}
                                            onChange={({ target: { value } }) => user.password(value)}
                                            className="mx-sm-3" size="sm" placeholder="Password"></Form.Control>
이재연's avatar
logsign    
이재연 committed
45
46
47
                                    </Col>
                                </Form.Row>
                            </Form.Group>
이재연's avatar
이재연 committed
48
                            <Button style={{ background: '#91877F', borderColor: '#91877F' }} type="submit" block>Login</Button>
이재연's avatar
logsign    
이재연 committed
49
                            <div className="loginLine">
이재연's avatar
이재연 committed
50
                                <Link to="/signup" style={{ color: '#91877F' }} onClick={handleClick}>회원이 아니십니까?</Link>
이재연's avatar
logsign    
이재연 committed
51
52
53
54
55
56
57
58
59
60
61
                            </div>
                        </Form>
                    </Col>
                </Row>




            </Container>
        </div>

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

Kim, Subin's avatar
Kim, Subin committed
63
64
65
66
    )
}

export default Login