Caroussel.vue 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291
  1. <template>
  2. <LayoutContainer>
  3. <LayoutUITitlePage
  4. title="LOGICIELS CULTURELS"
  5. subtitle="UNE GAMME DE LOGICIELS ADAPTÉE À CHAQUE STRUCTURE CULTURELLE"
  6. />
  7. <v-carousel
  8. ref="carousel"
  9. v-model="activeIndex"
  10. :show-arrows="false"
  11. :class="smAndDown ? 'carousel-sm' : 'carousel'"
  12. :hide-delimiter-background="true"
  13. :show-delimiters="false"
  14. :touch="true"
  15. >
  16. <v-carousel-item v-for="(item, index) in carouselItems" :key="index">
  17. <v-row>
  18. <v-col cols="6">
  19. <v-row>
  20. <v-img v-if="!smAndDown" class="logo" :src="item.logo" />
  21. </v-row>
  22. <v-row class="align-start">
  23. <p v-html="item.description" class="description" style="text-align: justify;"></p>
  24. </v-row>
  25. <v-row class="align-start">
  26. <nuxt-link :to="item.link">
  27. <v-btn :class="item.buttonClass">
  28. En savoir plus
  29. <i
  30. class="fas fa-arrow-right"
  31. style="color: black; margin-left: 8px"
  32. ></i>
  33. </v-btn>
  34. </nuxt-link>
  35. </v-row>
  36. </v-col>
  37. <v-col cols="6">
  38. <v-row class="justify-end">
  39. <div
  40. class="background-rectangle"
  41. :style="{ backgroundColor: item.color }"
  42. />
  43. <v-card v-if="!smAndDown" class="card" elevation="5">
  44. <v-img
  45. class="profile-image"
  46. :src="item.avatar"
  47. alt="Profile Image"
  48. contain
  49. rounded
  50. />
  51. <v-card-text>
  52. <v-card-title class="name">
  53. {{ item.name }}
  54. <p class="school">
  55. {{ item.school }}
  56. </p>
  57. </v-card-title>
  58. <p class="status">
  59. {{ item.status }}
  60. </p>
  61. </v-card-text>
  62. </v-card>
  63. <v-img
  64. :src="item.image"
  65. :class="smAndDown ? 'image-sm' : 'image'"
  66. />
  67. </v-row>
  68. </v-col>
  69. </v-row>
  70. </v-carousel-item>
  71. <div class="custom-controls">
  72. <div
  73. v-for="(item, index) in carouselItems"
  74. :key="index"
  75. :class="{ 'active-control': index === activeIndex }"
  76. @click="changeSlide(index)"
  77. />
  78. </div>
  79. </v-carousel>
  80. </LayoutContainer>
  81. </template>
  82. <script setup>
  83. import { ref } from "vue";
  84. import { useDisplay } from "vuetify";
  85. const { smAndDown } = useDisplay();
  86. let activeIndex = ref(0);
  87. const changeSlide = (index) => {
  88. activeIndex.value = index;
  89. };
  90. const carouselItems = ref([
  91. {
  92. logo: "/images/logo/logiciels/School-noir.png",
  93. description:
  94. "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…",
  95. buttonClass: "btn-school",
  96. image: "/images/carousel/school/Fille_School.png",
  97. color: "rgba(32, 147, 190, 0.4)",
  98. link: "/opentalent_school",
  99. name: "Cindy Blanchard",
  100. school: "Conservatoire de Musique",
  101. status: "élève",
  102. avatar: "/images/carousel/school/avatar.png",
  103. },
  104. {
  105. logo: "/images/logo/logiciels/Artist-noir.png",
  106. description:
  107. "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.",
  108. buttonClass: "btn-artist",
  109. image: "/images/carousel/artist/musician.png",
  110. color: "rgba(250, 194, 10, 0.4)",
  111. link: "opentalent_artist",
  112. name: "Thierry Dupont ",
  113. school: "Orchestre d’harmonie",
  114. status: "Admin",
  115. avatar: "/images/carousel/artist/avatar.png",
  116. },
  117. {
  118. logo: "/images/logo/logiciels/Manager-noir.png",
  119. description:
  120. "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.",
  121. buttonClass: "btn-manager",
  122. image: "/images/carousel/manager/fédération.png",
  123. color: "rgba(216, 5, 11, 0.4)",
  124. link: "opentalent_manager",
  125. name: "Marie Voisin",
  126. school: "Réseau d'organisations culturelles ",
  127. status: "ADMIN",
  128. avatar: "/images/carousel/manager/avatar.png",
  129. },
  130. ]);
  131. </script>
  132. <style scoped>
  133. ::v-deep .v-carousel__controls {
  134. display: none;
  135. }
  136. /* ============= TITLE =============== */
  137. .title {
  138. font-size: 4rem;
  139. line-height: 3.5rem;
  140. letter-spacing: 1.1rem;
  141. margin-top: 2rem;
  142. margin-bottom: 2rem;
  143. }
  144. .subtitle {
  145. font-size: 1.5rem;
  146. line-height: 2rem;
  147. letter-spacing: 0.5rem;
  148. margin-bottom: 8rem;
  149. }
  150. /* ============= CARD =============== */
  151. .card {
  152. height: 20%;
  153. width: 27%;
  154. border-radius: 1rem;
  155. margin-top: 1rem;
  156. }
  157. .profile-image {
  158. width: 40%;
  159. margin: auto;
  160. height: 12vh;
  161. }
  162. .name {
  163. text-align: center;
  164. font-size: 1rem;
  165. white-space: normal;
  166. }
  167. .school,
  168. .status {
  169. text-align: center;
  170. white-space: normal;
  171. }
  172. .school {
  173. color: #888888;
  174. margin-top: -0.8rem;
  175. font-weight: normal !important;
  176. font-size: 0.8rem !important;
  177. margin-top: 0.2px;
  178. line-height: 1rem !important;
  179. }
  180. .status {
  181. text-transform: uppercase;
  182. font-weight: bold;
  183. color: black !;
  184. font-size: 100%;
  185. margin-top: 0.8rem;
  186. }
  187. /* ============= RECTANGLE =============== */
  188. .background-rectangle {
  189. position: absolute;
  190. width: 70%;
  191. height: 20rem;
  192. left: 72%;
  193. top: 50%;
  194. transform: translate(-50%, -50%);
  195. border-radius: 200px 0px 0px 15rem;
  196. z-index: -1;
  197. /* ============= LOGO =============== */
  198. }
  199. .logo {
  200. max-width: 25vw;
  201. height: 20vh;
  202. margin-top: 10px;
  203. margin-left: 4rem;
  204. }
  205. .description {
  206. text-align: left;
  207. margin-left: 7rem;
  208. width: 25vw;
  209. margin-bottom: 1rem;
  210. }
  211. /* ============= CAROUSEL =============== */
  212. .custom-controls {
  213. position: absolute;
  214. top: 50%;
  215. right: 1vw;
  216. transform: translateY(-50%);
  217. display: flex;
  218. flex-direction: column;
  219. gap: 1vh;
  220. }
  221. .image {
  222. height: 35rem;
  223. right: 5rem;
  224. }
  225. .custom-controls div {
  226. width: 0.6rem;
  227. height: 0.6rem;
  228. border-radius: 50%;
  229. background-color: grey;
  230. cursor: pointer;
  231. margin-bottom: 0.5rem;
  232. }
  233. .custom-controls .active-control {
  234. background-color: #000;
  235. margin-right: 2rem;
  236. }
  237. /* ============= BUTTON =============== */
  238. .btn-school {
  239. background: rgba(32, 147, 190, 0.4);
  240. }
  241. .btn-artist {
  242. background: rgba(250, 194, 10, 0.4);
  243. }
  244. .btn-manager {
  245. background: rgba(216, 5, 11, 0.4);
  246. }
  247. .btn-school,
  248. .btn-artist,
  249. .btn-manager {
  250. border-radius: 0.5rem;
  251. margin-left: 2vw;
  252. padding: 15px;
  253. gap: 9px;
  254. font-weight: 700;
  255. font-size: 0.7rem;
  256. line-height: 15px;
  257. width: 10rem;
  258. height: 2.5rem;
  259. margin-left: 7rem;
  260. }
  261. </style>