feat: Replace welcome section with NostrFeed component in Home.vue

- Remove the welcome message and user profile card to integrate the NostrFeed component for displaying announcements.
This commit is contained in:
padreug 2025-07-31 12:56:34 +02:00
parent 39d400f21e
commit 82e8c230ab

View file

@ -2,23 +2,12 @@
<div class="container py-8 space-y-6"> <div class="container py-8 space-y-6">
<PWAInstallPrompt auto-show /> <PWAInstallPrompt auto-show />
<NotificationPermission auto-show /> <NotificationPermission auto-show />
<NostrFeed feed-type="announcements" />
<!-- Welcome Section -->
<div class="text-center space-y-4">
<h1 class="text-3xl font-bold tracking-tight">Welcome back!</h1>
<p class="text-lg text-muted-foreground">
You are logged in as {{ auth.userDisplay.value?.name }}
</p>
</div>
<!-- User Profile Card -->
<UserProfile />
</div> </div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import NostrFeed from '@/components/nostr/NostrFeed.vue'
import NotificationPermission from '@/components/notifications/NotificationPermission.vue' import NotificationPermission from '@/components/notifications/NotificationPermission.vue'
import PWAInstallPrompt from '@/components/pwa/PWAInstallPrompt.vue' import PWAInstallPrompt from '@/components/pwa/PWAInstallPrompt.vue'
import UserProfile from '@/components/auth/UserProfile.vue'
import { auth } from '@/composables/useAuth'
</script> </script>