You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
660 B

  1. <template>
  2. <v-app dark>
  3. <h1 v-if="error.statusCode === 404">
  4. {{ pageNotFound }}
  5. </h1>
  6. <h1 v-else>
  7. {{ otherError }}
  8. </h1>
  9. <NuxtLink to="/">
  10. Home page
  11. </NuxtLink>
  12. </v-app>
  13. </template>
  14. <script>
  15. export default {
  16. layout: 'empty',
  17. props: {
  18. error: {
  19. type: Object,
  20. default: null
  21. }
  22. },
  23. head() {
  24. const title =
  25. this.error.statusCode === 404 ? this.pageNotFound : this.otherError
  26. return {
  27. title
  28. }
  29. },
  30. data() {
  31. return {
  32. pageNotFound: '404 Not Found',
  33. otherError: 'An error occurred'
  34. }
  35. }
  36. }
  37. </script>
  38. <style scoped>
  39. h1 {
  40. font-size: 20px;
  41. }
  42. </style>