top-bar.html 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <div
  2. class="z-30 transition-colors top-0 bg-white border-b border-dotted border-blue-200"
  3. x-data="{ ...Components.popover(false) }"
  4. >
  5. <div
  6. class="absolute w-full h-1 bg-gradient-to-r from-blue-300 via-green-300 to-blue-100"
  7. ></div>
  8. {{ partial "announcement-banner" (dict "content" ` 🚨 Announcing
  9. <a href="https://vendure.io/" class="text-white font-medium underline"
  10. >Announcing Vendure v2<span aria-hidden="true">&rarr;</span></a
  11. >
  12. `) }}
  13. <div class="max-w-screen-2xl mx-auto px-4 py-4 sm:px-6 md:pr-10">
  14. <div class="flex justify-between items-center md:space-x-10">
  15. <div class="justify-start hidden md:flex">
  16. <div class="logo flex space-x-2 items-center">
  17. <a href="https://vendure.io" title="back to landing page">
  18. <img class="w-6" src="/logo.png" alt="Vendure logo"/>
  19. </a>
  20. <div class="text-xl mt-0">
  21. <span class="text-blue-500 font-wordmark font-bold">vendure</span>
  22. </div>
  23. </div>
  24. </div>
  25. <div class="flex justify-center items-center">
  26. <label for="search" class="sr-only">Search docs (ctrl + k)</label>
  27. <button id="searchInputTrigger"
  28. class="shadow-sm focus:ring-blue-500 focus:border-blue-500 border-gray-300 rounded-md px-1 py-1 md:border text-gray-400 flex text-sm gap-2">
  29. <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" class="w-5 h-5">
  30. <path fill-rule="evenodd" d="M9 3.5a5.5 5.5 0 100 11 5.5 5.5 0 000-11zM2 9a7 7 0 1112.452 4.391l3.328 3.329a.75.75 0 11-1.06 1.06l-3.329-3.328A7 7 0 012 9z" clip-rule="evenodd" />
  31. </svg>
  32. <span class="hidden md:block text-gray-500 pr-4 whitespace-nowrap">Search docs</span>
  33. <div class="hidden md:flex gap-0.5">
  34. <kbd class="uppercase bg-gray-100 border px-1 py-0.5 text-xs rounded tracking-tighter">ctrl</kbd>
  35. <kbd class="uppercase bg-gray-100 border px-1 py-0.5 text-xs rounded tracking-tighter">k</kbd>
  36. </div>
  37. </button>
  38. </div>
  39. <div class="flex-1">
  40. <ul role="menu" class="flex gap-4">
  41. <li><a class="px-2 py-1 rounded {{ if (eq .section "guides") }}text-white bg-blue-600{{ else }}text-gray-700{{ end}}" href="/guides/getting-started">Learn</a></li>
  42. <li><a class="px-2 py-1 rounded {{ if (eq .section "reference") }}text-white bg-blue-600{{ else }}text-gray-700{{ end}}" href="/reference/typescript-api/">Reference</a></li>
  43. <li><a class="px-2 py-1 rounded {{ if (eq .section "user-guide") }}text-white bg-blue-600{{ else }}text-gray-700{{ end}}" href="/user-guide/">Manual</a></li>
  44. </ul>
  45. </div>
  46. <div class="flex items-center space-x-4">
  47. <a href="https://vendure.io/community" target="_blank" title="Join our Discord community!">
  48. <img src="/logo/discord-logo.png" class="w-6 h-6" alt="Discord logo"/>
  49. </a>
  50. <a href="https://github.com/vendure-ecommerce/vendure" class="">
  51. <img
  52. class=""
  53. alt="GitHub star counter"
  54. src="https://img.shields.io/github/stars/vendure-ecommerce/vendure.svg?style=social"
  55. />
  56. </a>
  57. </div>
  58. </div>
  59. </div>
  60. </div>