Presentation.vue 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  1. <!--
  2. Section "Présentation" d'une page Logiciel
  3. -->
  4. <template>
  5. <div id="Presentation">
  6. <LayoutContainer>
  7. <v-row>
  8. <!-- Colonne 1 (sous-titre, illustration logiciels, prix) -->
  9. <v-col cols="5">
  10. <LayoutUISubTitle class="ml-8" >
  11. {{ title }}
  12. </LayoutUISubTitle>
  13. <v-img
  14. src="/images/logiciels/Opentalent-disponible-su-Multi-support.png"
  15. class="w-100"
  16. />
  17. <div class="pricing-rectangle rectangle-4 ml-6">
  18. <div class="logo-circle">
  19. <div class="content-flex ml-6">
  20. <v-img
  21. :src="logoSrc"
  22. class="software-logo"
  23. />
  24. </div>
  25. </div>
  26. <div v-if="pricingAmount" class="details">
  27. <p class="small-text">
  28. {{ pricingFromText }}
  29. </p>
  30. <p class="big-text">
  31. {{ pricingAmount }}
  32. <span class="smaller-text">
  33. {{ pricingPeriodText }}
  34. </span>
  35. </p>
  36. <p class="small-text">
  37. {{ pricingAnnouncementText }}
  38. </p>
  39. </div>
  40. <div v-else class="details medium-text">
  41. {{ pricingAltText }}
  42. </div>
  43. </div>
  44. </v-col>
  45. <!-- Colonne 2 (présentation, pictogrammes des fonctionnalités) -->
  46. <v-col cols="6">
  47. <h3>
  48. {{ section1title }}
  49. </h3>
  50. <ul class="ml-12 mt-6">
  51. <li
  52. v-for="item in features"
  53. :key="item"
  54. >
  55. {{ item }}
  56. </li>
  57. </ul>
  58. <h3 class="mt-12 ml-6">
  59. {{ section2title }}
  60. </h3>
  61. <div class="d-flex flex-row">
  62. <div
  63. v-for="picto in pictos"
  64. :key="picto.text"
  65. class="picto"
  66. >
  67. <v-img :src="picto.src" class="img" />
  68. <p class="text">
  69. {{ picto.text }}
  70. </p>
  71. </div>
  72. </div>
  73. </v-col>
  74. </v-row>
  75. </LayoutContainer>
  76. </div>
  77. </template>
  78. <script setup lang="ts">
  79. import type { PropType } from "@vue/runtime-core";
  80. import type { FeaturePicto } from "~/types/interface";
  81. const route = useRoute();
  82. const props = defineProps({
  83. title: {
  84. type: String,
  85. required: true
  86. },
  87. section1title: {
  88. type: String,
  89. required: false,
  90. default: "Un outil complet en ligne"
  91. },
  92. section2title: {
  93. type: String,
  94. required: false,
  95. default: "Des caractéristiques uniques & dédiée"
  96. },
  97. features: {
  98. type: Object as PropType<Array<string>>,
  99. required: true
  100. },
  101. pictos: {
  102. type: Array as PropType<Array<FeaturePicto>>,
  103. required: true
  104. },
  105. logoSrc: {
  106. type: String,
  107. default: "",
  108. },
  109. pricingFromText: {
  110. type: String,
  111. required: false,
  112. default: "à partir de"
  113. },
  114. pricingAmount: {
  115. type: String,
  116. default: ""
  117. },
  118. pricingPeriodText: {
  119. type: String,
  120. required: false,
  121. default: "mois"
  122. },
  123. pricingAnnouncementText: {
  124. type: String,
  125. required: false,
  126. default: "payable annuellement"
  127. },
  128. pricingAltText: {
  129. required: false,
  130. default: ""
  131. }
  132. });
  133. </script>
  134. <style scoped lang="scss">
  135. .v-row {
  136. width: 90%;
  137. margin-left: auto;
  138. margin-right: auto;
  139. }
  140. .pricing-rectangle {
  141. display: flex;
  142. flex-direction: row;
  143. background-color: var(--secondary-color);
  144. width: 380px;
  145. height: 6rem;
  146. border-radius: 3rem;
  147. margin-top: 2rem;
  148. .logo-circle {
  149. background-color: var(--on-primary-color);
  150. border-radius: 3rem;
  151. width: 7rem;
  152. height: 6rem;
  153. }
  154. .software-logo {
  155. display: flex;
  156. align-items: center;
  157. justify-content: center;
  158. top:1rem;
  159. right: .5rem;
  160. }
  161. .details {
  162. display: flex;
  163. flex-direction: column;
  164. justify-content: center;
  165. align-items: center;
  166. height: 100%;
  167. color: black;
  168. font-weight: 500;
  169. font-size: 1rem;
  170. width: 10rem;
  171. margin-left: 18px;
  172. }
  173. .small-text {
  174. font-size: 0.6em;
  175. }
  176. .big-text {
  177. font-size: 2.5rem;
  178. font-weight: bold;
  179. line-height: 2rem;
  180. margin-left: 1rem;
  181. }
  182. .smaller-text {
  183. font-size: 0.6em;
  184. }
  185. .medium-text {
  186. font-size: 1.5rem;
  187. font-weight: 400;
  188. }
  189. }
  190. .picto {
  191. display: flex;
  192. flex-direction: column;
  193. align-items: center;
  194. margin-left: -4rem;
  195. .text {
  196. font-weight: 300;
  197. font-size: 0.9rem;
  198. margin-top: -3rem;
  199. text-align: center;
  200. width: 60%;
  201. margin-right: auto;
  202. margin-left: auto;
  203. }
  204. .img {
  205. width: 200px;
  206. height: 200px;
  207. background-size: contain;
  208. background-repeat: no-repeat;
  209. background-position: center;
  210. }
  211. }
  212. h3 {
  213. color: var(--on-primary-color);
  214. font-size: 34px;
  215. font-style: normal;
  216. font-weight: 400;
  217. line-height: 38px;
  218. }
  219. h3:first-child {
  220. font-weight: 600;
  221. font-size: 3rem;
  222. line-height: 3rem;
  223. margin-left: 1rem;
  224. width: 35rem;
  225. }
  226. </style>