index.vue 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <script setup lang="ts">
  2. import { getTip } from '@nexajs/rostrum'
  3. import numeral from 'numeral'
  4. definePageMeta({
  5. layout: 'fullscreen',
  6. })
  7. const blockHeight = ref(0)
  8. const init = async () => {
  9. const currentTip = await getTip()
  10. console.log('CURRENT TIP', currentTip)
  11. blockHeight.value = numeral(currentTip.height).format('0,0')
  12. }
  13. onMounted(() => {
  14. console.log('Mounted!')
  15. init()
  16. })
  17. // onBeforeUnmount(() => {
  18. // console.log('Before Unmount!')
  19. // // Now is the time to perform all cleanup operations.
  20. // })
  21. </script>
  22. <template>
  23. <main class="w-screen h-screen flex flex-col bg-gradient-to-r from-lime-200 to-lime-100">
  24. <div class="h-full flex flex-col justify-center pb-32 items-center gap-5 sm:gap-8">
  25. <NuxtLink to="/security">
  26. <img src="~/assets/icon.png" class="w-24 sm:w-32 lg:w-40" />
  27. </NuxtLink>
  28. <h1 class="text-4xl sm:text-6xl lg:text-8xl text-lime-800 font-light italic">
  29. Hush Your Money
  30. </h1>
  31. <h1 class="text-2xl sm:text-4xl lg:text-5xl text-lime-600 font-light italic">
  32. Spend Privately. Fearlessly!
  33. </h1>
  34. </div>
  35. <footer class="px-5 py-3 flex flex-row justify-between">
  36. <div class="flex flex-row gap-2 text-rose-500 text-xs font-medium opacity-30">
  37. <NuxtLink to="/readme" class="hover:text-amber-900">
  38. readme
  39. </NuxtLink>
  40. |
  41. <NuxtLink to="/legal" class="hover:text-amber-900">
  42. legal
  43. </NuxtLink>
  44. |
  45. <NuxtLink to="/sponsors" class="hover:text-amber-900">
  46. sponsors 💗
  47. </NuxtLink>
  48. |
  49. <NuxtLink to="/help" class="hover:text-amber-900">
  50. need help?
  51. </NuxtLink>
  52. </div>
  53. <div class="flex flex-row gap-2 text-rose-500 text-xs font-medium opacity-30">
  54. <NuxtLink to="/admin" class="hover:text-amber-900">
  55. admin
  56. </NuxtLink>
  57. |
  58. <NuxtLink to="https://nexa.sh/blocks" target="_blank" class="hover:text-amber-900">
  59. block # {{ blockHeight }}
  60. </NuxtLink>
  61. </div>
  62. </footer>
  63. </main>
  64. </template>