error.vue 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <template>
  2. <div class="flex flex-col w-screen h-screen bg-background-100 text-foreground">
  3. <main class="flex-auto show flex justify-center items-center">
  4. <div class="w-[413px] h-full flex flex-col gap-3 items-center justify-center">
  5. <p class="font-bold text-4xl">
  6. Возникла ошибка
  7. </p>
  8. <p class="text-xl text-center">
  9. Не переживайте, мы уже знаем<br>о проблеме и решаем её 😊
  10. </p>
  11. <button
  12. class="mt-3 border-[1px] text-md px-10 border-primary hover:bg-primary hover:text-black rounded-xl flex gap-3 justify-center items-center duration-150"
  13. @click="router.push('/')"
  14. >
  15. Вернуться на главную
  16. </button>
  17. <p
  18. class="text-sm opacity-30"
  19. v-text="error"
  20. />
  21. </div>
  22. </main>
  23. </div>
  24. </template>
  25. <script setup lang="ts">
  26. import * as Sentry from "@sentry/nuxt";
  27. const router = useRouter()
  28. const error = useError()
  29. console.error(error.value)
  30. Sentry.captureException(error);
  31. definePageMeta({
  32. layout: 'none',
  33. })
  34. </script>