Fix login modal positioning and increase logo size
This commit is contained in:
@@ -1,56 +1,58 @@
|
||||
<template>
|
||||
<UModal v-model="isOpen" :ui="{ width: 'sm:max-w-md' }">
|
||||
<UCard>
|
||||
<template #header>
|
||||
<h3 class="text-lg font-semibold text-gray-900">Admin Login</h3>
|
||||
</template>
|
||||
<Teleport to="body">
|
||||
<UModal v-model="isOpen" :ui="{ width: 'sm:max-w-md' }">
|
||||
<UCard>
|
||||
<template #header>
|
||||
<h3 class="text-lg font-semibold text-gray-900">Admin Login</h3>
|
||||
</template>
|
||||
|
||||
<form @submit.prevent="handleSubmit" class="space-y-4">
|
||||
<UFormGroup label="Username" name="username">
|
||||
<UInput
|
||||
v-model="form.username"
|
||||
placeholder="Enter username"
|
||||
:disabled="loading"
|
||||
class="w-full"
|
||||
/>
|
||||
</UFormGroup>
|
||||
<form @submit.prevent="handleSubmit" class="space-y-4">
|
||||
<UFormGroup label="Username" name="username">
|
||||
<UInput
|
||||
v-model="form.username"
|
||||
placeholder="Enter username"
|
||||
:disabled="loading"
|
||||
class="w-full"
|
||||
/>
|
||||
</UFormGroup>
|
||||
|
||||
<UFormGroup label="Password" name="password">
|
||||
<UInput
|
||||
v-model="form.password"
|
||||
type="password"
|
||||
placeholder="Enter password"
|
||||
:disabled="loading"
|
||||
class="w-full"
|
||||
/>
|
||||
</UFormGroup>
|
||||
<UFormGroup label="Password" name="password">
|
||||
<UInput
|
||||
v-model="form.password"
|
||||
type="password"
|
||||
placeholder="Enter password"
|
||||
:disabled="loading"
|
||||
class="w-full"
|
||||
/>
|
||||
</UFormGroup>
|
||||
|
||||
<div v-if="error" class="text-red-600 text-sm p-3 bg-red-50 border border-red-200 rounded-md">
|
||||
{{ error }}
|
||||
</div>
|
||||
<div v-if="error" class="text-red-600 text-sm p-3 bg-red-50 border border-red-200 rounded-md">
|
||||
{{ error }}
|
||||
</div>
|
||||
|
||||
<div class="flex justify-end space-x-3 pt-4">
|
||||
<UButton
|
||||
type="button"
|
||||
variant="outline"
|
||||
color="gray"
|
||||
:disabled="loading"
|
||||
@click="close"
|
||||
>
|
||||
Cancel
|
||||
</UButton>
|
||||
<UButton
|
||||
type="submit"
|
||||
variant="solid"
|
||||
color="primary"
|
||||
:loading="loading"
|
||||
>
|
||||
Login
|
||||
</UButton>
|
||||
</div>
|
||||
</form>
|
||||
</UCard>
|
||||
</UModal>
|
||||
<div class="flex justify-end space-x-3 pt-4">
|
||||
<UButton
|
||||
type="button"
|
||||
variant="outline"
|
||||
color="gray"
|
||||
:disabled="loading"
|
||||
@click="close"
|
||||
>
|
||||
Cancel
|
||||
</UButton>
|
||||
<UButton
|
||||
type="submit"
|
||||
variant="solid"
|
||||
color="primary"
|
||||
:loading="loading"
|
||||
>
|
||||
Login
|
||||
</UButton>
|
||||
</div>
|
||||
</form>
|
||||
</UCard>
|
||||
</UModal>
|
||||
</Teleport>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
|
||||
Reference in New Issue
Block a user