-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtimeline-gradient-cards.html
More file actions
278 lines (253 loc) · 9.36 KB
/
timeline-gradient-cards.html
File metadata and controls
278 lines (253 loc) · 9.36 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<meta http-equiv="x-ua-compatible" content="ie=edge" />
<title>Material Design for Bootstrap</title>
<!-- MDB icon -->
<link rel="icon" href="img/mdb-favicon.ico" type="image/x-icon" />
<!-- Font Awesome -->
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.15.2/css/all.css" />
<!-- Google Fonts Roboto -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap" />
<!-- MDB -->
<link rel="stylesheet" href="css/bootstrap-timeline.min.css" />
</head>
<body>
<!-- Start your project here-->
<style>
/* The actual timeline (the vertical ruler) */
.main-timeline-4 {
position: relative;
}
/* The actual timeline (the vertical ruler) */
.main-timeline-4::after {
content: '';
position: absolute;
width: 3px;
background-color: #bbb;
top: 0;
bottom: 0;
left: 50%;
margin-left: -3px;
}
/* Container around content */
.timeline-4 {
position: relative;
background-color: inherit;
width: 50%;
}
/* The circles on the timeline */
.timeline-4::after {
content: '';
position: absolute;
width: 25px;
height: 25px;
right: -11px;
background-color: #bbb;
top: 15px;
border-radius: 50%;
z-index: 1;
}
/* Place the container to the left */
.left-4 {
padding: 0px 40px 20px 0px;
left: 0;
}
/* Place the container to the right */
.right-4 {
padding: 0px 0px 20px 40px;
left: 50%;
}
/* Add arrows to the left container (pointing right) */
.left-4::before {
content: " ";
position: absolute;
top: 18px;
z-index: 1;
right: 30px;
border: medium solid rgba(37, 117, 252, 1);
border-width: 10px 0 10px 10px;
border-color: transparent transparent transparent rgba(37, 117, 252, 1);
}
/* Add arrows to the right container (pointing left) */
.right-4::before {
content: " ";
position: absolute;
top: 18px;
z-index: 1;
left: 30px;
border: medium solid rgba(245, 87, 108, 1);
border-width: 10px 10px 10px 0;
border-color: transparent rgba(245, 87, 108, 1) transparent transparent;
}
/* Fix the circle for containers on the right side */
.right-4::after {
left: -14px;
}
/* Media queries - Responsive timeline on screens less than 600px wide */
@media screen and (max-width: 600px) {
/* Place the timelime to the left */
.main-timeline-4::after {
left: 31px;
}
/* Full-width containers */
.timeline-4 {
width: 100%;
padding-left: 70px;
padding-right: 25px;
}
/* Make sure that all arrows are pointing leftwards */
.timeline-4::before {
left: 60px;
border: medium solid white;
border-width: 10px 10px 10px 0;
border-color: transparent white transparent transparent;
}
/* Make sure all circles are at the same spot */
.left-4::after,
.right-4::after {
left: 18px;
}
.left-4::before {
right: auto;
}
/* Make all right containers behave like the left ones */
.right-4 {
left: 0%;
}
}
.gradient-custom {
/* fallback for old browsers */
background: #6a11cb;
/* Chrome 10-25, Safari 5.1-6 */
background: -webkit-linear-gradient(to right, rgba(106, 17, 203, 1), rgba(37, 117, 252, 1));
/* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
background: linear-gradient(to right, rgba(106, 17, 203, 1), rgba(37, 117, 252, 1))
}
.gradient-custom-4 {
/* fallback for old browsers */
background: #f093fb;
/* Chrome 10-25, Safari 5.1-6 */
background: -webkit-linear-gradient(to left, rgba(240, 147, 251, 1), rgba(245, 87, 108, 1));
/* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
background: linear-gradient(to left, rgba(240, 147, 251, 1), rgba(245, 87, 108, 1))
}
</style>
<div class="container py-5">
<div class="main-timeline-4 text-white">
<div class="timeline-4 left-4">
<div class="card gradient-custom">
<div class="card-body p-4">
<i class="fas fa-brain fa-2x mb-3"></i>
<h4>7:45PM</h4>
<p class="small text-white-50 mb-4">May 21</p>
<p>Lorem ipsum dolor sit amet, quo ei simul congue exerci, ad nec admodum perfecto
mnesarchum, vim ea mazim fierent detracto. Ea quis iuvaret expetendis his, te elit voluptua dignissim
per, habeo iusto primis ea eam.
</p>
<h6 class="badge bg-light text-black mb-0">New</h6>
<h6 class="badge bg-light text-black mb-0">Admin</h6>
</div>
</div>
</div>
<div class="timeline-4 right-4">
<div class="card gradient-custom-4">
<div class="card-body p-4">
<i class="fas fa-camera fa-2x mb-3"></i>
<h4>8:00 AM</h4>
<p class="small text-white-50 mb-4">May 18</p>
<p>Lorem ipsum dolor sit amet, quo ei simul congue exerci, ad nec admodum perfecto
mnesarchum, vim ea mazim fierent detracto. Ea quis iuvaret expetendis his, te elit voluptua dignissim
per, habeo iusto primis ea eam.
</p>
<h6 class="badge bg-light text-black mb-0">New</h6>
<h6 class="badge bg-light text-black mb-0">Admin</h6>
</div>
</div>
</div>
<div class="timeline-4 left-4">
<div class="card gradient-custom">
<div class="card-body p-4">
<i class="fas fa-campground fa-2x mb-3"></i>
<h4>7:25 PM</h4>
<p class="small text-white-50 mb-4">May 6</p>
<p>Lorem ipsum dolor sit amet, quo ei simul congue exerci, ad nec admodum perfecto
mnesarchum, vim ea mazim fierent detracto. Ea quis iuvaret expetendis his, te elit voluptua dignissim
per, habeo iusto primis ea eam.
</p>
<h6 class="badge bg-light text-black mb-0">New</h6>
<h6 class="badge bg-light text-black mb-0">Admin</h6>
</div>
</div>
</div>
<div class="timeline-4 right-4">
<div class="card gradient-custom-4">
<div class="card-body p-4">
<i class="fas fa-sun fa-2x mb-3"></i>
<h4>3:55 PM</h4>
<p class="small text-white-50 mb-4">Apr 26</p>
<p>Lorem ipsum dolor sit amet, quo ei simul congue exerci, ad nec admodum perfecto
mnesarchum, vim ea mazim fierent detracto. Ea quis iuvaret expetendis his, te elit voluptua dignissim
per, habeo iusto primis ea eam.
</p>
<h6 class="badge bg-light text-black mb-0">New</h6>
<h6 class="badge bg-light text-black mb-0">Admin</h6>
</div>
</div>
</div>
<div class="timeline-4 left-4">
<div class="card gradient-custom">
<div class="card-body p-4">
<i class="fas fa-palette fa-2x mb-3"></i>
<h4>5:24 PM</h4>
<p class="small text-white-50 mb-4">Apr 12</p>
<p>Lorem ipsum dolor sit amet, quo ei simul congue exerci, ad nec admodum perfecto
mnesarchum, vim ea mazim fierent detracto. Ea quis iuvaret expetendis his, te elit voluptua dignissim
per, habeo iusto primis ea eam.
</p>
<h6 class="badge bg-light text-black mb-0">New</h6>
<h6 class="badge bg-light text-black mb-0">Admin</h6>
</div>
</div>
</div>
<div class="timeline-4 right-4">
<div class="card gradient-custom-4">
<div class="card-body p-4">
<i class="fas fa-laugh-beam fa-2x mb-3"></i>
<h4>11:25 AM</h4>
<p class="small text-white-50 mb-4">Apr 11</p>
<p>Lorem ipsum dolor sit amet, quo ei simul congue exerci, ad nec admodum perfecto
mnesarchum, vim ea mazim fierent detracto. Ea quis iuvaret expetendis his, te elit voluptua dignissim
per, habeo iusto primis ea eam.
</p>
<h6 class="badge bg-light text-black mb-0">New</h6>
<h6 class="badge bg-light text-black mb-0">Admin</h6>
</div>
</div>
</div>
<div class="timeline-4 left-4">
<div class="card gradient-custom">
<div class="card-body p-4">
<i class="fas fa-pizza-slice fa-2x mb-3"></i>
<h4>12:30 PM</h4>
<p class="small text-white-50 mb-4">Apr 5</p>
<p>Lorem ipsum dolor sit amet, quo ei simul congue exerci, ad nec admodum perfecto
mnesarchum, vim ea mazim fierent detracto. Ea quis iuvaret expetendis his, te elit voluptua dignissim
per, habeo iusto primis ea eam.
</p>
<h6 class="badge bg-light text-black mb-0">New</h6>
<h6 class="badge bg-light text-black mb-0">Admin</h6>
</div>
</div>
</div>
</div>
</div>
<!-- End your project here-->
<!-- MDB -->
<script type="text/javascript" src="js/mdb.min.js"></script>
<!-- Custom scripts -->
<script type="text/javascript"></script>
</body>
</html>