Presentation.vue 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278
  1. <template>
  2. <div id="Presentation">
  3. <LayoutContainer>
  4. <v-row class="mt-12">
  5. <v-col cols="6" md="4">
  6. <LayoutUISubTitle
  7. :iconSize="6"
  8. :iconColor="iconColor"
  9. :titleText="titleText"
  10. />
  11. <v-img src="/images/logiciels/school/screen.jpg" class="screen-img" />
  12. <div :style="{ backgroundColor: backgroundColor }" class="rectangle-4">
  13. <div :style="{ backgroundColor: circleColor }" class="black-circle">
  14. <div class="content-flex">
  15. <v-img
  16. :src="logoSrc"
  17. class="logo-manager"
  18. />
  19. <div class="pricing-details">
  20. <p class="pricing-small-text">{{ pricingFromText }}</p>
  21. <p class="pricing-big-text">
  22. {{ pricingAmount }} <span class="smaller-text">{{ pricingPeriodText }}</span>
  23. </p>
  24. <p class="pricing-small-text">{{ pricingAnnouncementText }}</p>
  25. </div>
  26. </div>
  27. </div>
  28. </div>
  29. </v-col>
  30. <v-col cols="6" md="7" v-if="!mdAndDown">
  31. <LayoutUITitle :title="presentationText.toolTitle" />
  32. <ul class="outil-ul ml-12">
  33. <li class="outil-list" v-for="item in presentationText.toolList" :key="item">
  34. {{ item }}
  35. </li>
  36. </ul>
  37. <div>
  38. <h2 class="mt-12 ml-12">{{ presentationText.characteristicsTitle }}</h2>
  39. <div class="picto-container ml-12 mr-12">
  40. <div class="picto-group" v-for="picto in pictoImages" :key="picto.text">
  41. <v-img :src="picto.src" class="picto-img" />
  42. <p class="picto-text" :style="{ color: pictoColor }">{{ picto.text }}</p>
  43. </div>
  44. </div>
  45. </div>
  46. </v-col>
  47. </v-row>
  48. </LayoutContainer>
  49. </div>
  50. </template>
  51. <script setup>
  52. import { computed, onMounted, ref } from 'vue';
  53. import { useRoute } from 'vue-router';
  54. const props = defineProps({
  55. pictoImages: {
  56. type: Array,
  57. default: () => []
  58. },
  59. pictoColor: {
  60. type: String,
  61. default: '#000000'
  62. },
  63. presentationText: {
  64. type: Object,
  65. default: () => ({
  66. toolTitle: 'Default Title',
  67. toolList: [],
  68. characteristicsTitle: 'Default Characteristics Title'
  69. })
  70. },
  71. // Ajouter de nouvelles props ici
  72. logoSrc: {
  73. type: String,
  74. default: '/images/logo_school_white.png'
  75. },
  76. pricingFromText: {
  77. type: String,
  78. default: 'à partir de'
  79. },
  80. pricingAmount: {
  81. type: String,
  82. default: '32,90€'
  83. },
  84. pricingPeriodText: {
  85. type: String,
  86. default: '/mois'
  87. },
  88. pricingAnnouncementText: {
  89. type: String,
  90. default: 'payable annuellement'
  91. },
  92. backgroundColor: {
  93. type: String,
  94. default: 'rgba(32, 147, 190, 0.2)'
  95. },
  96. circleColor: {
  97. type: String,
  98. default: '#091d20'
  99. }
  100. });
  101. const titleText = ref(''); // Use a ref to hold the title text
  102. const iconColor = ref(''); // Use a ref to hold the icon class
  103. // Access the current route
  104. const route = useRoute();
  105. // A computed function to set titleText and iconClasses based on route
  106. onMounted(() => {
  107. if (route.path.includes('opentalent_artist')) {
  108. titleText.value = "Présentation d'Opentalent Artist";
  109. iconColor.value = '#fac20a'; // replace 'icon-yellow' with actual class if different
  110. } else if (route.path.includes('opentalent_school')) {
  111. titleText.value = "Présentation d'Opentalent School";
  112. iconColor.value = 'rgba(32, 147, 190, 0.6)'; // replace 'icon-blue' with actual class if different
  113. }
  114. });
  115. </script>
  116. <style scoped>
  117. .pricing-details {
  118. display: flex;
  119. flex-direction: column;
  120. justify-content: center;
  121. align-items: center;
  122. height: 100%;
  123. color: black;
  124. font-weight: 500;
  125. font-size: 1rem;
  126. margin-left: 7rem;
  127. margin-top: -1.5rem;
  128. width: 10rem;
  129. }
  130. .pricing-small-text {
  131. font-size: 0.6em;
  132. }
  133. .pricing-big-text {
  134. font-size: 1.6em;
  135. font-weight: bold;
  136. }
  137. .smaller-text {
  138. font-size: 0.6em;
  139. }
  140. .presentation-title {
  141. color: #071b1f;
  142. font-family: Barlow;
  143. font-size: 1rem;
  144. font-style: normal;
  145. font-weight: 600;
  146. line-height: 15px;
  147. letter-spacing: 1.8px;
  148. text-transform: uppercase;
  149. }
  150. .black-circle {
  151. border-radius: 3rem;
  152. background: #091d20;
  153. width: 7rem;
  154. height: 6rem;
  155. }
  156. .devis {
  157. font-weight: 500;
  158. font-size: 1rem;
  159. margin-left: 9rem;
  160. margin-top: -1rem;
  161. width: 7rem;
  162. }
  163. .logo-manager {
  164. top: 1.2rem;
  165. z-index: 1;
  166. }
  167. .rectangle-4 {
  168. width: 18rem;
  169. height: 6rem;
  170. background: rgba(32, 147, 190, 0.2);
  171. border-radius: 3rem;
  172. margin-left: 5rem;
  173. margin-top: 2rem;
  174. }
  175. .picto-text {
  176. font-weight: 300;
  177. font-size: 0.9rem;
  178. margin-top: -3rem;
  179. text-align: center;
  180. margin-right: 2rem;
  181. margin-left: 2rem;
  182. }
  183. .picto-container {
  184. display: flex;
  185. flex-direction: row;
  186. justify-content: space-around;
  187. }
  188. .picto-group {
  189. display: flex;
  190. flex-direction: column;
  191. align-items: center;
  192. /** on colle */
  193. margin-left: 1rem;
  194. margin-right: 1rem;
  195. }
  196. .icon-title {
  197. margin-right: 0.7rem;
  198. color: rgba(32, 147, 190, 0.6);
  199. }
  200. .text-square {
  201. margin-left: 2rem;
  202. margin-right: 2rem;
  203. margin-top: 0.9rem;
  204. text-align: center;
  205. }
  206. .icon {
  207. margin-top: 1rem;
  208. }
  209. .outil-title {
  210. font-weight: 600;
  211. font-size: 2.2rem;
  212. line-height: 18px;
  213. color: #091d20;
  214. margin-bottom: 4rem;
  215. }
  216. .outil-ul {
  217. font-family: "Barlow";
  218. margin-left: 1rem;
  219. font-weight: 300;
  220. font-size: 1rem;
  221. line-height: 1.5rem;
  222. }
  223. .icon-logiciel {
  224. color: rgba(32, 147, 190, 0.6);
  225. margin-right: 1rem;
  226. }
  227. .container-green {
  228. background: linear-gradient(180deg, rgba(14, 45, 50, 0) 26.84%, #0e2d32 100%),
  229. rgba(7, 27, 31, 0.3);
  230. height: 40rem;
  231. }
  232. .picto-container {
  233. display: flex;
  234. flex-direction: row;
  235. }
  236. .picto-img {
  237. width: 14rem;
  238. height: 14rem;
  239. }
  240. .title {
  241. display: flex;
  242. justify-content: center;
  243. align-items: center;
  244. font-weight: 600;
  245. font-size: 1.5rem;
  246. line-height: 18px;
  247. color: #091d20;
  248. width: 25rem;
  249. margin-left: 2rem;
  250. }
  251. .screen-img {
  252. margin-top: 2rem;
  253. margin-left: 3rem;
  254. }
  255. </style>