-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdemo.jsx
More file actions
67 lines (63 loc) · 1.3 KB
/
Copy pathdemo.jsx
File metadata and controls
67 lines (63 loc) · 1.3 KB
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
<div
className="progressbar primary-border-color"
data-progress-bar="true"
data-show-progress-string="true"
data-progress-text="Avancement"
>
<div
className="progressbar-visual"
data-progress-bar-visual="true"
style={{
width: `${this.state.progress}%`,
transition: "width 0.5s ease-out 0s",
}}
></div>
<div className="progressbar-text" data-progress-bar-text="true">
<span>Progress</span> <span>{`${this.state.progress}%`}</span>
</div>
</div>;
/**
* .progressbar {
background: #e4e4e4;
text-align: center;
margin: 10px auto;
height: 20px;
font-size: 1rem;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
letter-spacing: 0.025em;
width: 100%;
height: auto;
margin-top: 1rem;
position: relative;
}
.progressbar::before {
content: "";
position: absolute;
top: 0;
bottom: 0;
height: 100%;
width: 100%;
background-color: #e5f5fb;
}
.progressbar-visual {
background: #53d75e;
height: 20px;
position: absolute;
top: 0;
left: 0;
height: 100%;
background-color: #39da96;
border-radius: 0;
}
.progressbar-text {
color: #000;
font-size: 0.8em;
display: inline;
position: relative;
padding: 0.025em;
text-align: center;
margin: 0 auto;
}
*/