default.vue 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <template>
  2. <v-app dark>
  3. <v-app-bar app flat class="topBar fly-in-from-top"
  4. :class="$vuetify.breakpoint.mobile ? 'ma-4' : 'my-4 mx-auto'"
  5. >
  6. <v-tabs centered center-active color="primary" router show-arrows>
  7. <v-tab v-for="link in links" :key="link.path" :to="link.path">
  8. {{ link.name }}
  9. </v-tab>
  10. </v-tabs>
  11. </v-app-bar>
  12. <v-img src="/ui/abstract.svg" style="position: absolute; left: 0; right: 0; width: 100%; height: 100%;" />
  13. <v-main class="pt-4">
  14. <section class="hidden-chrome-scrollbar" style="height: calc(100vh - 1rem); padding-top: 5rem; padding-bottom: 5rem; overflow-y: auto;">
  15. <center
  16. class="hidden-chrome-scrollbar mx-auto d-flex flex-column justify-center items-center"
  17. style="width: 90vw; min-height: 100%; overflow-y: auto;">
  18. <nuxt />
  19. </center>
  20. </section>
  21. </v-main>
  22. </v-app>
  23. </template>
  24. <style>
  25. html, body {
  26. overflow: hidden;
  27. }
  28. .mainAltButton {
  29. margin: 0.25em;
  30. }
  31. .hidden-chrome-scrollbar::-webkit-scrollbar {
  32. display: none;
  33. }
  34. .topBar {
  35. background-color: #222 !important;
  36. border-radius: 12px;
  37. width: fit-content !important;
  38. padding: 0 50px;
  39. border-radius: 1rem !important;
  40. overflow: hidden;
  41. }
  42. .fly-in-from-top {
  43. opacity: 0;
  44. transform: scale(0.8) translateY(-200%);
  45. animation: fly-in-from-top 0.5s .3s ease forwards;
  46. }
  47. @keyframes fly-in-from-top {
  48. 0% {
  49. opacity: 0;
  50. transform: scale(0.8) translateY(-200%);
  51. }
  52. 100% {
  53. opacity: 1;
  54. transform: scale(1) translateY(0);
  55. }
  56. }
  57. @media (min-width: 1670px) {
  58. .WhyCelesteHead {
  59. width: 1234px;
  60. }
  61. }
  62. </style>
  63. <script>
  64. export default {
  65. data: () => ({
  66. links: [
  67. {
  68. name: 'Home',
  69. path: '/'
  70. },
  71. {
  72. name: 'Install',
  73. path: '/install'
  74. },
  75. {
  76. name: 'FAQ',
  77. path: '/faq'
  78. },
  79. {
  80. name: 'Donate',
  81. path: '/donate'
  82. },
  83. {
  84. name: 'Links',
  85. path: '/links'
  86. },
  87. ],
  88. }),
  89. }
  90. </script>