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.

70 lines
1.7 KiB

2 years ago
  1. s
  2. <template>
  3. <v-app dark>
  4. <NavBar></NavBar>
  5. <v-main
  6. class="tw-bg-[#ffffff] tw-px-[30px] tw-mt-[60px] tw-mb-[242px] md:tw-px-[90px] md:tw-mt-[90px] md:tw-mb-[285px] xl:tw-px-[60px] xl:tw-mb-[319px]">
  7. <h1 v-if="error.statusCode === 404">
  8. <div class="xl:tw-grid xl:tw-grid-cols-2 xl:tw-items-center">
  9. <div class="xl:tw-ml-[60px]">
  10. <div class="t24 tw-text-[#ee9546] md:tw-text-[40px] md:tw-mb-[20px]">
  11. Ooops...
  12. </div>
  13. <div class="tw-body-1 tw-text-primary-1 tw-mb-[20px] md:tw-text-[40px]">
  14. Page Not Found
  15. </div>
  16. <div class="tw-body-5 tw-text-neutrals-500 tw-mb-[20px] md:tw-body-3">
  17. Sorry. the content youre looking for doesnt exist.<br />Either
  18. it was removed, or you mistyped the link.
  19. </div>
  20. </div>
  21. <img src="~/assets/svg/404_notFound.svg" class="tw-w-full xl:tw-pr-[60px]" />
  22. </div>
  23. </h1>
  24. <h1 v-else>
  25. {{ otherError }}
  26. </h1>
  27. </v-main>
  28. <Footer></Footer>
  29. </v-app>
  30. </template>
  31. <script>
  32. import NavBar from "../components/NavBar.vue";
  33. import Footer from "../components/Footer.vue";
  34. export default {
  35. name: "EmptyLayout",
  36. layout: "empty",
  37. components: {
  38. Footer,
  39. NavBar,
  40. },
  41. props: {
  42. error: {
  43. type: Object,
  44. default: null,
  45. },
  46. },
  47. data() {
  48. return {
  49. pageNotFound: "404 Not Found",
  50. otherError: "An error occurred",
  51. };
  52. },
  53. head() {
  54. const title =
  55. this.error.statusCode === 404 ? this.pageNotFound : this.otherError;
  56. return {
  57. title,
  58. };
  59. },
  60. };
  61. </script>
  62. <style scoped>
  63. h1 {
  64. font-size: 20px;
  65. }
  66. </style>