NotFoundView.vue 1.0 KB

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