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.

37 lines
845 B

2 years ago
2 years ago
2 years ago
4 years ago
2 years ago
4 years ago
2 years ago
  1. <template>
  2. <v-app dark>
  3. <v-container fill-height style="height: calc(100vh - 58px)">
  4. <v-layout align-center>
  5. <v-flex text-center>
  6. <h1 class="display-2 primary--text">Whoops, 404</h1>
  7. <p>The page you were looking for does not exist</p>
  8. <v-btn to="/" outlined color="primary"> Get me out of here! </v-btn>
  9. </v-flex>
  10. </v-layout>
  11. </v-container>
  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. data() {
  24. return {
  25. pageNotFound: '404 Not Found',
  26. otherError: "The page you were looking for wasn't allowed to access."
  27. }
  28. },
  29. head() {
  30. const title = this.error.statusCode === 404 ? this.pageNotFound : this.otherError
  31. return {
  32. title
  33. }
  34. }
  35. }
  36. </script>