import React from "react";
import Button from "react-bootstrap/Button";
import Form from "react-bootstrap/Form";
import Container from "react-bootstrap/Container";
import { Link } from "react-router-dom";
import { Redirect } from "react-router-dom";

function Home() {
    const clickSubmit = (event) => {
        event.preventDefault();
        return <Redirect to="/" />;
    };

    // 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>

                    <Button variant="primary" type="submit" onClick={clickSubmit}>관광지 검색하기</Button>

                


            </Form>
        </Container>
    );
}

export default Home;
