Caroussel.vue 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293
  1. <!--
  2. Carrousel de la page d'accueil
  3. -->
  4. <template>
  5. <v-carousel
  6. ref="carousel"
  7. v-model="activeIndex"
  8. :show-arrows="false"
  9. :hide-delimiter-background="true"
  10. :show-delimiters="false"
  11. :touch="true"
  12. :wrap-around="true"
  13. :interval="5000"
  14. >
  15. <v-carousel-item
  16. v-for="(item, index) in carouselItems"
  17. :key="index"
  18. >
  19. <v-row>
  20. <!-- Partie description (logo, description, bouton 'en savoir plus') -->
  21. <v-col cols="12" lg="6" class="col presentation">
  22. <v-img
  23. :src="item.logo"
  24. class="logo"
  25. />
  26. <p class="description">
  27. {{ item.description }}
  28. </p>
  29. <v-row class="align-start pl-4">
  30. <v-btn
  31. :to="item.link"
  32. append-icon="fas fa-arrow-right"
  33. :class="['learn-more-btn', item.buttonClass]"
  34. >
  35. En savoir plus
  36. </v-btn>
  37. </v-row>
  38. </v-col>
  39. <!-- Partie Illustration -->
  40. <v-col cols="12" lg="6" class="col illustration">
  41. <v-row>
  42. <div
  43. class="background-rectangle"
  44. :style="{ backgroundColor: item.color }"
  45. />
  46. <v-card class="card" elevation="5">
  47. <v-img
  48. class="profile-image"
  49. :src="item.avatar"
  50. alt="Profile Image"
  51. contain
  52. rounded
  53. />
  54. <v-card-text>
  55. <v-card-title class="name">
  56. {{ item.name }}
  57. <p class="school">
  58. {{ item.school }}
  59. </p>
  60. </v-card-title>
  61. <p class="status">
  62. {{ item.status }}
  63. </p>
  64. </v-card-text>
  65. </v-card>
  66. <v-img
  67. :src="item.image"
  68. :class="smAndDown ? 'image-sm' : 'image'"
  69. />
  70. </v-row>
  71. </v-col>
  72. </v-row>
  73. </v-carousel-item>
  74. <div class="custom-controls">
  75. <!--suppress JSUnusedLocalSymbols -->
  76. <div
  77. v-for="(_, index) in carouselItems"
  78. :key="index"
  79. :class="{ 'active-control': index === activeIndex }"
  80. @click="setActiveIndex(index)"
  81. />
  82. </div>
  83. </v-carousel>
  84. </template>
  85. <script setup lang="ts">
  86. import { useDisplay } from "vuetify";
  87. import type { CarouselItem } from "~/types/interface";
  88. const { smAndDown, mdAndDown } = useDisplay();
  89. // Index de la slide active
  90. let activeIndex: Ref<number> = ref(0);
  91. const setActiveIndex = (index: number) => {
  92. activeIndex.value = index;
  93. };
  94. const carouselItems: Ref<Array<CarouselItem>> = ref([
  95. {
  96. logo: "/images/logo/logiciels/School-noir.png",
  97. description:
  98. "Pour les petits comme pour les GRANDS établissements d’enseignement artistique tels que les écoles de musique, de danse, de théâtre, d'art, de cirque et conservatoire.<br> 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…",
  99. buttonClass: "btn-school",
  100. image:
  101. "/images/Home_logiciel/Logiciel_Opentalent_School-eleve-Conservatoire_de_Musique.png",
  102. color: "rgba(32, 147, 190, 0.4)",
  103. link: "/opentalent_school",
  104. name: "Cindy Blanchard",
  105. school: "Conservatoire de Musique",
  106. status: "élève",
  107. avatar: "/images/carousel/school/avatar.png",
  108. },
  109. {
  110. logo: "/images/logo/logiciels/Artist-noir.png",
  111. description:
  112. "Pour les structures culturelles pratiquantes telles que les orchestres, les chorales, les compagnies de danse, théâtre et cirque. <br> Gérez votre activité avec un logiciel de gestion et de communication au service de votre passion.",
  113. buttonClass: "btn-artist",
  114. image:
  115. "/images/Home_logiciel/Logiciel_Opentalent_Artist-administrateur-Orchestre_d_harmonie.png",
  116. color: "rgba(250, 194, 10, 0.4)",
  117. link: "opentalent_artist",
  118. name: "Thierry Dupont ",
  119. school: "Orchestre d’harmonie",
  120. status: "Admin",
  121. avatar: "/images/carousel/artist/avatar.png",
  122. },
  123. {
  124. logo: "/images/logo/logiciels/Manager-noir.png",
  125. description:
  126. "La solution de mise en réseau des organisations culturelles.<br> 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.",
  127. buttonClass: "btn-manager",
  128. image:
  129. "/images/Home_logiciel/Logiciel_Opentalent_Managerl-Administrateur_Federation.png",
  130. color: "rgba(216, 5, 11, 0.4)",
  131. link: "opentalent_manager",
  132. name: "Marie Voisin",
  133. school: "Réseau d'organisations culturelles ",
  134. status: "ADMIN",
  135. avatar: "/images/carousel/manager/avatar.png",
  136. },
  137. ]);
  138. </script>
  139. <style scoped lang="scss">
  140. /* ============= CAROUSEL =============== */
  141. :deep(.v-carousel__controls) {
  142. display: none;
  143. }
  144. .custom-controls {
  145. position: absolute;
  146. top: 50%;
  147. right: 1vw;
  148. transform: translateY(-50%);
  149. display: flex;
  150. flex-direction: column;
  151. gap: 1vh;
  152. div {
  153. width: 0.6rem;
  154. height: 0.6rem;
  155. border-radius: 50%;
  156. background-color: grey;
  157. cursor: pointer;
  158. margin-bottom: 0.5rem;
  159. }
  160. .active-control {
  161. background-color: #000;
  162. margin-right: 2rem;
  163. }
  164. }
  165. /* ============= Colonne gauche - Description =============== */
  166. .col.presentation {
  167. .logo {
  168. width: 20rem;
  169. margin-top: 10px;
  170. margin-left: 6rem;
  171. }
  172. .description {
  173. text-align: justify;
  174. margin-top: 8px;
  175. margin-left: 7rem;
  176. width: 25vw;
  177. margin-bottom: 1rem;
  178. }
  179. .learn-more-btn {
  180. display: flex;
  181. align-items: center;
  182. margin-top: 16px;
  183. border-radius: 0.5rem;
  184. padding: 15px;
  185. gap: 9px;
  186. font-weight: 700;
  187. font-size: 0.7rem;
  188. line-height: 15px;
  189. width: 10rem;
  190. height: 2.5rem;
  191. margin-left: 7rem;
  192. }
  193. .learn-more-btn :deep(.v-btn__append) {
  194. color: black;
  195. margin-left: 0;
  196. }
  197. .btn-school {
  198. background: rgba(32, 147, 190, 0.4);
  199. }
  200. .btn-artist {
  201. background: rgba(250, 194, 10, 0.4);
  202. }
  203. .btn-manager {
  204. background: rgba(216, 5, 11, 0.4);
  205. }
  206. }
  207. /* ============= Colonne droite - Illustration =============== */
  208. .col.illustration {
  209. .card {
  210. position: relative;
  211. left: 10%;
  212. height: 100%;
  213. width: 27%;
  214. border-radius: 1rem;
  215. margin-top: 1rem;
  216. }
  217. .profile-image {
  218. width: 100%;
  219. height: 12vh;
  220. }
  221. .name {
  222. text-align: center;
  223. font-size: 0.9rem;
  224. white-space: normal;
  225. padding: 0 !important;
  226. }
  227. .school, .status {
  228. text-align: center;
  229. white-space: normal;
  230. }
  231. .school {
  232. color: #888888;
  233. font-weight: normal !important;
  234. font-size: 0.8rem !important;
  235. margin-top: 0.2px;
  236. line-height: 1rem !important;
  237. }
  238. .status {
  239. text-transform: uppercase;
  240. font-weight: bold;
  241. color: black;
  242. font-size: 100%;
  243. margin-top: 0.8rem;
  244. }
  245. .background-rectangle {
  246. position: absolute;
  247. width: 70%;
  248. height: 20rem;
  249. left: 72%;
  250. top: 50%;
  251. transform: translate(-50%, -50%);
  252. border-radius: 200px 0px 0px 15rem;
  253. z-index: -1;
  254. }
  255. .image {
  256. height: 35rem;
  257. right: 5rem;
  258. }
  259. }
  260. </style>