Agenda.vue 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316
  1. <template>
  2. <div id="L'agenda opentalent">
  3. <LayoutContainer>
  4. <v-row class="custom-row">
  5. <v-col cols="4">
  6. <h2 class="title">L'agenda Opentalent</h2>
  7. </v-col>
  8. <v-col cols="4">
  9. <div class="d-flex justify-center align-center">
  10. <div class="carousel-button" @click="goPrevious">
  11. <i class="fas fa-chevron-left" />
  12. </div>
  13. <div class="carousel-button" @click="goNext">
  14. <i class="fas fa-chevron-right" />
  15. </div>
  16. </div>
  17. </v-col>
  18. <v-col cols="4">
  19. <v-btn class="btn-news" text> VOIR TOUS LES EVENEMENTS </v-btn>
  20. </v-col>
  21. </v-row>
  22. <v-row class="custom-row">
  23. <p class="agenda-details">
  24. Retrouvez tous les évènements culturels autour de chez vous.
  25. </p>
  26. </v-row>
  27. <v-row class="custom-row">
  28. <v-col cols="12">
  29. <Carousel ref="carousel" :items-to-show="3" :items-to-scroll="2">
  30. <Slide
  31. v-for="(event, eventIndex) in events"
  32. :key="eventIndex"
  33. class="slide-card"
  34. >
  35. <div class="card">
  36. <img
  37. class="card-img-top"
  38. :src="event.img"
  39. alt="Card image cap"
  40. />
  41. <div class="card-body">
  42. <small class="card-rdv">{{ event.rdv }}</small>
  43. <h5 class="card-title">
  44. {{ event.title }}
  45. </h5>
  46. <p class="card-localisation">
  47. {{ event.localisation }}
  48. </p>
  49. </div>
  50. <div class="card-footer">
  51. <v-chip-group active-class="primary--text" column>
  52. <v-chip
  53. v-for="(tag, tagIndex) in event.tags"
  54. :key="tagIndex"
  55. class="ma-2 chip-custom"
  56. :color="tagColor(tag)"
  57. label
  58. >
  59. <span :class="tagTextColor(tag)">{{ tag }}</span>
  60. </v-chip>
  61. </v-chip-group>
  62. </div>
  63. </div>
  64. </Slide>
  65. </Carousel>
  66. </v-col>
  67. </v-row>
  68. </LayoutContainer>
  69. </div>
  70. </template>
  71. <script setup>
  72. import { ref } from "vue";
  73. import { Carousel, Slide } from "vue3-carousel";
  74. import "vue3-carousel/dist/carousel.css";
  75. const tagColor = (tag) => {
  76. switch (tag) {
  77. case "Payant":
  78. return "red";
  79. case "Gratuit":
  80. return "green";
  81. default:
  82. return "primary";
  83. }
  84. };
  85. const tagTextColor = (tag) => {
  86. switch (tag) {
  87. case "Payant":
  88. return "red--text";
  89. case "Gratuit":
  90. return "green--text";
  91. default:
  92. return "black--text";
  93. }
  94. };
  95. const events = ref([
  96. {
  97. rdv: "20h00",
  98. title: "LA NUIT DES RÊVES ",
  99. localisation: "FESTIVALDE musique - LONGCHAMP",
  100. date: "21/06/2023",
  101. img: "/images/agenda/agenda2.jpg",
  102. tags: ["Festival", "Musique", "Tout public", "Payant"],
  103. },
  104. {
  105. rdv: "20h00",
  106. title: "LE LAC DES CYGNES",
  107. localisation: "SPECTACLE DE DANSE - PARIS 1",
  108. date: "22/06/2023",
  109. img: "/images/agenda/agenda3.jpg",
  110. tags: ["Festival", "Musique", "Tout public", "Gratuit"],
  111. },
  112. {
  113. rdv: "20h00",
  114. title: "SOLIDAYS 2023 : 23 > 25 juin",
  115. localisation: "ORCHESTRE DE PARIS - PARIS 12",
  116. date: "23/06/2023",
  117. img: "/images/agenda/agenda4.jpg",
  118. tags: ["Festival", "Musique", "Tout public", "Payant"],
  119. },
  120. {
  121. rdv: "20h00",
  122. title: "LE LAC DES CYGNES",
  123. localisation: "FESTIVALDE musique - LONGCHAMP",
  124. date: "24/06/2023",
  125. img: "/images/agenda/agenda5.jpg",
  126. tags: ["Festival", "Musique", "Tout public", "Payant"],
  127. },
  128. {
  129. rdv: "20h00",
  130. title: "SOLIDAYS 2023 : 23 > 25 juin ",
  131. localisation: "SPECTACLE DE DANSE - PARIS 1",
  132. date: "20/06/2023",
  133. img: "/images/agenda/agenda1.jpg",
  134. tags: ["Festival", "Musique", "Tout public", "Payant"],
  135. },
  136. ]);
  137. let carousel;
  138. const goPrevious = () => carousel.prev();
  139. const goNext = () => carousel.next();
  140. </script>
  141. <style scoped>
  142. .green--text {
  143. color: green;
  144. }
  145. .custom-row {
  146. width: 90%;
  147. margin-left: auto;
  148. margin-right: auto;
  149. }
  150. .red--text {
  151. color: red;
  152. }
  153. .black--text {
  154. color: black;
  155. }
  156. .btn-news {
  157. color: #9edbdd;
  158. border-radius: 2rem;
  159. font-family: "Barlow";
  160. background: transparent;
  161. border: 1px solid #9edbdd;
  162. border-radius: 6px;
  163. font-style: normal;
  164. font-weight: 600;
  165. text-transform: uppercase;
  166. display: flex;
  167. flex-direction: row;
  168. align-items: center;
  169. padding: 25px;
  170. font-size: 10px;
  171. line-height: 15px;
  172. }
  173. .chip-detail {
  174. color: #000000;
  175. }
  176. .chip-custom {
  177. color: white;
  178. border: 1px solid #0e2d32;
  179. border-radius: 3rem;
  180. text-transform: uppercase;
  181. font-family: "Barlow";
  182. font-style: normal;
  183. display: flex;
  184. align-items: center;
  185. text-align: center;
  186. }
  187. .card-localisation {
  188. letter-spacing: 0.18em;
  189. text-transform: uppercase;
  190. font-size: 10px;
  191. color: #112528;
  192. }
  193. .card {
  194. border-radius: 15px 15px 0 0;
  195. margin-bottom: 2rem;
  196. width: 90%;
  197. }
  198. .icon-title {
  199. color: #64afb7;
  200. margin-top: 4.5rem;
  201. }
  202. .container-title {
  203. display: flex;
  204. align-items: center;
  205. margin-left: 2rem;
  206. margin-top: 4.5rem;
  207. }
  208. .carousel-button i {
  209. color: #000000;
  210. }
  211. .card-text {
  212. mily: "Barlow";
  213. font-style: normal;
  214. font-weight: 500;
  215. font-size: 16px;
  216. line-height: 18px;
  217. margin-bottom: 1rem;
  218. color: #091d20;
  219. }
  220. .card-title {
  221. font-family: "Barlow";
  222. font-style: normal;
  223. font-weight: 500;
  224. font-size: 20px;
  225. line-height: 24px;
  226. display: flex;
  227. align-items: center;
  228. letter-spacing: 0.18em;
  229. text-transform: uppercase;
  230. }
  231. .card-date {
  232. font-size: 0.8em;
  233. color: #888;
  234. margin-left: 1rem;
  235. }
  236. .card-footer {
  237. display: flex;
  238. justify-content: space-between;
  239. align-items: center;
  240. margin-left: 4rem;
  241. }
  242. .card-body {
  243. text-align: left;
  244. margin-bottom: 1rem;
  245. margin-left: 5rem;
  246. font-family: "Barlow";
  247. font-style: normal;
  248. font-weight: 500;
  249. line-height: 24px;
  250. color: #112528;
  251. }
  252. .card-img-top {
  253. border-radius: 9px 9px 0 0;
  254. max-width: 400px;
  255. min-width: 400px;
  256. min-height: 300px;
  257. max-height: 300px;
  258. object-fit: cover;
  259. object-position: center;
  260. }
  261. .title,
  262. .carousel-button,
  263. .btn-news {
  264. margin-top: 2rem;
  265. margin-bottom: 2rem;
  266. }
  267. .agenda-details {
  268. font-family: "Barlow";
  269. font-style: normal;
  270. font-weight: 300;
  271. font-size: 16px;
  272. line-height: 20px;
  273. margin-left: 2rem;
  274. color: #091d20;
  275. margin-bottom: 3rem;
  276. width: 15rem;
  277. }
  278. .title {
  279. font-family: "Barlow";
  280. font-style: normal;
  281. font-weight: 600;
  282. font-size: 42px;
  283. line-height: 42px;
  284. margin-left: 2rem;
  285. color: #071b1f;
  286. }
  287. .carousel-button {
  288. display: flex;
  289. justify-content: center;
  290. align-items: center;
  291. width: 40px;
  292. height: 40px;
  293. background-color: transparent;
  294. border: 2px solid #000000;
  295. cursor: pointer;
  296. margin-right: 1rem;
  297. }
  298. </style>