Agenda.vue 6.6 KB

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