Skip to content

Commit faba4dc

Browse files
refactor(multi): refactored avatars and dashboard alignment.
1 parent 5a20bf1 commit faba4dc

21 files changed

+20
-26
lines changed

typescript-version/src/@core/components/cards/CardStatisticsVertical.vue

+4-12
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ interface Props {
33
title: string
44
image: string
55
stats: string
6-
color: string
76
change: number
87
}
98
@@ -15,18 +14,11 @@ const isPositive = controlledComputed(() => props.change, () => Math.sign(props.
1514
<template>
1615
<VCard>
1716
<VCardText class="d-flex align-center pb-4">
18-
<VAvatar
19-
v-if="props.image"
20-
size="38"
21-
:color="props.color"
22-
variant="tonal"
23-
rounded
17+
<img
18+
width="42"
19+
:src="props.image"
20+
alt="image"
2421
>
25-
<VIcon
26-
:icon="props.image"
27-
size="24"
28-
/>
29-
</VAvatar>
3022

3123
<VSpacer />
3224

Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading

typescript-version/src/layouts/components/DefaultLayoutWithVerticalNav.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const upgradeBanner = computed(() => {
5454

5555
<IconBtn
5656
class="me-2"
57-
href="https://github.com/themeselection/master-vuetify-vuejs-admin-template-free"
57+
href="https://github.com/themeselection/sneat-vuetify-vuejs-admin-template-free"
5858
target="_blank"
5959
rel="noopener noreferrer"
6060
>

typescript-version/src/pages/dashboard.vue

+8-8
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ import AnalyticsTotalRevenue from '@/views/dashboard/AnalyticsTotalRevenue.vue'
77
import AnalyticsTransactions from '@/views/dashboard/AnalyticsTransactions.vue'
88
99
// 👉 Images
10+
import chart from '@images/cards/chart-success.png'
11+
import card from '@images/cards/credit-card-primary.png'
12+
import paypal from '@images/cards/paypal-error.png'
13+
import wallet from '@images/cards/wallet-info.png'
1014
</script>
1115

1216
<template>
@@ -32,8 +36,7 @@ import AnalyticsTransactions from '@/views/dashboard/AnalyticsTransactions.vue'
3236
<CardStatisticsVertical
3337
v-bind="{
3438
title: 'Profit',
35-
image: 'bx-pie-chart-alt',
36-
color: 'success',
39+
image: chart,
3740
stats: '$12,628',
3841
change: 72.80,
3942
}"
@@ -48,8 +51,7 @@ import AnalyticsTransactions from '@/views/dashboard/AnalyticsTransactions.vue'
4851
<CardStatisticsVertical
4952
v-bind="{
5053
title: 'Sales',
51-
image: 'bx-wallet',
52-
color: 'info',
54+
image: wallet,
5355
stats: '$4,679',
5456
change: 28.42,
5557
}"
@@ -84,8 +86,7 @@ import AnalyticsTransactions from '@/views/dashboard/AnalyticsTransactions.vue'
8486
<CardStatisticsVertical
8587
v-bind=" {
8688
title: 'Payments',
87-
image: 'bxl-paypal',
88-
color: 'error',
89+
image: paypal,
8990
stats: '$2,468',
9091
change: -14.82,
9192
}"
@@ -100,8 +101,7 @@ import AnalyticsTransactions from '@/views/dashboard/AnalyticsTransactions.vue'
100101
<CardStatisticsVertical
101102
v-bind="{
102103
title: 'Transactions',
103-
image: 'bx-credit-card',
104-
color: 'primary',
104+
image: card,
105105
stats: '$14,857',
106106
change: 28.14,
107107
}"

typescript-version/src/views/dashboard/AnalyticsCongratulations.vue

+6-4
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,15 @@ const illustrationJohn = computed(() => global.name.value === 'dark' ? illustrat
2323
</VCardItem>
2424

2525
<VCardText>
26-
You have done 72% 🤩 more sales today.
27-
<br>
28-
Check your new raising badge in your profile.
26+
<span>
27+
You have done 72% 🤩 more sales today.
28+
<br>
29+
Check your new raising badge in your profile.
30+
</span>
2931
<br>
3032
<VBtn
3133
variant="tonal"
32-
class="mt-4 mb-1"
34+
class="mt-4"
3335
size="small"
3436
>
3537
View Badges

typescript-version/src/views/dashboard/AnalyticsTotalRevenue.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ const balanceData = [
243243
<VueApexCharts
244244
id="bar-chart"
245245
type="bar"
246-
:height="345"
246+
:height="336"
247247
:options="chartOptions.bar"
248248
:series="series"
249249
/>

0 commit comments

Comments
 (0)