Карусель 1 часть

This commit is contained in:
iriska-gri committed 2023-09-27 17:00:42 +03:00
1 parent 1b3ac28ddf
commit e83ea1300f
11 files changed
+57 -47

No files matched your search

+28 -11
View File
@@ -1,12 +1,14 @@
<template>
<v-carousel
cover
height="450"
hide-delimiters
hide-delimiter-background
show-arrows="hover"
color="white"
cycle
interval="7000"
cover
height="450"
hide-delimiters
hide-delimiter-background
show-arrows="hover"
color="white"
@@ -29,8 +31,21 @@
class="flex-column h-100 d-flex"
>
<v-card class="bgCard h-100 d-flex flex-column">
<v-card-title class="ma-2 text-h3 text-uppercase titles text-text_carous py-6">
{{x.title}}
<v-card-title class="ma-2 text-h3 text-uppercase titles text-text_carous py-6 flex-column">
<v-row>
<v-col class="pa-0">{{x.title}} </v-col>
<v-col class="flex-grow-0 pa-0 pr-1">
<v-img
width="50"
:aspect-ratio="1"
:src="imageSrcgrupp"
cover
/>
</v-col>
</v-row>
</v-card-title>
<v-card-text class="ml-2 mb-2 text-black w-50 flex-grow-0 py-3 text-text_carous text-h5 bgText overflow-auto font-weight-medium">
@@ -48,7 +63,7 @@
</template>
<script>
import { ref } from 'vue'
import { ref, computed } from 'vue'
import {getfromserverfree} from '@/utils/universal_functions'
import { baseURL } from '@/utils/axios-api'
@@ -60,13 +75,15 @@ export default {
setup() {
const burl = baseURL.slice(0,-1)
const carous=ref([{link: ""}])
const imageSrcgrupp=computed(()=> {
return new URL(`@/assets/mc.png`, import.meta.url).href;
})
getfromserverfree("api/navigation/carousels/", carous)
return { burl, carous}
return { burl, carous, imageSrcgrupp}
}
}