Home.jsx 1.09 KB
Newer Older
Sangjune Bae's avatar
Sangjune Bae committed
1
2
3
4
import React from "react";
import Button from "react-bootstrap/Button";
import Form from "react-bootstrap/Form";
import Container from "react-bootstrap/Container";
Sangjune Bae's avatar
Sangjune Bae committed
5
6
import { Link } from "react-router-dom";
import { Redirect } from "react-router-dom";
Sangjune Bae's avatar
Sangjune Bae committed
7

Sangjune Bae's avatar
Sangjune Bae committed
8
9
10
11
function Home() {
    const clickSubmit = (event) => {
        event.preventDefault();
        return <Redirect to="/" />;
Sangjune Bae's avatar
Sangjune Bae committed
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
    };

    // if (values.redirect) {
    //     return <Redirect to="/" />;
    //   }

    return (
        <Container className="col-sm-6 col-md-5 col-lg-4 p-5">
            <Form>
                <Form.Group controlId="inputbox">
                    <Form.Label>Email</Form.Label>
                    <Form.Control
                    />
                    <Form.Text className="text-muted">
                        관광지를 입력하면 관련된 정보들이 나옵니다.
          </Form.Text>
                </Form.Group>

Sangjune Bae's avatar
Sangjune Bae committed
30
31
32
33
34
                    <Button variant="primary" type="submit" onClick={clickSubmit}>관광지 검색하기</Button>

                


Sangjune Bae's avatar
Sangjune Bae committed
35
36
37
38
39
            </Form>
        </Container>
    );
}

Sangjune Bae's avatar
Sangjune Bae committed
40
export default Home;