NotFoundView.vue 1008 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <template>
  2. <div class="not-found-view">
  3. <div class="not-found-container">
  4. <div class="not-found-content">
  5. <h1>404</h1>
  6. <h2>Page Not Found</h2>
  7. <div class="actions">
  8. <button class = "button good" @click="goToHome">
  9. Go to Home
  10. </button>
  11. <button class="button neutral" @click="goBack">
  12. Go Back
  13. </button>
  14. </div>
  15. </div>
  16. </div>
  17. </div>
  18. </template>
  19. <script>
  20. export default {
  21. name: 'NotFoundView',
  22. methods: {
  23. goBack() {
  24. this.$router.go(-1)
  25. },
  26. goToHome() {
  27. this.$router.push('/')
  28. }
  29. }
  30. }
  31. </script>
  32. <style scoped>
  33. .not-found-content {
  34. padding: 3rem 2rem;
  35. text-align: center;
  36. }
  37. .not-found-content h1 {
  38. font-size: 6rem;
  39. margin: 0;
  40. font-weight: 700;
  41. line-height: 1;
  42. }
  43. .not-found-content h2 {
  44. font-size: 2rem;
  45. margin: 0 0 1rem 0;
  46. color: #333;
  47. }
  48. .not-found-content p {
  49. font-size: 1.1rem;
  50. color: #666;
  51. margin-bottom: 2rem;
  52. }
  53. </style>