Last change
on this file since efaa053 was e6c2521, checked in by darsov2 <62809499+darsov2@…>, 10 months ago |
images upload/download impl, other fixes
|
-
Property mode
set to
100644
|
File size:
784 bytes
|
Line | |
---|
1 | import React from "react";
|
---|
2 | import { Container } from "react-bootstrap";
|
---|
3 |
|
---|
4 | const DescriptionContainer = (props) => {
|
---|
5 | const type = props.type == "hotel" ? "сместувањето" : props.type == "restaurant" ? "ресторанот" : "превозот";
|
---|
6 |
|
---|
7 | return <>
|
---|
8 | <Container
|
---|
9 | className="py-3 px-4 my-4 h-100"
|
---|
10 | style={{
|
---|
11 | border: "4px solid #1A5F7A",
|
---|
12 | borderRadius: "1em",
|
---|
13 | boxShadow: "0 3px 5px #1A5F7A",
|
---|
14 | maxHeight: "90%"
|
---|
15 | }}
|
---|
16 | >
|
---|
17 | <h3 className="mb-3" style={{textAlign: "left", color: "#159895"}}>Опис на {type}</h3>
|
---|
18 | <p style={{textAlign: "left", fontSize: "1.2em"}}>
|
---|
19 | {props.data}
|
---|
20 | </p>
|
---|
21 | </Container>
|
---|
22 | </>
|
---|
23 | }
|
---|
24 |
|
---|
25 | export default DescriptionContainer |
---|
Note:
See
TracBrowser
for help on using the repository browser.