Новости домашняя страница

This commit is contained in:
iriska-gri committed 2023-12-13 14:39:35 +03:00
1 parent f4da4b8fa3
commit 78b1c830ed
2 files changed
+22 -24

No files matched your search

+2 -2
View File
@@ -1,8 +1,8 @@
<template> <template>
<v-card <v-card
class="rounded-0 h-100 flex-column d-flex" class="rounded-0 h-100 flex-column d-flex"
min-height="416" min-height="410"
max-height="416" max-height="410"
> >
<v-card-title class="pb-1"> <v-card-title class="pb-1">
{{news.title}} {{news.title}}
+20 -22
View File
@@ -1,34 +1,32 @@
<template> <template>
<v-row> <v-row>
<v-col class="flex-column d-flex"> <v-col class="flex-column d-flex">
<v-row class="flex-grow-0 ma-3 mb-0">
<v-col class="flex-column d-flex pa-0 flex-wrap">
Всего новостей: {{countetnews}}
</v-col>
</v-row>
<v-row class="mt-0 h-0 overflow-auto"> <v-row class="mt-0 h-0 overflow-auto">
<v-col <v-col
v-for="(x, key) in newsAll" v-for="(x, key) in newsAll"
:key="key" :key="key"
class="pb-1 pt-0"> class="pb-1 pt-0"
<news-card :news="x"/>
</v-col>
</v-row>
</v-col>
</v-row>
<!-- <div>
<div class= "pa-3">
Всего новостей: {{countetnews}}
</div>
<div
v-for="(x, key) in newsAll"
:key="key"
class="pb-2"
> >
<news-card :news="x"/> <news-card :news="x"/>
</div> </v-col>
</div> --> </v-row>
<v-divider class="mt-3"/>
<v-row class="flex-grow-0 ma-0 align-items-center">
<v-col class="flex-column d-flex pa-0 align-end">
<v-btn
size="small"
variant="text"
icon="mdi-newspaper"
color="blue-darken-4"
:to='`/news`'
/>
</v-col>
<v-col class="py-0 pl-0 flex-grow-0 text-end align-self-center text-caption font-weight-bold text-no-wrap">
Всего новостей: {{countetnews}}
</v-col>
</v-row>
</v-col>
</v-row>
</template> </template>
<script> <script>