Header.vue 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. <script setup lang="ts">
  2. </script>
  3. <template>
  4. <header>
  5. <div class="relative bg-white">
  6. <div class="mx-auto flex max-w-7xl items-center justify-between px-4 py-6 sm:px-6 md:justify-start md:space-x-10 lg:px-12">
  7. <div class="flex justify-start lg:w-0 lg:flex-1">
  8. <NuxtLink to="/">
  9. <span class="sr-only">Nexa Games</span>
  10. <img class="h-12 w-auto sm:h-14" src="~/assets/icon.png" alt="" />
  11. </NuxtLink>
  12. </div>
  13. <div class="-my-2 -mr-2 md:hidden">
  14. <button
  15. type="button"
  16. class="inline-flex items-center justify-center rounded-md bg-white p-2 text-gray-400 hover:bg-gray-100 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-indigo-500"
  17. aria-expanded="false"
  18. >
  19. <span class="sr-only">Open menu</span>
  20. <!-- Heroicon name: outline/bars-3 -->
  21. <svg class="h-10 w-10" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true">
  22. <path stroke-linecap="round" stroke-linejoin="round" d="M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5" />
  23. </svg>
  24. </button>
  25. </div>
  26. <nav class="hidden space-x-10 md:flex">
  27. <NuxtLink to="/players" class="text-base font-medium text-gray-500 hover:text-gray-900">
  28. Players
  29. </NuxtLink>
  30. <NuxtLink to="/bankers" class="text-base font-medium text-gray-500 hover:text-gray-900">
  31. Bankers
  32. </NuxtLink>
  33. <NuxtLink to="/makers" class="text-base font-medium text-gray-500 hover:text-gray-900">
  34. Gamemakers
  35. </NuxtLink>
  36. <NuxtLink to="/fairplay" class="text-base font-medium text-gray-500 hover:text-gray-900">
  37. Fairplay
  38. </NuxtLink>
  39. </nav>
  40. <div class="hidden items-center justify-end md:flex md:flex-1 lg:w-0">
  41. <NuxtLink
  42. to="/gallery"
  43. class="ml-8 inline-flex items-center justify-center whitespace-nowrap rounded-md border border-transparent bg-gradient-to-r from-purple-600 to-indigo-600 bg-origin-border px-4 py-2 text-base font-medium text-white shadow-sm hover:from-purple-700 hover:to-indigo-700"
  44. >
  45. Browse the Games
  46. </NuxtLink>
  47. </div>
  48. </div>
  49. <!--
  50. Mobile menu, show/hide based on mobile menu state.
  51. Entering: "duration-200 ease-out"
  52. From: "opacity-0 scale-95"
  53. To: "opacity-100 scale-100"
  54. Leaving: "duration-100 ease-in"
  55. From: "opacity-100 scale-100"
  56. To: "opacity-0 scale-95"
  57. -->
  58. <div class="hidden absolute inset-x-0 top-0 z-30 origin-top-right transform p-2 transition md:hidden">
  59. <div class="divide-y-2 divide-gray-50 rounded-lg bg-white shadow-lg ring-1 ring-black ring-opacity-5">
  60. <div class="px-5 pt-5 pb-6">
  61. <div class="flex items-center justify-between">
  62. <div>
  63. <img class="h-8 w-auto" src="https://tailwindui.com/img/logos/mark.svg?from-color=purple&from-shade=600&to-color=indigo&to-shade=600&toShade=600" alt="Your Company" />
  64. </div>
  65. <div class="-mr-2">
  66. <button
  67. type="button"
  68. class="inline-flex items-center justify-center rounded-md bg-white p-2 text-gray-400 hover:bg-gray-100 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-indigo-500"
  69. >
  70. <span class="sr-only">Close menu</span>
  71. <!-- Heroicon name: outline/x-mark -->
  72. <svg class="h-6 w-6" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true">
  73. <path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12" />
  74. </svg>
  75. </button>
  76. </div>
  77. </div>
  78. <div class="mt-6">
  79. <nav class="grid grid-cols-1 gap-7">
  80. <a href="javascript://" class="-m-3 flex items-center rounded-lg p-3 hover:bg-gray-50">
  81. <div class="flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-md bg-gradient-to-r from-purple-600 to-indigo-600 text-white">
  82. <!-- Heroicon name: outline/inbox -->
  83. <svg class="h-6 w-6" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true">
  84. <path
  85. stroke-linecap="round"
  86. stroke-linejoin="round"
  87. d="M2.25 13.5h3.86a2.25 2.25 0 012.012 1.244l.256.512a2.25 2.25 0 002.013 1.244h3.218a2.25 2.25 0 002.013-1.244l.256-.512a2.25 2.25 0 012.013-1.244h3.859m-19.5.338V18a2.25 2.25 0 002.25 2.25h15A2.25 2.25 0 0021.75 18v-4.162c0-.224-.034-.447-.1-.661L19.24 5.338a2.25 2.25 0 00-2.15-1.588H6.911a2.25 2.25 0 00-2.15 1.588L2.35 13.177a2.25 2.25 0 00-.1.661z"
  88. />
  89. </svg>
  90. </div>
  91. <div class="ml-4 text-base font-medium text-gray-900">Inbox</div>
  92. </a>
  93. <a href="javascript://" class="-m-3 flex items-center rounded-lg p-3 hover:bg-gray-50">
  94. <div class="flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-md bg-gradient-to-r from-purple-600 to-indigo-600 text-white">
  95. <!-- Heroicon name: outline/chat-bubble-bottom-center-text -->
  96. <svg class="h-6 w-6" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true">
  97. <path
  98. stroke-linecap="round"
  99. stroke-linejoin="round"
  100. d="M7.5 8.25h9m-9 3H12m-9.75 1.51c0 1.6 1.123 2.994 2.707 3.227 1.129.166 2.27.293 3.423.379.35.026.67.21.865.501L12 21l2.755-4.133a1.14 1.14 0 01.865-.501 48.172 48.172 0 003.423-.379c1.584-.233 2.707-1.626 2.707-3.228V6.741c0-1.602-1.123-2.995-2.707-3.228A48.394 48.394 0 0012 3c-2.392 0-4.744.175-7.043.513C3.373 3.746 2.25 5.14 2.25 6.741v6.018z"
  101. />
  102. </svg>
  103. </div>
  104. <div class="ml-4 text-base font-medium text-gray-900">Messaging</div>
  105. </a>
  106. <a href="javascript://" class="-m-3 flex items-center rounded-lg p-3 hover:bg-gray-50">
  107. <div class="flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-md bg-gradient-to-r from-purple-600 to-indigo-600 text-white">
  108. <!-- Heroicon name: outline/chat-bubble-left-right -->
  109. <svg class="h-6 w-6" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true">
  110. <path
  111. stroke-linecap="round"
  112. stroke-linejoin="round"
  113. d="M20.25 8.511c.884.284 1.5 1.128 1.5 2.097v4.286c0 1.136-.847 2.1-1.98 2.193-.34.027-.68.052-1.02.072v3.091l-3-3c-1.354 0-2.694-.055-4.02-.163a2.115 2.115 0 01-.825-.242m9.345-8.334a2.126 2.126 0 00-.476-.095 48.64 48.64 0 00-8.048 0c-1.131.094-1.976 1.057-1.976 2.192v4.286c0 .837.46 1.58 1.155 1.951m9.345-8.334V6.637c0-1.621-1.152-3.026-2.76-3.235A48.455 48.455 0 0011.25 3c-2.115 0-4.198.137-6.24.402-1.608.209-2.76 1.614-2.76 3.235v6.226c0 1.621 1.152 3.026 2.76 3.235.577.075 1.157.14 1.74.194V21l4.155-4.155"
  114. />
  115. </svg>
  116. </div>
  117. <div class="ml-4 text-base font-medium text-gray-900">Live Chat</div>
  118. </a>
  119. <a href="javascript://" class="-m-3 flex items-center rounded-lg p-3 hover:bg-gray-50">
  120. <div class="flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-md bg-gradient-to-r from-purple-600 to-indigo-600 text-white">
  121. <!-- Heroicon name: outline/question-mark-circle -->
  122. <svg class="h-6 w-6" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true">
  123. <path
  124. stroke-linecap="round"
  125. stroke-linejoin="round"
  126. d="M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9 5.25h.008v.008H12v-.008z"
  127. />
  128. </svg>
  129. </div>
  130. <div class="ml-4 text-base font-medium text-gray-900">Knowledge Base</div>
  131. </a>
  132. </nav>
  133. </div>
  134. </div>
  135. <div class="py-6 px-5">
  136. <div class="grid grid-cols-2 gap-4">
  137. <NuxtLink to="/players" class="text-base font-medium text-gray-900 hover:text-gray-700">
  138. Players
  139. </NuxtLink>
  140. <NuxtLink to="/bankers" class="text-base font-medium text-gray-900 hover:text-gray-700">
  141. Bankers
  142. </NuxtLink>
  143. <NuxtLink to="/fairplay" class="text-base font-medium text-gray-900 hover:text-gray-700">
  144. Fairplay
  145. </NuxtLink>
  146. </div>
  147. <div class="mt-6">
  148. <a
  149. href="javascript://"
  150. class="flex w-full items-center justify-center rounded-md border border-transparent bg-gradient-to-r from-purple-600 to-indigo-600 bg-origin-border px-4 py-2 text-base font-medium text-white shadow-sm hover:from-purple-700 hover:to-indigo-700"
  151. >
  152. Sign up
  153. </a>
  154. <p class="mt-6 text-center text-base font-medium text-gray-500">
  155. Existing customer?
  156. <a href="javascript://" class="text-gray-900">Sign in</a>
  157. </p>
  158. </div>
  159. </div>
  160. </div>
  161. </div>
  162. </div>
  163. </header>
  164. </template>