Presentation.vue 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267
  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 { computed } from "vue";
  71. import { useRoute } from "vue-router";
  72. const route = useRoute();
  73. const pricingAmount = computed(() => {
  74. if (/^\/opentalent_artist(\/|$)/.test(route.path)) {
  75. return "20€";
  76. } else if (/^\/opentalent_school(\/|$)/.test(route.path)) {
  77. return "14€";
  78. }else {
  79. return "Sur devis";
  80. }
  81. });
  82. const logoSrc = computed(() => {
  83. if (/^\/opentalent_artist(\/|$)/.test(route.path)) {
  84. return "/images/logo/logiciels/OT_Artist-BLANC.png";
  85. } else if (/^\/opentalent_school(\/|$)/.test(route.path)) {
  86. return "/images/logo/logiciels/OT_School-blanc.png";
  87. } else if (/^\/opentalent_manager(\/|$)/.test(route.path)) {
  88. return "/images/logo/logiciels/OT_Manager-BLANC.png";
  89. }
  90. });
  91. const titleText = computed(() => {
  92. if (/^\/opentalent_artist(\/|$)/.test(route.path)) {
  93. return "Présentation d'Opentalent Artist";
  94. } else if (/^\/opentalent_school(\/|$)/.test(route.path)) {
  95. return "Présentation d'Opentalent School";
  96. } else if (/^\/opentalent_manager(\/|$)/.test(route.path)) {
  97. return "Présentation d'Opentalent Manager";
  98. } else {
  99. return "Titre par défaut";
  100. }
  101. });
  102. const iconColor = computed(() => {
  103. if (/^\/opentalent_artist(\/|$)/.test(route.path)) {
  104. return "#fac20a";
  105. } else if (/^\/opentalent_school(\/|$)/.test(route.path)) {
  106. return "rgba(32, 147, 190, 0.6)";
  107. } else if (/^\/opentalent_manager(\/|$)/.test(route.path)) {
  108. return "#d8050b";
  109. } else {
  110. return "rgba(32, 147, 190, 0.6)";
  111. }
  112. });
  113. const props = defineProps({
  114. pictoImages: {
  115. type: Array,
  116. default: () => [],
  117. },
  118. pictoColor: {
  119. type: String,
  120. default: "#000000",
  121. },
  122. presentationText: {
  123. type: Object,
  124. default: () => ({
  125. toolTitle: "Default Title",
  126. toolList: [],
  127. characteristicsTitle: "Default Characteristics Title",
  128. }),
  129. },
  130. logoSrc: {
  131. type: String,
  132. default: "",
  133. },
  134. pricingFromText: {
  135. type: String,
  136. },
  137. pricingAmount: {
  138. type: String,
  139. default: "sur devis",
  140. },
  141. pricingPeriodText: {
  142. type: String,
  143. },
  144. pricingAnnouncementText: {
  145. type: String,
  146. },
  147. backgroundColor: {
  148. type: String,
  149. default: "rgba(32, 147, 190, 0.2)",
  150. },
  151. circleColor: {
  152. type: String,
  153. default: "#091d20",
  154. },
  155. });
  156. </script>
  157. <style scoped>
  158. .picto-img {
  159. width: 200px;
  160. height: 200px;
  161. background-size: contain;
  162. background-repeat: no-repeat;
  163. background-position: center;
  164. }
  165. .presentation-caracteristique {
  166. color: #071b1f;
  167. font-size: 34px;
  168. font-style: normal;
  169. font-weight: 400;
  170. line-height: 38px;
  171. }
  172. .pricing-details {
  173. display: flex;
  174. flex-direction: column;
  175. justify-content: center;
  176. align-items: center;
  177. height: 100%;
  178. color: black;
  179. font-weight: 500;
  180. font-size: 1rem;
  181. margin-left: 7rem;
  182. margin-top: -4rem;
  183. width: 10rem;
  184. }
  185. .pricing-small-text {
  186. font-size: 0.6em;
  187. }
  188. .pricing-big-text {
  189. font-size: 2.5rem;
  190. font-weight: bold;
  191. line-height: 2rem;
  192. margin-left: 1rem;
  193. }
  194. .smaller-text {
  195. font-size: 0.6em;
  196. }
  197. .black-circle {
  198. border-radius: 3rem;
  199. background: #091d20;
  200. width: 7rem;
  201. height: 6rem;
  202. }
  203. .logo-manager {
  204. top: 0.2rem;
  205. z-index: 5;
  206. }
  207. .rectangle-4 {
  208. width: 20rem;
  209. height: 6rem;
  210. background: rgba(32, 147, 190, 0.2);
  211. border-radius: 3rem;
  212. margin-left: 5rem;
  213. margin-top: 2rem;
  214. }
  215. .picto-text {
  216. font-weight: 300;
  217. font-size: 0.9rem;
  218. margin-top: -3rem;
  219. text-align: center;
  220. width: 50%;
  221. margin-right: auto;
  222. margin-left: auto;
  223. }
  224. .picto-container {
  225. display: flex;
  226. flex-direction: row;
  227. }
  228. .picto-group {
  229. display: flex;
  230. flex-direction: column;
  231. align-items: center;
  232. margin-left: -4rem;
  233. }
  234. .outil-list {
  235. margin-left: 1rem;
  236. font-weight: 300;
  237. font-size: 1rem;
  238. line-height: 1.5rem;
  239. }
  240. .picto-container {
  241. display: flex;
  242. flex-direction: row;
  243. }
  244. .screen-img {
  245. margin-top: 2rem;
  246. margin-left: 3rem;
  247. }
  248. </style>