SignUp.js 2.57 KB
Newer Older
Spark's avatar
Spark committed
1
2
3
import React from 'react'
import '../App.css'
import { Form, Modal, Button, Row, Col, Image } from 'react-bootstrap';
4
// import { KAKAO_AUTH_URL } from '../components/Oauth';
Spark's avatar
Spark committed
5
6
7
8
9
10
11
12
13
14
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


function SignUp() {

    const inboxstyled = {
        display: 'flex',
        flexDirection: 'column',
        maxWidth: '80%',
        justifyContent: 'center',
        margin: 'auto',
        padding: '1rem'

    }

    return (
        <>
            <Modal.Header className='d-block text-center'>
                <Modal.Title>
                    Create an Account
                </Modal.Title>
                <p style={{ color: 'gray', margin: '10px', fontSize: '0.5em' }}>
                    Sign up with your social media account or email address
                </p>

            </Modal.Header>

            <Modal.Body>
                <Form style={inboxstyled}>
                    <Form.Group controlId="formBasicEmail">
                        <Form.Control type="email" placeholder="Username" />
                    </Form.Group>
                    <Form.Group controlId="formBasicEmail">
                        <Form.Control type="email" placeholder="Email Address" />
                    </Form.Group>
                    <Form.Group controlId="formBasicPassword">
                        <Form.Control type="password" placeholder="Password" />
                    </Form.Group>
                    <Form.Group controlId="formBasicPassword">
                        <Form.Control type="password2" placeholder="Confirm Password" />
                    </Form.Group>

46
                    <Button variant='light' type="submit" className='' id='formbtn'>
Spark's avatar
Spark committed
47
48
49
50
51
52
                        Sign Up
                    </Button>
                </Form>

                <hr />
                <Row style={{margin: 'auto', marginBottom: '5px', display: 'flex', justifyContent: 'center' }}>
53
                        {/* <a href={KAKAO_AUTH_URL} target='_blank' id='socialLink' >
Spark's avatar
Spark committed
54
55
                            <Image src='/images/Kakao1.jpg' id='logpng' />
                            KAKAO
56
                        </a> */}
Spark's avatar
Spark committed
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
                        <a href="javascript:loginWithKakao()" id='socialLink'>
                            <Image src='/images/google.png' id='logpng' />
                            GOOGLE
                        </a>
                        <a href="javascript:loginWithKakao()" id='socialLink'>
                            <Image src='/images/facebook.png' id='logpng' />
                            FACEBOOK
                        </a>
                </Row>
            </Modal.Body>

        </>
    )
}

export default SignUp;