MainLayout.vue 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. <template>
  2. <q-layout view="hHh lpR fFf">
  3. <q-header height-hint="76" reveal class="bg-white text-black">
  4. <q-toolbar class="GPL__toolbar" style="height: 76px">
  5. <div class="row">
  6. <div class="col-sm-12 col-xs-12 q-ml-xl q-mr-lg">
  7. <q-toolbar-title>
  8. <img
  9. @click="$router.push('/home')"
  10. class="cursor-pointer float-left"
  11. src="~/assets/hichinalogo.png"
  12. />
  13. </q-toolbar-title>
  14. </div>
  15. </div>
  16. <q-btn flat no-caps no-wrap class="q-ml-xl" v-if="$q.screen.gt.xs">
  17. GuideBooks
  18. </q-btn>
  19. <q-btn flat no-caps no-wrap class="q-ml-sm" v-if="$q.screen.gt.xs">
  20. Blogs/Vlogs
  21. </q-btn>
  22. <q-btn flat no-caps no-wrap class="q-ml-sm" v-if="$q.screen.gt.xs">
  23. Travel Shop
  24. </q-btn>
  25. <q-btn flat no-caps no-wrap class="q-ml-sm" v-if="$q.screen.gt.xs">
  26. Destinations
  27. </q-btn>
  28. <!-- this is the trick -->
  29. <q-space />
  30. <div class="row">
  31. <q-btn flat dense color="primary" label="Register" class="q-mr-lg" />
  32. <q-btn flat dense color="primary" label="Login" class="q-mr-sm" />
  33. </div>
  34. </q-toolbar>
  35. </q-header>
  36. <q-page-container>
  37. <router-view />
  38. </q-page-container>
  39. <q-footer reveal bordered class="bg-grey-8 text-white">
  40. <q-toolbar>
  41. <q-toolbar-title>
  42. <q-avatar>
  43. <img src="https://cdn.quasar.dev/logo-v2/svg/logo-mono-white.svg" />
  44. </q-avatar>
  45. <div>Title</div>
  46. </q-toolbar-title>
  47. </q-toolbar>
  48. </q-footer>
  49. </q-layout>
  50. </template>
  51. <script>
  52. import { defineComponent, ref } from "vue";
  53. const linksList = [
  54. {
  55. title: "Docs",
  56. caption: "quasar.dev",
  57. icon: "school",
  58. link: "https://quasar.dev",
  59. },
  60. {
  61. title: "Github",
  62. caption: "github.com/quasarframework",
  63. icon: "code",
  64. link: "https://github.com/quasarframework",
  65. },
  66. {
  67. title: "Discord Chat Channel",
  68. caption: "chat.quasar.dev",
  69. icon: "chat",
  70. link: "https://chat.quasar.dev",
  71. },
  72. {
  73. title: "Forum",
  74. caption: "forum.quasar.dev",
  75. icon: "record_voice_over",
  76. link: "https://forum.quasar.dev",
  77. },
  78. {
  79. title: "Twitter",
  80. caption: "@quasarframework",
  81. icon: "rss_feed",
  82. link: "https://twitter.quasar.dev",
  83. },
  84. {
  85. title: "Facebook",
  86. caption: "@QuasarFramework",
  87. icon: "public",
  88. link: "https://facebook.quasar.dev",
  89. },
  90. {
  91. title: "Quasar Awesome",
  92. caption: "Community Quasar projects",
  93. icon: "favorite",
  94. link: "https://awesome.quasar.dev",
  95. },
  96. ];
  97. export default defineComponent({
  98. name: "MainLayout",
  99. components: {},
  100. setup() {
  101. const leftDrawerOpen = ref(false);
  102. return {
  103. essentialLinks: linksList,
  104. leftDrawerOpen,
  105. toggleLeftDrawer() {
  106. leftDrawerOpen.value = !leftDrawerOpen.value;
  107. },
  108. };
  109. },
  110. });
  111. </script>
  112. <style lang="sass">
  113. .GPL
  114. &__toolbar
  115. height: 64px
  116. &__toolbar-input
  117. width: 35%
  118. &__drawer-item
  119. line-height: 24px
  120. border-radius: 0 24px 24px 0
  121. margin-right: 12px
  122. .q-item__section--avatar
  123. padding-left: 12px
  124. .q-icon
  125. color: #5f6368
  126. .q-item__label:not(.q-item__label--caption)
  127. color: #3c4043
  128. letter-spacing: .01785714em
  129. font-size: .875rem
  130. font-weight: 500
  131. line-height: 1.25rem
  132. &--storage
  133. border-radius: 0
  134. margin-right: 0
  135. padding-top: 24px
  136. padding-bottom: 24px
  137. &__side-btn
  138. &__label
  139. font-size: 12px
  140. line-height: 24px
  141. letter-spacing: .01785714em
  142. font-weight: 500
  143. @media (min-width: 1024px)
  144. &__page-container
  145. padding-left: 94px
  146. </style>