|
1 | 1 | <template> |
2 | | - <h1>Dashboard {{ msg }} </h1> |
| 2 | + <v-container> |
| 3 | + <v-row class="my-3"> |
| 4 | + <v-col cols="3"> |
| 5 | + <DashboardCardNumber title="Usuarios Online" quantity="1344" icon="mdi-account-multiple" caption="En tiempo real" color="amber"></DashboardCardNumber> |
| 6 | + </v-col> |
| 7 | + <v-col cols="3"> |
| 8 | + <DashboardCardNumber title="Veedurías" quantity="25" icon="mdi-shield-account" caption="Últimas 24 horas" color="blue"></DashboardCardNumber> |
| 9 | + </v-col> |
| 10 | + <v-col cols="3"> |
| 11 | + <DashboardCardNumber title="Patrocinios" quantity="87" icon="mdi-charity" caption="Últimas 24 horas" color="pink"></DashboardCardNumber> |
| 12 | + </v-col> |
| 13 | + <v-col cols="3"> |
| 14 | + <DashboardCardNumber title="Transacciones" quantity="106" icon="mdi-cash-multiple" caption="Últimas 24 horas" color="green"></DashboardCardNumber> |
| 15 | + </v-col> |
| 16 | + </v-row> |
| 17 | + <v-row class="mt-9 mb-2"> |
| 18 | + <v-col cols="6"> |
| 19 | + <DashboardSparkline color="grey darken-1" title="Usuarios Registrados" caption="último registro hace 7 minutos" |
| 20 | + :labels="['6h', '7h', '8h', '9h', '10h', '11h', '12h', '13h', '14h', '15h', '16h', '17h', '18h']" |
| 21 | + :values="[100, 200, 300, 700, 400, 600, 1000, 1300, 1200, 900, 900, 900, 100]"></DashboardSparkline> |
| 22 | + </v-col> |
| 23 | + <v-col cols="6"> |
| 24 | + <DashboardSparkline color="grey darken-1" title="Proyectos Creados" caption="última creación hace 1 minuto" |
| 25 | + :labels="['6h', '7h', '8h', '9h', '10h', '11h', '12h', '13h', '14h', '15h', '16h', '17h', '18h']" |
| 26 | + :values="[5, 2, 7, 17, 4, 6, 10, 13, 2, 5, 9, 3, 18]"></DashboardSparkline> |
| 27 | + </v-col> |
| 28 | + </v-row> |
| 29 | + </v-container> |
3 | 30 | </template> |
4 | 31 |
|
5 | 32 | <script> |
| 33 | +import DashboardSparkline from '@/components/DashboardSparkline.vue' |
| 34 | +import DashboardCardNumber from '@/components/DashboardCardNumber.vue' |
| 35 | +
|
6 | 36 | export default { |
7 | 37 | name: 'Dashboard', |
8 | 38 |
|
9 | | - props: { |
10 | | - msg: String |
| 39 | + components: { |
| 40 | + DashboardSparkline, |
| 41 | + DashboardCardNumber |
11 | 42 | }, |
12 | 43 |
|
13 | 44 | data: () => ({ |
|
0 commit comments