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.

49 lines
963 B

4 years ago
  1. <template>
  2. <v-app dark>
  3. <v-container
  4. fill-height
  5. style="height: calc(100vh - 58px);"
  6. >
  7. <v-layout align-center>
  8. <v-flex text-center>
  9. <h1 class="display-2 primary--text">
  10. Whoops, 404
  11. </h1>
  12. <p>The page you were looking for does not exist</p>
  13. <v-btn
  14. to="/"
  15. outlined
  16. color="primary"
  17. >
  18. Get me out of here!
  19. </v-btn>
  20. </v-flex>
  21. </v-layout>
  22. </v-container>
  23. </v-app>
  24. </template>
  25. <script>
  26. export default {
  27. layout: 'empty',
  28. props: {
  29. error: {
  30. type: Object,
  31. default: null
  32. }
  33. },
  34. data() {
  35. return {
  36. pageNotFound: '404 Not Found',
  37. otherError: 'The page you were looking for wasn\'t allowed to access.'
  38. }
  39. },
  40. head() {
  41. const title =
  42. this.error.statusCode === 404 ? this.pageNotFound : this.otherError
  43. return {
  44. title
  45. }
  46. }
  47. }
  48. </script>