Main.jsx 4.85 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
7
8
9
import { Link } from "react-router-dom";
import { Redirect } from "react-router-dom";
import Row from "react-bootstrap/Row";
import Col from "react-bootstrap/Col";
import Image from 'react-bootstrap/Image'
Sangjune Bae's avatar
.    
Sangjune Bae committed
10
import { Card } from 'react-bootstrap'
Sangjune Bae's avatar
Sangjune Bae committed
11
12
// import Modal from "react-bootstrap/Modal";
// import 'bootstrap / dist / css / bootstrap.min.css';
Sangjune Bae's avatar
Sangjune Bae committed
13

Sangjune Bae's avatar
.    
Sangjune Bae committed
14
15
16
17
18
import mainlogo from '../picture/mainlogo.jpg'
import hallasan from '../picture/hallasan.PNG'
import osulloc from '../picture/osulloc.PNG'
import sungsan from '../picture/sungsan.PNG'
import haenyeo from '../picture/haenyeo.PNG'
Sangjune Bae's avatar
Sangjune Bae committed
19
20
21
22
23

function Main() {
    const clickSubmit = (event) => {
        event.preventDefault();
        console.log("메인페이지 도착")
Sangjune Bae's avatar
Sangjune Bae committed
24
25
26
27
28
    };

    // if (values.redirect) {
    //     return <Redirect to="/" />;
    //   }
Sangjune Bae's avatar
Sangjune Bae committed
29
30

    return (
Sangjune Bae's avatar
.    
Sangjune Bae committed
31
        <Container className="">
Sangjune Bae's avatar
Sangjune Bae committed
32
            <Form>
Sangjune Bae's avatar
.    
Sangjune Bae committed
33
34
                <Image src={mainlogo} rounded />
                <Form.Label>made by Cherry </Form.Label>
Sangjune Bae's avatar
Sangjune Bae committed
35
                <Form.Group controlId="contentsbox">
Sangjune Bae's avatar
.    
Sangjune Bae committed
36
37
38
                    <Form.Text>관광지 정보</Form.Text>
                    {/* <Form.Control
                    /> */}
Sangjune Bae's avatar
Sangjune Bae committed
39
                    <Row>
Sangjune Bae's avatar
.    
Sangjune Bae committed
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
                        <Card style={{ width: '30rem' }}>
                            <Card.Img variant="top" src={hallasan} />
                            <Card.Body>
                                <Card.Title>한라산(hallasan)</Card.Title>
                                <Card.Text>
                                    제주 서귀포시 토평동 산15-1 </Card.Text>
                                <Link to="/">
                                    <Button variant="primary">한라산 자세히 살펴보기</Button>
                                </Link>
                            </Card.Body>
                        </Card>

                        <Card style={{ width: '30rem' }}>
                            <Card.Img variant="top" src={sungsan} />
                            <Card.Body>
                                <Card.Title>성산일출봉(sungsan)</Card.Title>
                                <Card.Text>
                                    제주 서귀포시 성산읍 성산리 1 </Card.Text>
                                <Link to="/">
                                    <Button variant="primary">성산일출봉 자세히 살펴보기</Button>
                                </Link>
                            </Card.Body>
                        </Card>
Sangjune Bae's avatar
Sangjune Bae committed
63
64
                    </Row>
                    <Row>
Sangjune Bae's avatar
.    
Sangjune Bae committed
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
                        <Card style={{ width: '30rem' }}>
                            <Card.Img variant="top" src={haenyeo} />
                            <Card.Body>
                                <Card.Title>해녀의 집(haenyeo)</Card.Title>
                                <Card.Text>
                                    제주 서귀포시 성산읍 한도로 141-13지번오조리 3 오조해녀의집 </Card.Text>
                                <Link to="/">
                                    <Button variant="primary">해녀의 집 자세히 살펴보기</Button>
                                </Link>
                            </Card.Body>
                        </Card>

                        {/* modal같이 다른 창 띄우는 것도 방법이고 링크 넣거나 화면하나 만드는 것도 방법일 듯 */}

                        <Card style={{ width: '30rem' }}>
                            <Card.Img variant="top" src={osulloc} />
                            <Card.Body>
                                <Card.Title>오설록 티 뮤지엄(osulloc)</Card.Title>
                                <Card.Text>
                                    제주 서귀포시 안덕면 신화역사로 15 오설록지번서광리 1235-1 오설록 </Card.Text>
                                <Link to="/">
                                    <Button variant="primary">오설록 티 뮤지엄 자세히 살펴보기</Button>
                                </Link>
                            </Card.Body>
                        </Card>
Sangjune Bae's avatar
Sangjune Bae committed
90
91
92
93
94
95
96

                    </Row>

                </Form.Group>
                {/* <Button variant="primary" type="submit" onClick={clickSubmit}>Submit</Button> */}


Sangjune Bae's avatar
.    
Sangjune Bae committed
97
                {/* <Form.Group controlId="inputbox">
Sangjune Bae's avatar
Sangjune Bae committed
98
                    <Form.Label>다른 관광지 검색하기</Form.Label>
Sangjune Bae's avatar
Sangjune Bae committed
99
100
101
                    <Form.Control
                    />
                    <Form.Text className="text-muted">
Sangjune Bae's avatar
Sangjune Bae committed
102
                        새로운 관광지를 검색합니다.
Sangjune Bae's avatar
.    
Sangjune Bae committed
103
                    </Form.Text>
Sangjune Bae's avatar
Sangjune Bae committed
104
105
                </Form.Group>

Sangjune Bae's avatar
.    
Sangjune Bae committed
106
                <Button variant="danger" type="submit" onClick={clickSubmit}>다른 관광지 검색하기</Button> */}
Sangjune Bae's avatar
Sangjune Bae committed
107

Sangjune Bae's avatar
Sangjune Bae committed
108
            </Form>
Sangjune Bae's avatar
Sangjune Bae committed
109
110


Sangjune Bae's avatar
.    
Sangjune Bae committed
111
        </Container >
Sangjune Bae's avatar
Sangjune Bae committed
112
113
114
    );
}

Sangjune Bae's avatar
Sangjune Bae committed
115
export default Main;