Верстка

This commit is contained in:
iriska-gri committed 2024-01-17 15:37:27 +03:00
1 parent 253530ef2e
commit 05b634302f
3 files changed
+77 -87

No files matched your search

@@ -1,23 +1,16 @@
<template>
<v-row>
<v-col class="flex-column d-flex">
<v-card :title="name" class="text-center" >
<v-card-text >
<v-row >
<v-col
class="text-h2 text-center"
>
{{total}}
</v-col>
</v-row>
</v-card-text>
</v-card>
</v-col>
</v-row>
<v-card
:title="name"
class="text-center"
>
<v-card-text>
<v-row>
<v-col class="text-h2 text-center">
{{total}}
</v-col>
</v-row>
</v-card-text>
</v-card>
</template>
<script>
@@ -1,49 +1,39 @@
<template>
<v-row >
<v-col class="d-flex flex-column">
<card-total
name="Всего поставлено оценок"
:total="total"
/>
<v-row>
<v-col>
<v-card class="pa-3">
<star-like
:criteria=average()
:rating=average()
/>
</v-card>
</v-col>
</v-row>
<card-total
name="Всего оставлено комментариев"
:total="crit.total"
/>
<v-row>
<v-col>
<top-user
name= "Самый активный критик"
:users=crit
ico="mdi-comment-account-outline"
/>
</v-col>
</v-row>
<v-row>
<v-col class="d-flex flex-column">
<div>
<card-total
name="Всего поставлено оценок"
:total="total"
/>
</div>
</v-col>
<div>
<v-card class="pa-3">
<star-like
:criteria=average()
:rating=average()
/>
</v-card>
</div>
<div>
<card-total
name="Всего оставлено комментариев"
:total="crit.total"
/>
</div>
</v-row>
<div>
<top-user
name= "Самый активный критик"
:users=crit
ico="mdi-comment-account-outline"
/>
</div>
</v-col>
</v-row>
</template>
<script>
@@ -2,37 +2,44 @@
<v-card
class="mx-auto h-100"
>
<v-card-text class="text-h5 pa-1 pl-5 flex-wrap align-center d-flex justify-space-between">
{{name}}
<v-icon
color="blue-grey-lighten-1"
:icon="ico"
size="45"
></v-icon>
{{name}}
<v-icon
color="blue-grey-lighten-1"
:icon="ico"
size="35"
/>
</v-card-text>
<v-row>
<v-col lg=8> <v-card-actions>
<v-list-item>
<template v-slot:prepend>
<v-avatar
color="grey-darken-3"
:image="checkremote( `${spravURL}${users.login}.jpg`)"
></v-avatar>
</template>
<v-list-item-title>{{users.fio}}</v-list-item-title>
<v-list-item-subtitle>{{users.post}}</v-list-item-subtitle>
</v-list-item>
</v-card-actions></v-col>
<v-col class="align-self-center text-left">
<span class="subheading text-h6 me-5 pl-3">{{users.count}}</span>
<v-divider/>
<v-row class="mx-3">
<v-col lg=8 class="px-0">
<v-card-actions class="pa-0">
<v-list-item>
<template v-slot:prepend>
<v-avatar
color="grey-darken-3"
:image="checkremote( `${spravURL}${users.login}.jpg`)"
/>
</template>
<v-list-item-title class="pt-2">
{{users.fio}}
</v-list-item-title>
<v-list-item-subtitle class="pb-2">
{{users.post}}
</v-list-item-subtitle>
</v-list-item>
<v-divider vertical/>
</v-card-actions>
</v-col>
<v-col class="align-self-center text-center px-0">
<span class="subheading text-h6">
{{users.count}}
</span>
</v-col>
</v-row>
</v-card>
</template>