Footer.vue 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <script setup lang="ts">
  2. /* Set project details. */
  3. const { projectid, projectName } = await $fetch('/api/v1/project')
  4. </script>
  5. <template>
  6. <footer class="mt-20 py-5 max-w-7xl mx-auto">
  7. <div class="inset-0 flex items-center" aria-hidden="true">
  8. <div class="w-full border-t border-gray-300"></div>
  9. </div>
  10. <div class="-mt-5 relative flex justify-center">
  11. <span class="bg-white px-3 text-gray-500">
  12. <img src="~/assets/icon.png" class="w-8 h-8" />
  13. </span>
  14. </div>
  15. <section class="mt-5 px-3 flex justify-between">
  16. <span class="text-sm text-gray-400">
  17. &copy; {{new Date().getFullYear()}} {{projectName}} - MIT License
  18. </span>
  19. <div class="flex flex-row items-center gap-2">
  20. <NuxtLink to="/admin" class="text-sm text-blue-400 font-medium hover:underline">
  21. Admin
  22. </NuxtLink>
  23. <svg class="w-5 h-5 text-gray-400" fill="none" stroke="currentColor" stroke-width="1.5" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
  24. <path stroke-linecap="round" stroke-linejoin="round" d="M12 3v2.25m6.364.386l-1.591 1.591M21 12h-2.25m-.386 6.364l-1.591-1.591M12 18.75V21m-4.773-4.227l-1.591 1.591M5.25 12H3m4.227-4.773L5.636 5.636M15.75 12a3.75 3.75 0 11-7.5 0 3.75 3.75 0 017.5 0z"></path>
  25. </svg>
  26. <svg class="w-5 h-5 text-gray-400" fill="none" stroke="currentColor" stroke-width="1.5" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
  27. <path stroke-linecap="round" stroke-linejoin="round" d="M10.5 21l5.25-11.25L21 21m-9-3h7.5M3 5.621a48.474 48.474 0 016-.371m0 0c1.12 0 2.233.038 3.334.114M9 5.25V3m3.334 2.364C11.176 10.658 7.69 15.08 3 17.502m9.334-12.138c.896.061 1.785.147 2.666.257m-4.589 8.495a18.023 18.023 0 01-3.827-5.802"></path>
  28. </svg>
  29. <svg class="w-5 h-5 text-gray-400" fill="none" stroke="currentColor" stroke-width="1.5" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
  30. <path stroke-linecap="round" stroke-linejoin="round" d="M12.75 19.5v-.75a7.5 7.5 0 00-7.5-7.5H4.5m0-6.75h.75c7.87 0 14.25 6.38 14.25 14.25v.75M6 18.75a.75.75 0 11-1.5 0 .75.75 0 011.5 0z"></path>
  31. </svg>
  32. </div>
  33. </section>
  34. </footer>
  35. </template>