refactor: Update Login component to improve conditional rendering of login and registration cards

- Modify Login.vue to use v-if and v-else directives for better control over the display of the login and registration cards based on the showRegister state.
This commit is contained in:
padreug 2025-07-31 23:52:07 +02:00
parent 0c337f5dc6
commit 332ae91fb7

View file

@ -13,7 +13,7 @@
</div> </div>
<!-- Login Card --> <!-- Login Card -->
<Card class="w-full max-w-md"> <Card v-if="!showRegister" class="w-full max-w-md">
<CardHeader> <CardHeader>
<CardTitle class="text-center">Sign In</CardTitle> <CardTitle class="text-center">Sign In</CardTitle>
<CardDescription class="text-center"> <CardDescription class="text-center">
@ -50,7 +50,7 @@
</Card> </Card>
<!-- Register Card --> <!-- Register Card -->
<Card v-if="showRegister" class="w-full max-w-md"> <Card v-else class="w-full max-w-md">
<CardHeader> <CardHeader>
<CardTitle class="text-center">Create Account</CardTitle> <CardTitle class="text-center">Create Account</CardTitle>
<CardDescription class="text-center"> <CardDescription class="text-center">