Caroussel.vue 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343
  1. <template>
  2. <LayoutContainer>
  3. <h1
  4. v-if="smAndDown"
  5. class="title-page"
  6. >
  7. Une <span class="color-solution">solution</span> adapatée à chaque
  8. structure culturelle
  9. </h1>
  10. <v-carousel
  11. ref="carousel"
  12. v-model="activeIndex"
  13. :show-arrows="false"
  14. :class="smAndDown ? 'carousel-sm' : 'carousel'"
  15. :hide-delimiter-background="true"
  16. :show-delimiters="false"
  17. :touch="true"
  18. :cycle="smAndDown ? true : false"
  19. >
  20. <v-carousel-item
  21. v-for="(item, index) in carouselItems"
  22. :key="index"
  23. >
  24. <v-row>
  25. <v-col :cols="smAndDown ? 12 : 6">
  26. <v-row :class="!smAndDown ? 'align-start' : ''">
  27. <v-img
  28. v-if="!smAndDown"
  29. class="logo-school"
  30. :src="item.logo"
  31. />
  32. </v-row>
  33. <v-row class="align-start">
  34. <p :class="smAndDown ? 'description-sm' : 'description'">
  35. {{ item.description }}
  36. </p>
  37. </v-row>
  38. <v-row class="align-start">
  39. <nuxt-link :to="item.link">
  40. <v-btn :class="item.buttonClass">
  41. En savoir plus
  42. </v-btn>
  43. </nuxt-link>
  44. </v-row>
  45. </v-col>
  46. <v-col :cols="smAndDown ? 12 : 6">
  47. <v-row class="justify-end">
  48. <div
  49. :class="
  50. smAndDown ? 'background-rectangle-sm' : 'background-rectangle'
  51. "
  52. :style="{ backgroundColor: item.color }"
  53. />
  54. <v-card
  55. v-if="!smAndDown"
  56. class="card"
  57. elevation="5"
  58. >
  59. <v-img
  60. class="profile-image"
  61. :src="item.avatar"
  62. alt="Profile Image"
  63. contain
  64. rounded
  65. />
  66. <v-card-text>
  67. <v-card-title class="name">
  68. {{ item.name }}
  69. </v-card-title>
  70. <p class="school">
  71. {{ item.school }}
  72. </p>
  73. <p class="status">
  74. {{ item.status }}
  75. </p>
  76. </v-card-text>
  77. </v-card>
  78. <v-img
  79. :src="item.image"
  80. :class="smAndDown ? 'image-sm' : 'image'"
  81. />
  82. </v-row>
  83. </v-col>
  84. </v-row>
  85. </v-carousel-item>
  86. <div class="custom-controls">
  87. <div
  88. v-for="(item, index) in carouselItems"
  89. :key="index"
  90. :class="{ 'active-control': index === activeIndex }"
  91. @click="changeSlide(index)"
  92. />
  93. </div>
  94. </v-carousel>
  95. </LayoutContainer>
  96. </template>
  97. <script setup>
  98. import { ref } from "vue";
  99. import { useDisplay } from "vuetify";
  100. const { smAndDown } = useDisplay();
  101. let activeIndex = ref(0);
  102. const changeSlide = (index) => {
  103. activeIndex.value = index;
  104. };
  105. const carouselItems = ref([
  106. {
  107. logo: "/images/carousel/school/school.png",
  108. description:
  109. "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...",
  110. buttonClass: "btn-school",
  111. image: "/images/carousel/school/Fille_School.png",
  112. color: "rgba(32, 147, 190, 0.4)",
  113. link: "/logiciels/school",
  114. name: "Cindy Blanchard",
  115. school: "Conservatoire d'Anemasse",
  116. status: "Eleve",
  117. avatar: "/images/carousel/school/avatar.png",
  118. },
  119. {
  120. logo: "/images/carousel/artist/artist.png",
  121. description:
  122. "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.",
  123. buttonClass: "btn-artist",
  124. image: "/images/carousel/artist/musician.png",
  125. color: "rgba(250, 194, 10, 0.4)",
  126. link: "/logiciels/artist",
  127. name: "Thierry Dupont ",
  128. school: "Orchestre d’harmonie de Cluse",
  129. status: "Admin",
  130. avatar: "/images/carousel/artist/avatar.png",
  131. },
  132. {
  133. logo: "/images/carousel/manager/manager.png",
  134. description:
  135. "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.",
  136. buttonClass: "btn-manager",
  137. image: "/images/carousel/manager/fédération.png",
  138. color: "rgba(216, 5, 11, 0.4)",
  139. link: "/logiciels/manager",
  140. name: "Marie Voisin",
  141. school: "Confédération Musicale de France",
  142. status: "ADMIN",
  143. avatar: "/images/carousel/manager/avatar.png",
  144. },
  145. ]);
  146. </script>
  147. <style scoped>
  148. ::v-deep .v-carousel__controls {
  149. display: none;
  150. }
  151. .color-solution {
  152. color: rgba(32, 147, 190, 0.9);
  153. }
  154. .title-page {
  155. font-family: "Barlow";
  156. font-style: normal;
  157. font-weight: bold;
  158. font-size: 2rem;
  159. line-height: 2.5rem;
  160. text-align: left;
  161. color: #000000;
  162. margin-bottom: 2rem;
  163. width: 25rem;
  164. }
  165. .card {
  166. height: 20%;
  167. width: 27%;
  168. border-radius: 1rem;
  169. margin-top: 1rem;
  170. }
  171. .profile-image {
  172. width: 40%;
  173. margin: auto;
  174. height: 12vh;
  175. }
  176. .name {
  177. text-align: center;
  178. font-size: 100%;
  179. font-weight: bold;
  180. margin-bottom: 1vh;
  181. font-family: "Barlow";
  182. font-style: normal;
  183. }
  184. .school,
  185. .status {
  186. text-align: center;
  187. font-size: 80%;
  188. color: #888888;
  189. margin-bottom: 1vh;
  190. }
  191. .background-rectangle {
  192. position: absolute;
  193. width: 70%;
  194. height: 20rem;
  195. left: 72%;
  196. top: 50%;
  197. transform: translate(-50%, -50%);
  198. border-radius: 200px 0px 0px 15rem;
  199. z-index: -1;
  200. }
  201. .background-rectangle-sm {
  202. position: absolute;
  203. width: 100%;
  204. height: 15rem;
  205. left: 72%;
  206. top: 50%;
  207. transform: translate(-50%, -50%);
  208. border-radius: 200px 0px 0px 15rem;
  209. z-index: -1;
  210. }
  211. .align-start {
  212. align-items: flex-start;
  213. }
  214. .carousel-sm {
  215. height: 44rem !important;
  216. margin-bottom: -14.3rem;
  217. margin-top: 2rem;
  218. }
  219. .carousel {
  220. margin-top: 1rem;
  221. height: 900% !important;
  222. margin-bottom: -2rem;
  223. }
  224. .logo-school {
  225. max-width: 35vw;
  226. height: 25vh;
  227. margin-top: 10px;
  228. margin-bottom: 2vh;
  229. }
  230. .image {
  231. height: 35rem;
  232. margin-top: 6rem;
  233. right: 20%;
  234. }
  235. .image-sm {
  236. height: 20rem;
  237. margin-top: 9rem;
  238. left: 10%;
  239. bottom: 10rem;
  240. }
  241. .description {
  242. text-align: left;
  243. margin-right: 9vw;
  244. margin-left: 7vw;
  245. width: 25vw;
  246. margin-bottom: 1rem;
  247. }
  248. .description-sm {
  249. margin-top: 1rem;
  250. width: 100%;
  251. text-align: left;
  252. margin-left: 1rem;
  253. margin-bottom: 1rem;
  254. }
  255. .custom-controls {
  256. position: absolute;
  257. top: 50%;
  258. right: 1vw;
  259. transform: translateY(-50%);
  260. display: flex;
  261. flex-direction: column;
  262. gap: 1vh;
  263. }
  264. .custom-controls div {
  265. width: 1vh;
  266. height: 1vh;
  267. border-radius: 50%;
  268. background-color: grey;
  269. cursor: pointer;
  270. }
  271. .custom-controls .active-control {
  272. background-color: #000;
  273. margin-right: 2rem;
  274. }
  275. .btn-school {
  276. background: rgba(32, 147, 190, 0.4);
  277. border-radius: 0.5rem;
  278. margin-left: 7vw;
  279. padding: 25px;
  280. gap: 9px;
  281. font-weight: 700;
  282. font-size: .9rem;
  283. line-height: 15px;
  284. width: 10rem;
  285. height: 4rem;
  286. font-family: "Barlow";
  287. font-style: normal;
  288. }
  289. .btn-artist {
  290. background: rgba(250, 194, 10, 0.4);
  291. border-radius: 0.5rem;
  292. margin-left: 7vw;
  293. padding: 25px;
  294. gap: 9px;
  295. font-weight: 700;
  296. font-size: .9rem;
  297. line-height: 15px;
  298. height: 4rem;
  299. font-family: "Barlow";
  300. font-style: normal;
  301. }
  302. .btn-manager {
  303. background: rgba(216, 5, 11, 0.4);
  304. border-radius: 0.5rem;
  305. margin-left: 7vw;
  306. padding: 25px;
  307. gap: 9px;
  308. font-weight: 700;
  309. font-size: .9rem;
  310. line-height: 15px;
  311. width: 10rem;
  312. height: 4rem;
  313. font-family: "Barlow";
  314. font-style: normal;
  315. }
  316. </style>