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

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

images upload/download impl, other fixes

  • Property mode set to 100644
File size: 2.1 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 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
47export default TransportListing;
Note: See TracBrowser for help on using the repository browser.