index.vue 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  1. <template>
  2. <PageMeta
  3. title="Olivier Massot - Fullstack developer"
  4. description=""
  5. />
  6. <div class="banner">
  7. <h1>
  8. {{ $t('Fullstack developer') }}
  9. </h1>
  10. <h2>
  11. {{ $t('x_years_experience', { years: XP_YEARS }) }}
  12. </h2>
  13. </div>
  14. <v-card class="introduction">
  15. <div>
  16. {{ $t('intro_short') }}
  17. </div>
  18. <div v-html="$t('intro_part_4')" />
  19. <v-expand-transition>
  20. <div v-if="showLongIntro" class="long-intro">
  21. <div>
  22. {{ $t('intro_part_1') }}
  23. </div>
  24. <div>
  25. {{ $t('intro_part_2') }}
  26. </div>
  27. <div>
  28. {{ $t('intro_part_3') }}
  29. </div>
  30. </div>
  31. </v-expand-transition>
  32. <v-btn
  33. size="small"
  34. variant="text"
  35. :prepend-icon="showLongIntro ? 'fas fa-caret-up' : 'fas fa-caret-down'"
  36. :height="36"
  37. @click="showLongIntro=!showLongIntro"
  38. >
  39. {{ showLongIntro ? $t('show_less') : $t('show_more') }}
  40. </v-btn>
  41. <h5 class="find-me-on">
  42. {{ $t('find_me_on')}}
  43. </h5>
  44. <div class="logos mt-2">
  45. <BannerLogo
  46. href="https://github.com/olinox14"
  47. :img="theme.global.name.value === 'light' ? '/images/logos/github_large_light.png' : '/images/logos/github_large_dark.png'"
  48. :alt="i18n.t('Find me on Github')"
  49. />
  50. <BannerLogo
  51. href="https://stackoverflow.com/users/4279120/olinox14"
  52. :img="theme.global.name.value === 'light' ? '/images/logos/stackoverflow.svg' : '/images/logos/stackoverflow-dark.svg'"
  53. :alt="i18n.t('Find me on Stackoverflow')"
  54. :height="30"
  55. />
  56. <BannerLogo
  57. href="https://www.linkedin.com/in/olivier-massot-60b87b181"
  58. img="/images/logos/linkedin.png"
  59. :alt="i18n.t('Find me on LinkedIn')"
  60. :height="22"
  61. />
  62. <BannerLogo
  63. href="https://www.codingame.com/profile/75dcc329745def530c02ddb4485f22235683081"
  64. img="/images/logos/codingame.svg"
  65. :alt="i18n.t('Find me on Codingame')"
  66. />
  67. </div>
  68. </v-card>
  69. <div class="content">
  70. <div class="badges">
  71. <h3>{{ $t("Competences") }}</h3>
  72. <BadgeSection />
  73. </div>
  74. <div class="cursus">
  75. <h3>{{ $t("Cursus") }}</h3>
  76. <Cursus />
  77. </div>
  78. </div>
  79. <div class="contact">
  80. <h3>{{ $t("Contact") }}</h3>
  81. <Contact />
  82. </div>
  83. </template>
  84. <script setup lang="ts">
  85. import { useTheme } from 'vuetify'
  86. import type { Ref } from '@vue/reactivity'
  87. import BadgeSection from '~/components/BadgeSection.vue'
  88. const i18n = useI18n()
  89. const theme = useTheme()
  90. const START_YEAR = 2011
  91. const CURRENT_YEAR = new Date().getFullYear();
  92. const XP_YEARS = CURRENT_YEAR - START_YEAR
  93. const showLongIntro: Ref<boolean> = ref(false)
  94. </script>
  95. <style scoped lang="scss">
  96. .banner {
  97. display: flex;
  98. flex-direction: column;
  99. justify-content: center;
  100. align-items: center;
  101. text-align: center;
  102. padding: 20px;
  103. color: rgb(var(--v-theme-on-background));
  104. h2 {
  105. margin: 18px 0 36px 0;
  106. border-bottom: none;
  107. }
  108. }
  109. .introduction {
  110. padding: 36px 64px;
  111. border-radius: 6px;
  112. text-align: justify;
  113. margin: 0 auto;
  114. width: 100%;
  115. @media (max-width: 600px) {
  116. padding: 36px 10%;
  117. }
  118. :deep(a) {
  119. color: rgb(var(--v-theme-on-primary--clickable));
  120. }
  121. div {
  122. max-width: 900px;
  123. margin: 0 auto 16px auto;
  124. }
  125. .v-btn {
  126. width: 100%;
  127. margin: 2px auto 16px auto;
  128. }
  129. :deep(a) {
  130. font-weight: 900;
  131. text-decoration: none;
  132. padding: 3px 1px;
  133. }
  134. .find-me-on {
  135. margin: 16px auto 0 auto;
  136. text-transform: uppercase;
  137. text-align: center;
  138. font-size: 12px;
  139. font-weight: 400;
  140. }
  141. .logos {
  142. display: flex;
  143. flex-direction: row;
  144. max-width: 600px;
  145. margin: 0 auto;
  146. justify-content: center;
  147. align-items: center;
  148. @media (max-width: 540px) {
  149. flex-direction: column;
  150. }
  151. }
  152. }
  153. h3 {
  154. margin: 12px 0 24px 0;
  155. }
  156. .content {
  157. display: flex;
  158. flex-direction: row;
  159. justify-content: space-around;
  160. .badges {
  161. max-width: 65%;
  162. min-width: 65%;
  163. }
  164. .cursus {
  165. max-width: 35%;
  166. min-width: 35%;
  167. padding: 24px;
  168. }
  169. @media (max-width: 1280px) {
  170. flex-direction: column;
  171. .badges {
  172. max-width: 100%;
  173. }
  174. .cursus {
  175. max-width: 100%;
  176. }
  177. }
  178. }
  179. .badges {
  180. padding: 18px;
  181. }
  182. </style>