работа с цветами на портале

This commit is contained in:
Alex committed 2023-10-18 17:50:16 +03:00
1 parent e4e4d874eb
commit f35b2b544c
5 files changed
+67 -122

No files matched your search

+1 -1
View File
@@ -64,7 +64,7 @@
<v-card-actions class="align-self-end pt-0"> <v-card-actions class="align-self-end pt-0">
<v-btn <v-btn
color="blue-darken-1" color="modal_btn"
variant="text" variant="text"
@click="menusCloses" @click="menusCloses"
> >
+9 -18
View File
@@ -1,15 +1,12 @@
<template> <template>
<div> <div>
<v-card <v-card
:ref="i" :ref="i"
class="mx-auto px-3 pt-3" class="mx-auto px-3 pt-3"
:class="i>0?'mt-1':''" :class="i>0?'mt-1':''"
v-for="(x, i) in newss.result" :key= i v-for="(x, i) in newss.result" :key= i
> >
<v-card-title class="py-1"> <v-card-title class="py-1">
{{x.title}} {{x.title}}
</v-card-title> </v-card-title>
@@ -40,28 +37,22 @@
</template> </template>
</v-list-item> </v-list-item>
<v-divider/> <v-divider/>
<v-card-text class="pb-0"> <v-card-text class="pb-0">
{{limitText(x.text)}} {{limitText(x.text)}}
</v-card-text> </v-card-text>
<div class="pt-1 pl-1 pb-2"> <div class="pt-1 pl-1 pb-2">
<v-btn <v-btn
color="light-blue-darken-4" color="more_details_btn"
variant="text" variant="text"
:to='`/news?id=${x.id}`' :to='`/news?id=${x.id}`'
size="small" size="small"
append-icon="mdi-step-forward-2"
append-icon="mdi-step-forward-2" >
Подробнее
> </v-btn>
Подробнее
</v-btn>
</div> </div>
</v-card> </v-card>
</div> </div>
</template> </template>
+25 -39
View File
@@ -3,23 +3,21 @@
<div class="d-flex flex-column py-3"> <div class="d-flex flex-column py-3">
<v-row> <v-row>
<v-col class="bg-red overflow-auto pa-0"> <v-col class="bg-red overflow-auto pa-0">
<v-card <v-card
class=" rounded-0" class=" rounded-0"
v-for="(x, i) in newss.result" :key=i>
v-for="(x, i) in newss.result" :key=i
>
<v-list-item class="w-100 pl-4 py-2 pt-3"> <v-list-item class="w-100 pl-4 py-2 pt-3">
<template v-slot:prepend> <template v-slot:prepend>
<v-avatar <v-avatar
color="loading_avatar"
color="grey-darken-3" :image=accountStore.user.photo>
:image=accountStore.user.photo></v-avatar> </v-avatar>
</template> </template>
<v-list-item-title>{{x.author.fio}}</v-list-item-title> <v-list-item-title>{{x.author.fio}}</v-list-item-title>
<v-list-item-subtitle>Участник {{route.path}} {{route.query}}</v-list-item-subtitle>
<v-list-item-subtitle>Участник {{route.path}} {{route.query}}</v-list-item-subtitle>
</v-list-item> </v-list-item>
<v-card-title class="pt-0 pb-1"> <v-card-title class="pt-0 pb-1">
@@ -91,24 +89,18 @@
</v-row> </v-row>
<div class="text-subtitle-2"> <div class="text-subtitle-2">
</div> </div>
<v-row> <v-row>
<v-col class="pr-0"> <v-col class="pr-0">
<v-alert <v-alert
color="bg_comments"
rounded=0
color="white" :border="accountStore.user.login==y.author.login?'end':'start'"
rounded=0 :border-color="accountStore.user.login==y.author.login?'success':'deep-purple accent-4'"
:border="accountStore.user.login==y.author.login?'end':'start'" elevation=0>
:border-color="accountStore.user.login==y.author.login?'success':'deep-purple accent-4'" {{ y.text }}
elevation=0 </v-alert>
>
{{ y.text }}
</v-alert>
</v-col> </v-col>
<v-col class="flex-grow-0 d-flex pa-0 align-center" <v-col class="flex-grow-0 d-flex pa-0 align-center"
:class="accountStore.user.login==y.author.login?'pa-0':'pa-5'" :class="accountStore.user.login==y.author.login?'pa-0':'pa-5'"
@@ -118,21 +110,15 @@
variant="text" variant="text"
size="small" size="small"
icon='mdi-delete' icon='mdi-delete'
color="blue-grey-darken-1" color="delete_btn"
@click="deletComment(y.id, x.id)" @click="deletComment(y.id, x.id)"
/> />
</v-col> </v-col>
</v-row> </v-row>
</div>
</div>
</div> </div>
</v-expand-transition> </v-expand-transition>
</div>
</div>
@@ -160,14 +146,14 @@
<v-card-actions> <v-card-actions>
<v-spacer></v-spacer> <v-spacer></v-spacer>
<v-btn <v-btn
color="blue-darken-1" color="modal_btn"
variant="text" variant="text"
@click="dialogCommentShow = false" @click="dialogCommentShow = false"
> >
Отмена Отмена
</v-btn> </v-btn>
<v-btn <v-btn
color="blue-darken-1" color="modal_btn"
variant="text" variant="text"
@click="addComment" @click="addComment"
> >
+23 -62
View File
@@ -46,22 +46,14 @@
<div class="pt-1 pl-1 pb-2"> <div class="pt-1 pl-1 pb-2">
<v-btn <v-btn
color="light-blue-darken-4" color="light-blue-darken-4"
variant="text" variant="text"
:to='`/news?id=${x.id}`' :to='`/news?id=${x.id}`'
size="small" size="small"
append-icon="mdi-step-forward-2">
append-icon="mdi-step-forward-2" Подробнее
</v-btn>
>
Подробнее
</v-btn>
</div> </div>
</v-card> </v-card>
@@ -79,15 +71,12 @@
> >
<v-list-item class="w-100 pl-4 py-2 pt-3"> <v-list-item class="w-100 pl-4 py-2 pt-3">
<template v-slot:prepend> <template v-slot:prepend>
<v-avatar <v-avatar
color="loading_avatar"
color="grey-darken-3" :image=accountStore.user.photo></v-avatar>
:image=accountStore.user.photo></v-avatar>
</template> </template>
<v-list-item-title>{{x.author.fio}}</v-list-item-title>
<v-list-item-title>{{x.author.fio}}</v-list-item-title> <v-list-item-subtitle>Участник</v-list-item-subtitle>
<v-list-item-subtitle>Участник</v-list-item-subtitle>
</v-list-item> </v-list-item>
<v-card-title class="pt-0 pb-1"> <v-card-title class="pt-0 pb-1">
@@ -116,9 +105,6 @@
</div> </div>
</template> </template>
</v-list-item> </v-list-item>
<div > <div >
<v-divider/> <v-divider/>
@@ -135,48 +121,33 @@
:key="key" :key="key"
class="d-flex flex-column pa-3" class="d-flex flex-column pa-3"
> >
<v-row <v-row
class="justify-space-between ma-0 align-center bgchat mr-7" class="justify-space-between ma-0 align-center bgchat mr-7"
:class="accountStore.user.login==y.author.login?'bgchatnot':'bgchat'" :class="accountStore.user.login==y.author.login?'bgchatnot':'bgchat'"
> >
<v-col class="flex-grow-1 text-subtitle-2 pl-2 pa-0 " <v-col class="flex-grow-1 text-subtitle-2 pl-2 pa-0 "
> >
{{ accountStore.user.login==y.author.login?'':splitname(y.author) }} {{ accountStore.user.login==y.author.login?'':splitname(y.author) }}
</v-col> </v-col>
<v-col class="pa-0 text-center text-subtitle-2 "> <v-col class="pa-0 text-center text-subtitle-2 ">
{{dateformat(y.cdate)}} {{dateformat(y.cdate)}}
</v-col> </v-col>
<v-col class="pa-0 pr-2 text-end text-subtitle-2 "> <v-col class="pa-0 pr-2 text-end text-subtitle-2 ">
{{ accountStore.user.login!=y.author.login?'':splitname(y.author) }} {{ accountStore.user.login!=y.author.login?'':splitname(y.author) }}
</v-col> </v-col>
</v-row> </v-row>
<div class="text-subtitle-2"> <div class="text-subtitle-2">
</div> </div>
<v-row> <v-row>
<v-col class="pr-0"> <v-col class="pr-0">
<v-alert <v-alert
color="white"
rounded=0
color="white" :border="accountStore.user.login==y.author.login?'end':'start'"
rounded=0 :border-color="accountStore.user.login==y.author.login?'success':'deep-purple accent-4'"
:border="accountStore.user.login==y.author.login?'end':'start'" elevation=0>
:border-color="accountStore.user.login==y.author.login?'success':'deep-purple accent-4'" {{ y.text }}
elevation=0 </v-alert>
>
{{ y.text }}
</v-alert>
</v-col> </v-col>
<v-col class="flex-grow-0 d-flex pa-0 align-center" <v-col class="flex-grow-0 d-flex pa-0 align-center"
:class="accountStore.user.login==y.author.login?'pa-0':'pa-5'" :class="accountStore.user.login==y.author.login?'pa-0':'pa-5'"
@@ -186,34 +157,24 @@
variant="text" variant="text"
size="small" size="small"
icon='mdi-delete' icon='mdi-delete'
color="blue-grey-darken-1" color="delete_btn"
@click="deletComment(y.id, x.id)" @click="deletComment(y.id, x.id)"
/> />
</v-col> </v-col>
</v-row> </v-row>
</div>
</div>
</div> </div>
</v-expand-transition> </v-expand-transition>
</div>
</div>
</v-card> </v-card>
</div> </div>
<v-row justify="center"> <v-row justify="center">
<v-dialog <v-dialog
v-model="dialogCommentShow" v-model="dialogCommentShow"
persistent persistent
width="550" width="550">
>
<v-card> <v-card>
<v-card-title class="text-h5"> <v-card-title class="text-h5">
Прокоментировать новость Прокоментировать новость
+9 -2
View File
@@ -24,7 +24,10 @@ export default createVuetify({
modal_btn: '#1E88E5', // Цвет для кнопок в модальных окнах modal_btn: '#1E88E5', // Цвет для кнопок в модальных окнах
eye_icon: '#7A7A7A', // Цвет иконки для отображения количества посещений eye_icon: '#7A7A7A', // Цвет иконки для отображения количества посещений
stars: '#F9A825', // Цвет для звездочек в обратной связи stars: '#F9A825', // Цвет для звездочек в обратной связи
more_details_btn: '#01579B', // Цвет для кнопки перехода "подробнее"
loading_avatar: '#37474F', // Цвет поля прогрузки аватара пользователя
bg_comments: '#FFFFFF', // Цвет заднего фона для комментариев
delete_btn: '#546E7A', // Цвет для кнопки удаления
}, },
}, },
dark: { dark: {
@@ -40,7 +43,11 @@ export default createVuetify({
numeral: '#3C3C3C', numeral: '#3C3C3C',
modal_btn: '#1E88E5', modal_btn: '#1E88E5',
eye_icon: '#7A7A7A', eye_icon: '#7A7A7A',
stars: '#F9A825' stars: '#F9A825',
more_details_btn: '#01579B',
loading_avatar: '#37474F',
bg_comments: '#FFFFFF',
delete_btn: '#546E7A'
}, },
}, },
options: { options: {