error.vue.off 714 B

1234567891011121314151617181920212223242526272829303132
  1. <template>
  2. <main>
  3. <div v-if="error">
  4. <CommonErrorNotFound v-if="error.statusCode === 404" />
  5. <div v-else>
  6. Une erreur inconnue s'est produite, veuillez nous excuser pour la gêne
  7. occasionnée.
  8. </div>
  9. </div>
  10. <nuxt-link to="/">
  11. <v-btn class="ot-button"> Retour </v-btn>
  12. </nuxt-link>
  13. </main>
  14. </template>
  15. <script setup lang="ts">
  16. import type { NuxtError } from '#app'
  17. const error: Ref<NuxtError | null | undefined> = useError()
  18. </script>
  19. <style lang="scss">
  20. .ot-button {
  21. border-radius: 6px;
  22. height: 48px;
  23. font-size: 0.8rem;
  24. font-weight: 300;
  25. background: var(--secondary-color) !important;
  26. color: var(--on-neutral-color) !important;
  27. }
  28. </style>