Caroussel.vue 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  1. <template>
  2. <LayoutContainer>
  3. <v-carousel
  4. v-if="lgAndUp"
  5. ref="carousel"
  6. v-model="activeIndex"
  7. :show-arrows="false"
  8. class="carousel"
  9. :hide-delimiter-background="true"
  10. :show-delimiters="false"
  11. :touch="true"
  12. >
  13. <v-carousel-item v-for="(item, index) in carouselItems" :key="index">
  14. <v-row>
  15. <v-col cols="6">
  16. <v-row class="align-start">
  17. <v-img class="logo-school" :src="item.logo"></v-img>
  18. </v-row>
  19. <v-row class="align-start">
  20. <p class="description">{{ item.description }}</p>
  21. </v-row>
  22. <v-row class="align-start">
  23. <nuxt-link :to="item.link">
  24. <v-btn :class="item.buttonClass">En savoir plus</v-btn>
  25. </nuxt-link>
  26. </v-row>
  27. </v-col>
  28. <v-col cols="6">
  29. <v-row class="justify-end">
  30. <div
  31. class="background-rectangle"
  32. :style="{ backgroundColor: item.color }"
  33. ></div>
  34. <v-card class="card" elevation="5">
  35. <v-img
  36. class="profile-image"
  37. :src="item.avatar"
  38. alt="Profile Image"
  39. contain
  40. rounded
  41. ></v-img>
  42. <v-card-text>
  43. <v-card-title class="name">{{ item.name }}</v-card-title>
  44. <p class="school">{{ item.school }}</p>
  45. <p class="status">{{ item.status }}</p>
  46. </v-card-text>
  47. </v-card>
  48. <v-img :src="item.image" class="image"></v-img>
  49. </v-row>
  50. </v-col>
  51. </v-row>
  52. </v-carousel-item>
  53. <div class="custom-controls">
  54. <div
  55. v-for="(item, index) in carouselItems"
  56. :key="index"
  57. :class="{ 'active-control': index === activeIndex }"
  58. @click="changeSlide(index)"
  59. ></div>
  60. </div>
  61. </v-carousel>
  62. </LayoutContainer>
  63. </template>
  64. <script setup>
  65. import { useDisplay } from "vuetify";
  66. const { lgAndUp } = useDisplay();
  67. let activeIndex = ref(0);
  68. const changeSlide = (index) => {
  69. activeIndex.value = index;
  70. };
  71. const carouselItems = ref([
  72. {
  73. logo: "/images/carousel/school/school.png",
  74. description:
  75. "Pour les petits comme pour les grans établissements d’enseignement artistique.Il permet la gestion au quotidien et en temps réel de votre établissement, de gérer vos élèves et vos professeurs, vos emplois du temps, le suivi pédagogique, vos salles, la facturation et les encaissements...",
  76. buttonClass: "btn-school",
  77. image: "/images/carousel/school/Fille_School.png",
  78. color: "rgba(32, 147, 190, 0.4)",
  79. link: "/logiciels/school",
  80. name: "Cindy Blanchard",
  81. school: "Conservatoire d'Anemasse",
  82. status: "Eleve",
  83. avatar: "/images/carousel/school/avatar.png",
  84. },
  85. {
  86. logo: "/images/carousel/artist/artist.png",
  87. description:
  88. "Pour les structures culturelles pratiquantes telles que les orchestres, les chorales, les compagnies de cirque, théâtre et danse.Gérez votre activité avec un logiciel de gestion et communication au service de votre passion.",
  89. buttonClass: "btn-artist",
  90. image: "/images/carousel/artist/musician.png",
  91. color: "rgba(250, 194, 10, 0.4)",
  92. link: "/logiciels/artist",
  93. name: "Thierry Dupont ",
  94. school: "Orchestre d’harmonie de Cluse",
  95. status: "Admin",
  96. avatar: "/images/carousel/artist/avatar.png",
  97. },
  98. {
  99. logo: "/images/carousel/manager/manager.png",
  100. description:
  101. "La solution de mise en réseau des organisations culturelles. Fédérations, confédérations et collectivités, utilisez une solution collaborative innovante et unique spécialement développée pour les réseaux culturels.",
  102. buttonClass: "btn-manager",
  103. image: "/images/carousel/manager/fédération.png",
  104. color: "rgba(216, 5, 11, 0.4)",
  105. link: "/logiciels/manager",
  106. name: "Marie Voisin",
  107. school: "Confédération Musicale de France",
  108. status: "ADMIN",
  109. avatar: "/images/carousel/manager/avatar.png",
  110. },
  111. ]);
  112. </script>
  113. <style scoped>
  114. ::v-deep .v-carousel__controls {
  115. display: none;
  116. }
  117. .carousel,
  118. .v-carousel__item {
  119. height: 900% !important;
  120. }
  121. .card {
  122. height: 20%;
  123. width: 27%;
  124. border-radius: 1rem;
  125. margin-top: 1rem;
  126. }
  127. .profile-image {
  128. width: 40%;
  129. margin: auto;
  130. height: 12vh;
  131. }
  132. .name {
  133. text-align: center;
  134. font-size: 100%;
  135. font-weight: bold;
  136. margin-bottom: 1vh;
  137. font-family: "Barlow";
  138. font-style: normal;
  139. }
  140. .school,
  141. .status {
  142. text-align: center;
  143. font-size: 80%;
  144. color: #888888;
  145. margin-bottom: 1vh;
  146. }
  147. .background-rectangle {
  148. position: absolute;
  149. width: 60%;
  150. height: 20rem;
  151. left: 72%;
  152. top: 50%;
  153. transform: translate(-50%, -50%);
  154. border-radius: 200px 0px 0px 15rem;
  155. z-index: -1;
  156. }
  157. .align-start {
  158. align-items: flex-start;
  159. }
  160. .carousel {
  161. height: 100%;
  162. margin-top: 10vh;
  163. }
  164. .description {
  165. text-align: left;
  166. width: 30%;
  167. margin-bottom: 1rem;
  168. }
  169. .logo-school {
  170. max-width: 35vw;
  171. height: 25vh;
  172. margin-top: 10px;
  173. margin-bottom: 2vh;
  174. }
  175. .image {
  176. height: 35rem;
  177. margin-top: 6rem;
  178. right: 20%;
  179. }
  180. .description {
  181. text-align: left;
  182. margin-right: 9vw;
  183. margin-left: 7vw;
  184. width: 25vw;
  185. }
  186. .custom-controls {
  187. position: absolute;
  188. top: 50%;
  189. right: 1vw;
  190. transform: translateY(-50%);
  191. display: flex;
  192. flex-direction: column;
  193. gap: 1vh;
  194. }
  195. .custom-controls div {
  196. width: 1vh;
  197. height: 1vh;
  198. border-radius: 50%;
  199. background-color: grey;
  200. cursor: pointer;
  201. }
  202. .custom-controls .active-control {
  203. background-color: #000;
  204. margin-right: 2rem;
  205. }
  206. .btn-school {
  207. background: rgba(32, 147, 190, 0.4);
  208. border-radius: 0.5rem;
  209. margin-left: 7vw;
  210. padding: 25px;
  211. gap: 9px;
  212. font-weight: 700;
  213. font-size: 10px;
  214. line-height: 15px;
  215. width: 10rem;
  216. height: 4rem;
  217. font-family: "Barlow";
  218. font-style: normal;
  219. }
  220. .btn-artist {
  221. background: rgba(250, 194, 10, 0.4);
  222. border-radius: 0.5rem;
  223. margin-left: 7vw;
  224. padding: 25px;
  225. gap: 9px;
  226. font-weight: 700;
  227. font-size: 10px;
  228. line-height: 15px;
  229. width: 10rem;
  230. height: 4rem;
  231. font-family: "Barlow";
  232. font-style: normal;
  233. }
  234. .btn-manager {
  235. background: rgba(216, 5, 11, 0.4);
  236. border-radius: 0.5rem;
  237. margin-left: 7vw;
  238. padding: 25px;
  239. gap: 9px;
  240. font-weight: 700;
  241. font-size: 10px;
  242. line-height: 15px;
  243. width: 10rem;
  244. height: 4rem;
  245. font-family: "Barlow";
  246. font-style: normal;
  247. }
  248. </style>