Caroussel.vue 7.3 KB

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