index.vue 5.0 KB

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