Presentation.vue 5.2 KB

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