Presentation.vue 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283
  1. <!--
  2. Section "Présentation" d'une page Logiciel
  3. -->
  4. <template>
  5. <LayoutContainer>
  6. <v-row class="center-90">
  7. <!-- Colonne 1 (sous-titre, illustration logiciels, prix) -->
  8. <v-col cols="12" lg="5">
  9. <LayoutUISubTitle class="ml-8" >
  10. {{ title }}
  11. </LayoutUISubTitle>
  12. <v-img
  13. src="/images/components/presentation/Opentalent-disponible-su-Multi-support.png"
  14. alt="Ordinateur de bureau, ordinateur portable tablette et smartphone montrant le logiciel Opentalent"
  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. :alt="logoAlt"
  23. class="software-logo"
  24. />
  25. </div>
  26. </div>
  27. <div v-if="pricingAmount" class="details">
  28. <p class="small-text">
  29. {{ pricingFromText }}
  30. </p>
  31. <p class="big-text">
  32. {{ pricingAmount }}
  33. <span class="smaller-text">
  34. {{ pricingPeriodText }}
  35. </span>
  36. </p>
  37. <p class="small-text">
  38. {{ pricingAnnouncementText }}
  39. </p>
  40. </div>
  41. <div v-else class="details medium-text">
  42. {{ pricingAltText }}
  43. </div>
  44. </div>
  45. </v-col>
  46. <!-- Colonne 2 (présentation, pictogrammes des fonctionnalités) -->
  47. <v-col cols="12" lg="6">
  48. <h3>
  49. {{ section1title }}
  50. </h3>
  51. <ul class="ml-12 mt-6">
  52. <li
  53. v-for="item in features"
  54. :key="item"
  55. >
  56. {{ item }}
  57. </li>
  58. </ul>
  59. <h3 class="mt-12 ml-6">
  60. {{ section2title }}
  61. </h3>
  62. <div class="picto-container">
  63. <div
  64. v-for="picto in pictos"
  65. :key="picto.text"
  66. class="picto"
  67. >
  68. <v-img :src="picto.src" class="img" />
  69. <p class="text">
  70. {{ picto.text }}
  71. </p>
  72. </div>
  73. </div>
  74. </v-col>
  75. </v-row>
  76. </LayoutContainer>
  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. logoAlt: {
  110. type: String,
  111. default: "",
  112. },
  113. pricingFromText: {
  114. type: String,
  115. required: false,
  116. default: "à partir de"
  117. },
  118. pricingAmount: {
  119. type: String,
  120. default: ""
  121. },
  122. pricingPeriodText: {
  123. type: String,
  124. required: false,
  125. default: "/ mois"
  126. },
  127. pricingAnnouncementText: {
  128. type: String,
  129. required: false,
  130. default: "payable annuellement"
  131. },
  132. pricingAltText: {
  133. required: false,
  134. default: ""
  135. }
  136. });
  137. </script>
  138. <style scoped lang="scss">
  139. .pricing-rectangle {
  140. display: flex;
  141. flex-direction: row;
  142. background-color: var(--secondary-color);
  143. width: 380px;
  144. height: 6rem;
  145. border-radius: 3rem;
  146. margin-top: 2rem;
  147. .logo-circle {
  148. background-color: #0e2d32;
  149. border-radius: 3rem;
  150. width: 7rem;
  151. height: 6rem;
  152. }
  153. .software-logo {
  154. display: flex;
  155. align-items: center;
  156. justify-content: center;
  157. top:1rem;
  158. right: .5rem;
  159. }
  160. .details {
  161. display: flex;
  162. flex-direction: column;
  163. justify-content: center;
  164. align-items: center;
  165. height: 100%;
  166. color: var(--on-neutral-color);
  167. font-weight: 500;
  168. font-size: 1rem;
  169. width: 10rem;
  170. margin-left: 18px;
  171. }
  172. .small-text {
  173. font-size: 0.6em;
  174. }
  175. .big-text {
  176. font-size: 2.5rem;
  177. font-weight: bold;
  178. line-height: 2rem;
  179. margin-left: 0.8rem;
  180. }
  181. .smaller-text {
  182. font-size: 0.6em;
  183. }
  184. .medium-text {
  185. font-size: 1.5rem;
  186. font-weight: 400;
  187. }
  188. @media (max-width: 600px) {
  189. width: 280px;
  190. .details {
  191. margin-left: 0;
  192. }
  193. }
  194. }
  195. .picto-container {
  196. display: flex;
  197. flex-direction: row;
  198. flex-wrap: nowrap;
  199. @media (max-width: 1240px) {
  200. flex-wrap: wrap;
  201. justify-content: center;
  202. }
  203. }
  204. .picto {
  205. display: flex;
  206. flex-direction: column;
  207. align-items: center;
  208. margin-left: -4rem;
  209. .text {
  210. font-weight: 300;
  211. font-size: 0.9rem;
  212. margin-top: -3rem;
  213. text-align: center;
  214. width: 60%;
  215. margin-right: auto;
  216. margin-left: auto;
  217. }
  218. .img {
  219. width: 200px;
  220. height: 200px;
  221. background-size: contain;
  222. background-repeat: no-repeat;
  223. background-position: center;
  224. }
  225. @media (max-width: 600px) {
  226. width: 50%;
  227. margin: 0 auto;
  228. .text {
  229. width: 90%;
  230. }
  231. .img {
  232. width: 100%;
  233. height: 100%;
  234. }
  235. }
  236. }
  237. h3 {
  238. color: var(--on-primary-color);
  239. font-size: 34px;
  240. font-weight: 400;
  241. line-height: 38px;
  242. max-width: 90%;
  243. }
  244. h3:first-child {
  245. font-weight: 600;
  246. font-size: 3rem;
  247. line-height: 3rem;
  248. margin-left: 1rem;
  249. width: 35rem;
  250. }
  251. </style>