Files
PORTAL_COD2/front/src/components/carousel-list.vue
T

91 lines
1.9 KiB
Vue

<template>
<v-carousel
cover
height="450"
hide-delimiters
hide-delimiter-background
show-arrows="hover"
color="white"
>
<v-carousel-item
v-for="(x, i) in carous" :key="i"
:src="`${burl}${x.link}`"
cover
eager
>
<v-container
fill-height
fluid
pa-0 ma-0 pb-3
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>
<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">
{{x.text}}
</v-card-text>
</v-card>
</v-container>
</v-carousel-item>
</v-carousel>
</template>
<script>
import { ref } from 'vue'
import {getfromserverfree} from '@/utils/universal_functions'
import { baseURL } from '@/utils/axios-api'
export default {
setup() {
const burl = baseURL.slice(0,-1)
const carous=ref([{link: ""}])
getfromserverfree("api/navigation/carousels/", carous)
return { burl, carous}
}
}
</script>
<style>
.bgCard {
/* #ffffff6b #ffffff8c*/
background: #ffffff38 ;
}
.bgText {
background: #ffffffb0;
line-height: 3.0rem!important;
}
.titles {
font-family: cursive !important;
background: #ffffff8c;
}
</style>