index.vue 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <script setup lang="ts">
  2. import LanguageSvg from '~/assets/icons/language.svg'
  3. import ProfileSvg from '~/assets/icons/profile.svg'
  4. definePageMeta({
  5. auth: false,
  6. })
  7. </script>
  8. <template>
  9. <div class="min-h-screen bg-bg-primary text-text-primary">
  10. <div class="relative mx-auto flex flex-col px-4 pt-6 pb-8">
  11. <div class="header-background absolute left-0 right-0 top-0" />
  12. <header class="z-10 flex items-center justify-between">
  13. <div class="bg-white/80 px-4 py-2 text-sm font-semibold shadow-[0_12px_30px_rgba(110,110,110,0.2)] backdrop-blur">
  14. logo占位
  15. </div>
  16. <div class="flex items-center gap-2">
  17. <LanguageSvg />
  18. <ProfileSvg />
  19. </div>
  20. </header>
  21. <div class="relative z-10 flex flex-col">
  22. <HomeNavTabs class="mt-2" />
  23. <HomeSortSection class="sticky top-0 py-2" />
  24. <HomePlaymateCards />
  25. </div>
  26. </div>
  27. </div>
  28. </template>
  29. <style lang="scss" scoped>
  30. .header-background {
  31. @include size(100%, 173px);
  32. @include bg('~/assets/images/home/header-bg.png');
  33. }
  34. </style>