source: frontend/src/Components/BecomeAHost/Review.js@ ac19a0c

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

prototype

  • Property mode set to 100644
File size: 1.6 KB
Line 
1import React from "react";
2import { Col, Container, Row, Image } from "react-bootstrap";
3import { AiOutlineStar, AiFillStar } from 'react-icons/ai';
4
5function Review (props) {
6
7 const generateStars = () => {
8 const stars = [];
9 for (let i = 0; i < 3; i++) {
10 stars.push(
11 <Col key={i} style={{display: "inline-block"}} className="w-20 px-0">
12 <AiFillStar size="2rem" color="#159895" />
13 </Col>
14 );
15 }
16 for (let i = 0; i < 5 - 3; i++) {
17 stars.push(
18 <Col key={i + 3} style={{display: "inline-block"}} className="w-20 px-0">
19 <AiOutlineStar size="2rem" color="#159895" />
20 </Col>
21 );
22 }
23 return stars;
24 }
25
26 return (
27 <Container style={{padding: '2em', width: '18em', height: 'auto', backgroundColor: 'lightgray', borderRadius: '1rem', position: "aboslute", top: "-410px", left: "-600px"}}>
28 <Row>
29 <Col>
30 <Image src="https://i.pinimg.com/originals/f1/0f/f7/f10ff70a7155e5ab666bcdd1b45b726d.jpg" width={50} height={50} className="rounded-5"></Image>
31 </Col>
32 <Col className="my-auto">
33 <span>Ime Prezime</span>
34 </Col>
35 </Row>
36 <Row>
37 <span className="my-3 border">Lorem Ipsum is simply dummy text of the printing and typesetting industry. </span>
38 </Row>
39 <Row className="w-100 mx-auto" style={{maxWidth: "100%"}}>
40 {generateStars()}
41 </Row>
42 </Container>
43 );
44}
45
46export default Review;
Note: See TracBrowser for help on using the repository browser.