-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdata.txt
82 lines (78 loc) · 2.53 KB
/
data.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
import React, { Component } from "react";
import ReactDOM from "react-dom";
import ReactCardCarousel from "react-card-carousel";
import "bootstrap/dist/css/bootstrap.min.css";
import { Container, Card, CardGroup, Button } from "react-bootstrap";
class MyCarousel extends Component {
static get CONTAINER_STYLE() {
return {
position: "relative",
height: "100vh",
width: "100%",
display: "flex",
flex: 1,
justifyContent: "center",
alignItems: "middle"
};
}
static get CARD_STYLE() {
return {
height: "200px",
width: "230px",
paddingTop: "0px",
textAlign: "center",
background: "#52C0F5",
color: "",
fontFamily: "sans-serif",
fontSize: "12px",
textTransform: "uppercase",
borderRadius: "10px",
boxSizing: "border-box"
};
}
render() {
return (
<div style={MyCarousel.CONTAINER_STYLE}>
<ReactCardCarousel disable_keydown={true} autoplay_speed={30000}>
<div style={MyCarousel.CARD_STYLE}>
<CardGroup>
<Card style={{ width: "18rem" }}>
<Card.Img
variant="top"
src="https://image.shutterstock.com/image-photo/young-happy-woman-balloons-sunset-600w-1310231851.jpg"
/>
<Card.Body>
<Card.Title
style={{ textAlign: "initial", fontSize: "12px" }}
>
<h4 style={{ fontSize: "18px" }}>Hourly Home Care</h4>
</Card.Title>
<Card.Text>
<p>
4x higher coverage limit
<br />
than traditional policies
<br />
for computers and home
<br />
office equipment.
</p>
</Card.Text>
</Card.Body>
<Card.Footer style={{ height: "40px" }}>
<small className="text-muted"></small>
</Card.Footer>
</Card>
</CardGroup>
</div>
<div style={MyCarousel.CARD_STYLE}>Second Card</div>
<div style={MyCarousel.CARD_STYLE}>Third Card</div>
<div style={MyCarousel.CARD_STYLE}>Fourth Card</div>
<div style={MyCarousel.CARD_STYLE}>Fifth Card</div>
</ReactCardCarousel>
</div>
);
}
}
const rootElement = document.getElementById("root");
ReactDOM.render(<MyCarousel />, rootElement);