Add registration page, fix auth paths, and improve navigation
This commit is contained in:
@@ -68,6 +68,20 @@
|
||||
>
|
||||
Anmelden
|
||||
</NuxtLink>
|
||||
<NuxtLink
|
||||
to="/registrieren"
|
||||
@click="isMemberMenuOpen = false"
|
||||
class="block px-4 py-2 text-sm text-gray-300 hover:bg-primary-600 hover:text-white transition-colors"
|
||||
>
|
||||
Registrieren
|
||||
</NuxtLink>
|
||||
<NuxtLink
|
||||
to="/passwort-vergessen"
|
||||
@click="isMemberMenuOpen = false"
|
||||
class="block px-4 py-2 text-sm text-gray-300 hover:bg-primary-600 hover:text-white transition-colors"
|
||||
>
|
||||
Passwort vergessen
|
||||
</NuxtLink>
|
||||
</template>
|
||||
</div>
|
||||
</Transition>
|
||||
@@ -80,8 +94,10 @@
|
||||
|
||||
<script setup>
|
||||
import { ref, computed, onMounted, onUnmounted } from 'vue'
|
||||
import { useRouter } from 'vue-router'
|
||||
import { User, ChevronUp } from 'lucide-vue-next'
|
||||
|
||||
const router = useRouter()
|
||||
const currentYear = new Date().getFullYear()
|
||||
const isMemberMenuOpen = ref(false)
|
||||
const isLoggedIn = ref(false)
|
||||
@@ -101,7 +117,7 @@ const handleLogout = async () => {
|
||||
isLoggedIn.value = false
|
||||
userRole.value = null
|
||||
isMemberMenuOpen.value = false
|
||||
navigateTo('/')
|
||||
router.push('/')
|
||||
} catch (error) {
|
||||
console.error('Logout fehlgeschlagen:', error)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user