Presentation.vue 5.7 KB

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