TimelineWithIcons.vue
11.2 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
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
<script setup>
import avatar8 from '@images/avatars/avatar-8.png'
import xls from '@images/icons/file/xls.png'
import pdf from '@images/icons/project-icons/pdf.png'
import aviato from '@images/logos/aviato.png'
import bitbank from '@images/logos/bitbank.png'
import zipcar from '@images/logos/zipcar.png'
import TimelineRectangle1 from '@images/pages/TimelineRectangle1.png'
import TimelineRectangle2 from '@images/pages/TimelineRectangle2.png'
import TimelineRectangle3 from '@images/pages/TimelineRectangle3.png'
import TimelineRectangle4 from '@images/pages/TimelineRectangle4.png'
const albumImages = [
TimelineRectangle1,
TimelineRectangle2,
TimelineRectangle3,
TimelineRectangle4,
]
const earnings = [
{
avatar: zipcar,
title: 'Zipcar',
subtitle: 'Vuejs, React & HTML',
amount: '$24,895.65',
progress: 'primary',
},
{
avatar: bitbank,
title: 'Bitbank',
subtitle: 'Sketch, Figma & XD',
amount: '$8,6500.20',
progress: 'info',
},
{
avatar: aviato,
title: 'Aviato',
subtitle: 'HTML & Anguler',
amount: '$1,2450.80',
progress: 'secondary',
},
]
</script>
<template>
<div class="my-6">
<div>
<h5 class="text-h5 mb-6">
Timeline with icons
</h5>
</div>
<VTimeline
align="start"
line-inset="20"
truncate-line="start"
justify="center"
:density="$vuetify.display.smAndDown ? 'compact' : 'default'"
class="mt-12"
>
<!-- SECTION Timeline Item: Document -->
<VTimelineItem
fill-dot
size="small"
>
<template #opposite>
<span class="app-timeline-meta">
2 months ago
</span>
</template>
<template #icon>
<div class="v-timeline-avatar-wrapper rounded-circle">
<VAvatar
size="32"
color="error"
variant="tonal"
>
<VIcon
icon="ri-file-word-line"
size="20"
/>
</VAvatar>
</div>
</template>
<!-- 👉 Header -->
<VCard class="mb-10 mt-n4">
<VCardItem>
<VCardTitle>You've uploaded doc pdf to the Themeselection project</VCardTitle>
</VCardItem>
<VCardText>
<!-- 👉 Content -->
<p class="app-timeline-text mb-3">
he process of recording the key project details and producing the documents that are required to implement it successfully. Simply put, it's an umbrella term which includes all the documents created over the course of the project.
</p>
<div class="d-inline-flex align-center timeline-chip">
<img
:src="pdf"
height="20"
class="me-2"
alt="img"
>
<span class="app-timeline-text font-weight-medium">
documentation.pdf
</span>
</div>
</VCardText>
</VCard>
</VTimelineItem>
<!-- !SECTION -->
<!-- SECTION Timeline Item: Image Album -->
<VTimelineItem
fill-dot
size="small"
>
<template #opposite>
<span class="app-timeline-meta">
24days ago
</span>
</template>
<template #icon>
<div class="v-timeline-avatar-wrapper rounded-circle">
<VAvatar
size="32"
color="success"
variant="tonal"
>
<VIcon
size="20"
icon="ri-image-line"
/>
</VAvatar>
</div>
</template>
<VCard class="mb-10 mt-n4">
<VCardItem>
<VCardTitle>Heather added 4 images to the Team album</VCardTitle>
</VCardItem>
<VCardText>
<p class="mb-3">
In the Select Image for Project dialog box, choose one of the following: Under the Upload New Image section
</p>
<div class="d-flex gap-4 flex-wrap">
<template
v-for="(img, i) in albumImages"
:key="i"
>
<VImg :src="img" />
</template>
</div>
</VCardText>
</VCard>
</VTimelineItem>
<!-- !SECTION -->
<!-- SECTION Timeline Item: Review -->
<VTimelineItem
fill-dot
size="small"
>
<template #opposite>
<span class="app-timeline-meta">
6 days ago
</span>
</template>
<template #icon>
<div class="v-timeline-avatar-wrapper rounded-circle">
<VAvatar
size="32"
color="warning"
variant="tonal"
>
<VIcon
size="20"
icon="ri-star-smile-line"
/>
</VAvatar>
</div>
</template>
<VCard class="mb-10 mt-n4">
<VCardItem>
<VCardTitle>
Loretta write a review on Themeselection
</VCardTitle>
</VCardItem>
<VCardText>
<div>
<div class="d-flex align-center mb-3">
<VAvatar
size="38"
class="me-4"
:image="avatar8"
/>
<div>
<h6 class="font-weight-medium text-base">
Loretta Moore
</h6>
<span class="text-body-2">CTO of Airbnb</span>
</div>
</div>
<div class="d-flex align-center justify-space-between flex-wrap gap-2 mb-3">
<VRating
size="28"
:model-value="5"
/>
<VChip
color="success"
density="comfortable"
>
<template #prepend>
<VAvatar
start
:image="avatar8"
size="16"
/>
</template>
VERIFIED BUYER
</VChip>
</div>
<div>
I wish I could select more than one main reason for rating this. I love how they constantly work on to make the template better. I am so thankful for this. Also, in the past, they had responded well to my tickets. Thank you for this great theme, for such an amazing support, for the better updates. I wish I could rate this for so many times. I highly recommend this template!
</div>
</div>
</VCardText>
</VCard>
</VTimelineItem>
<!-- !SECTION -->
<!-- SECTION Timeline Item: Earning Report -->
<VTimelineItem
fill-dot
size="small"
>
<template #opposite>
<span class="app-timeline-meta">
2 days ago
</span>
</template>
<template #icon>
<div class="v-timeline-avatar-wrapper rounded-circle">
<VAvatar
size="32"
color="info"
variant="tonal"
>
<VIcon
size="20"
icon="ri-pie-chart-line"
/>
</VAvatar>
</div>
</template>
<VCard class="mb-10 mt-n4">
<VCardItem>
<VCardTitle>Julia stiles shared an earnings report</VCardTitle>
</VCardItem>
<VCardText>
<div class="mb-3">
<div class="d-flex align-center">
<h4 class="text-h4 me-2">
$24,895
</h4>
<VIcon
size="30"
icon="ri-arrow-up-s-fill"
color="success"
/>
<div class="text-body-2 font-weight-medium text-success">
10%
</div>
</div>
<div class="text-body-2">
Compared to $84,325 last year
</div>
</div>
<VList class="card-list">
<VListItem
v-for="earning in earnings"
:key="earning.title"
>
<template #prepend>
<VAvatar
variant="tonal"
rounded
:image="earning.avatar"
/>
</template>
<VListItemTitle class="text-sm font-weight-medium mb-1">
{{ earning.title }}
</VListItemTitle>
<VListItemSubtitle class="text-xs">
{{ earning.subtitle }}
</VListItemSubtitle>
<template #append>
<div>
<h6 class="text-sm font-weight-medium mb-2">
{{ earning.amount }}
</h6>
<VProgressLinear
:color="earning.progress"
rounded
rounded-bar
model-value="80"
/>
</div>
</template>
</VListItem>
</VList>
</VCardText>
</VCard>
</VTimelineItem>
<!-- !SECTION -->
<!-- SECTION Timeline Item: Progress Report -->
<VTimelineItem
fill-dot
size="small"
>
<template #icon>
<div class="v-timeline-avatar-wrapper rounded-circle">
<VAvatar
size="32"
color="primary"
variant="tonal"
>
<VIcon
size="18"
icon="ri-folder-3-line"
/>
</VAvatar>
</div>
</template>
<template #opposite>
<span class="app-timeline-meta">
2 days ago
</span>
</template>
<VCard class="mb-10 mt-n4">
<VCardItem>
<VCardTitle>josh johnson shared Next js project progress report</VCardTitle>
</VCardItem>
<VCardText>
<p class="mb-3">
The structure and process are defined in the project organization considering the attainment of the corporate objectives and therefore also project objectives. The components of the project process are
</p>
<div class="d-inline-flex align-center timeline-chip mb-3">
<img
:src="xls"
height="20"
class="me-2"
alt="img"
>
<span class="app-timeline-text font-weight-medium">
progress-report.xls
</span>
</div>
<div class="d-flex gap-4 align-center">
<div class="flex-grow-1">
<VProgressLinear
:model-value="34"
rounded
rounded-bar
height="6"
/>
</div>
<div>34%</div>
</div>
</VCardText>
</VCard>
</VTimelineItem>
<!-- !SECTION -->
</VTimeline>
</div>
</template>
<style lang="scss">
.v-timeline-avatar-wrapper {
background-color: rgb(var(--v-theme-surface));
}
</style>