source: frontend/src/Components/TransportEdit/TransportListing.js@ e9b4ba9

Last change on this file since e9b4ba9 was e9b4ba9, checked in by darsov2 <62809499+darsov2@…>, 6 months ago

prototype

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