Presentation.vue 6.4 KB

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