1 | import React from "react";
|
---|
2 | import {useState} from "react";
|
---|
3 | import {Col, Container, Row, Image, Modal, Button} from "react-bootstrap";
|
---|
4 | import LoginForm from "../Login/LoginForm";
|
---|
5 | import ChangePasswordForm from "../Forms/ChangePasswordForm";
|
---|
6 | import {AiOutlinePlusCircle} from "react-icons/ai"
|
---|
7 |
|
---|
8 | const TransportListing = (props) => {
|
---|
9 |
|
---|
10 | //const type = props.type == "hotel" ? "сместувањето" : props.type == "restaurant" ? "ресторанот" : "превозот";
|
---|
11 | return (<>
|
---|
12 | <a href="#" style={{textDecoration: "none", color: "black"}}>
|
---|
13 | <Container className="py-3 px-1 my-4"
|
---|
14 | style={{
|
---|
15 | border: "4px solid #159895",
|
---|
16 | borderRadius: "1em",
|
---|
17 | boxShadow: "0 3px 5px #159895",
|
---|
18 | maxWidth: "90%",
|
---|
19 | }}>
|
---|
20 | <Row>
|
---|
21 | <Col className="d-flex justify-content-center">
|
---|
22 | <Image
|
---|
23 | src="https://samsung.teveotecno.com.ar/wp-content/uploads/2022/07/how-to-create-and-draw-custom-routes-with-google-maps_62d4ad146140d.jpeg"
|
---|
24 | style={{
|
---|
25 | height: "8em",
|
---|
26 | borderRadius: "1em",
|
---|
27 | boxShadow: "0 4px 20px lightblue",
|
---|
28 | maxWidth: "100%",
|
---|
29 | }}
|
---|
30 | ></Image>
|
---|
31 | </Col>
|
---|
32 | <Col className="d-flex flex-column justify-content-center" style={{textAlign: "left"}}>
|
---|
33 | <h2>{props.data.from} - {props.data.to}</h2>
|
---|
34 | <h6>{props.data.routes.map(x => x).join(", ")}</h6>
|
---|
35 | </Col>
|
---|
36 |
|
---|
37 | <Col className="d-flex flex-column justify-content-center align-content-center">
|
---|
38 | <h5>Цена:</h5>
|
---|
39 | <h4>{props.data.maxPrice}$</h4>
|
---|
40 | </Col>
|
---|
41 | </Row>
|
---|
42 | </Container>
|
---|
43 | </a>
|
---|
44 | </>)
|
---|
45 | }
|
---|
46 |
|
---|
47 | export default TransportListing; |
---|