web-app/src/App.vue
padreug fd4e0ea8e6 refactor: Improve layout and responsiveness of Navbar and App components
- Update Navbar.vue to enhance spacing and responsiveness for logo and navigation items.
- Adjust App.vue to ensure consistent padding and layout for the header and navigation.
- Refine button sizes and text scaling for better usability across different screen sizes.
2025-08-03 11:20:35 +02:00

61 lines
2.2 KiB
Vue

<script setup lang="ts">
import { onMounted, ref } from 'vue'
import Navbar from '@/components/layout/Navbar.vue'
import Footer from '@/components/layout/Footer.vue'
import LoginDialog from '@/components/auth/LoginDialog.vue'
import { Toaster } from '@/components/ui/sonner'
import 'vue-sonner/style.css'
import { auth } from '@/composables/useAuth'
import { toast } from 'vue-sonner'
const showLoginDialog = ref(false)
function handleLoginSuccess() {
showLoginDialog.value = false
toast.success('Welcome back!')
}
onMounted(async () => {
// Initialize authentication
try {
await auth.initialize()
} catch (error) {
console.error('Failed to initialize authentication:', error)
}
})
</script>
<template>
<div class="min-h-screen bg-background font-sans antialiased">
<div class="relative flex min-h-screen flex-col"
style="padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom)">
<header
class="sticky top-0 z-50 w-full border-b bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60">
<nav class="w-full max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 xl:px-12 2xl:px-16 flex h-14 lg:h-16 xl:h-20 items-center justify-between">
<Navbar />
<<<<<<< HEAD <ConnectionStatus :is-connected="isConnected" :is-connecting="isConnecting" :error="error" />
=======
>>>>>>> 4686e5e (refactor: Transition to authentication system and remove identity management)
</nav>
</header>
<main class="flex-1">
<router-view />
</main>
<Footer />
</div>
<!-- Toast notifications -->
<Toaster />
<<<<<<< HEAD <!-- Password unlock dialog -->
<PasswordDialog v-model:is-open="showPasswordDialog" title="Unlock Identity"
description="Your Nostr identity is encrypted. Enter your password to unlock it."
@password="handlePasswordUnlock" @cancel="handlePasswordCancel" />
=======
<!-- Login dialog -->
<LoginDialog v-model:is-open="showLoginDialog" @success="handleLoginSuccess" />
>>>>>>> 4686e5e (refactor: Transition to authentication system and remove identity management)
</div>
</template>