Banner.vue 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <template>
  2. <LayoutContainer>
  3. <div class="container-title">
  4. <v-col cols="12">
  5. <h1 class="formation">Formation</h1>
  6. <h4 class="subtitle-formation">
  7. Prise en main ou piqûre de rappel, on est toujours à vos côtés.
  8. </h4>
  9. </v-col>
  10. </div>
  11. <v-row>
  12. <v-col cols="12">
  13. <img
  14. src="/images/formation/banner.jpg"
  15. alt="line"
  16. class="cover-image"
  17. />
  18. </v-col>
  19. </v-row>
  20. <v-row>
  21. <v-col cols="12" class="menu-container">
  22. <div v-for="menu in menus" :key="menu.label">
  23. <v-chip v-if="state.activeMenu === menu.label" class="active-menu">{{
  24. menu.label
  25. }}</v-chip>
  26. <span v-else>{{ menu.label }}</span>
  27. </div>
  28. </v-col>
  29. </v-row>
  30. </LayoutContainer>
  31. </template>
  32. <script setup>
  33. const state = ref({
  34. activeMenu: "Présentation",
  35. });
  36. const menus = [
  37. { label: "Présentation" },
  38. { label: "catalogue" },
  39. { label: "FINANCEMENT" },
  40. { label: "CERTIFICATION" },
  41. { label: "INSCRIPTION" },
  42. { label: "ÉVALUATION" },
  43. ];
  44. </script>
  45. <style scoped>
  46. .subtitle-formation {
  47. font-family: "Barlow";
  48. font-style: normal;
  49. font-weight: 600;
  50. font-size: 30px;
  51. line-height: 35px;
  52. text-align: center;
  53. color: #000000;
  54. margin-left: 34rem;
  55. margin-right: 34rem;
  56. }
  57. .formation {
  58. font-family: "Barlow";
  59. font-style: normal;
  60. font-weight: 600;
  61. font-size: 90px;
  62. line-height: 85px;
  63. text-align: center;
  64. color: #000000;
  65. margin-bottom: 1rem;
  66. }
  67. .container-title {
  68. display: flex;
  69. flex-direction: row;
  70. justify-content: space-around;
  71. border-bottom: 0.1rem solid #eaeaea;
  72. }
  73. .menu-container {
  74. display: flex;
  75. justify-content: space-around;
  76. padding: 1rem 10rem;
  77. background: white;
  78. color: #bbb8b8;
  79. font-family: "Barlow";
  80. font-size: 12px;
  81. line-height: 16px;
  82. display: flex;
  83. align-items: center;
  84. text-align: center;
  85. letter-spacing: 0.18em;
  86. text-transform: uppercase;
  87. border-bottom: 0.1rem solid #eaeaea;
  88. }
  89. .v-chip.active-menu {
  90. background: black;
  91. color: white;
  92. }
  93. .cover-image {
  94. width: 100%;
  95. height: 35rem;
  96. object-fit: cover;
  97. object-position: center 10%;
  98. margin: 0 auto;
  99. transform: scaleX(-1);
  100. }
  101. </style>