|
1 | 1 | <template>
|
2 |
| - <div class="relative flex items-center justify-center min-h-screen bg-gray-100 dark:bg-gray-800 relative w-screen h-screen" |
| 2 | + <div class="relative flex items-center justify-center min-h-screen bg-lightHtml dark:bg-darkHtml w-screen h-screen" |
3 | 3 | :style="coreStore.config?.loginBackgroundImage && backgroundPosition === 'over' ? {
|
4 | 4 | 'background-image': 'url(' + loadFile(coreStore.config?.loginBackgroundImage) + ')',
|
5 | 5 | 'background-size': 'cover',
|
|
27 | 27 | overflow-x-hidden z-50 min-w-[350px] justify-center items-center md:inset-0 h-[calc(100%-1rem)] max-h-full">
|
28 | 28 | <div class="relative p-4 w-full max-h-full max-w-[400px]">
|
29 | 29 | <!-- Modal content -->
|
30 |
| - <div class="af-login-modal-content relative bg-white rounded-lg shadow dark:bg-gray-700 dark:shadow-black" > |
| 30 | + <div class="af-login-modal-content relative bg-lightLoginViewBackground rounded-lg shadow dark:bg-darkLoginViewBackground dark:shadow-black" > |
31 | 31 | <!-- Modal header -->
|
32 | 32 | <div class="af-login-modal-header flex items-center justify-between flex-col p-4 md:p-5 border-b rounded-t dark:border-gray-600">
|
33 | 33 |
|
|
39 | 39 | :meta="c.meta"
|
40 | 40 | />
|
41 | 41 | </template>
|
42 |
| - <h3 v-else class="text-xl font-semibold text-gray-900 dark:text-white"> |
| 42 | + <h3 v-else class="text-xl font-semibold text-lightLoginViewText dark:text-darkLoginViewTextColor"> |
43 | 43 | {{ $t('Sign in to') }} {{ coreStore.config?.brandName }}
|
44 | 44 | </h3>
|
45 | 45 | </div>
|
46 | 46 | <!-- Modal body -->
|
47 | 47 | <div class="af-login-modal-body p-4 md:p-5">
|
48 | 48 | <form class="space-y-4" @submit.prevent>
|
49 | 49 | <div>
|
50 |
| - <label for="username" class="block mb-2 text-sm font-medium text-gray-900 dark:text-white">{{ $t('Your') }} {{ coreStore.config?.usernameFieldName?.toLowerCase() }}</label> |
| 50 | + <label for="username" class="block mb-2 text-sm font-medium text-lightLoginViewText dark:text-darkLoginViewTextColor">{{ $t('Your') }} {{ coreStore.config?.usernameFieldName?.toLowerCase() }}</label> |
51 | 51 | <Input
|
52 | 52 | v-model="username"
|
53 | 53 | autocomplete="username"
|
|
61 | 61 | placeholder= "[email protected]" required />
|
62 | 62 | </div>
|
63 | 63 | <div class="">
|
64 |
| - <label for="password" class="block mb-2 text-sm font-medium text-gray-900 dark:text-white">{{ $t('Your password') }}</label> |
| 64 | + <label for="password" class="block mb-2 text-sm font-medium text-lightLoginViewText dark:text-darkLoginViewTextColor">{{ $t('Your password') }}</label> |
65 | 65 | <Input
|
66 | 66 | v-model="password"
|
67 | 67 | ref="passwordInput"
|
|
70 | 70 | @keydown.enter="login"
|
71 | 71 | :type="!showPw ? 'password': 'text'" name="password" id="password" placeholder="••••••••" class="w-full" required>
|
72 | 72 | <template #rightIcon>
|
73 |
| - <button type="button" @click="showPw = !showPw" class="text-gray-400 dark:text-gray-300"> |
| 73 | + <button type="button" @click="showPw = !showPw" class="text-lightLoginViewSubTextColor dark:text-darkLoginViewSubTextColor"> |
74 | 74 | <IconEyeSolid class="w-5 h-5" v-if="!showPw" />
|
75 | 75 | <IconEyeSlashSolid class="w-5 h-5" v-else />
|
76 | 76 | </button>
|
|
105 | 105 | </div>
|
106 | 106 |
|
107 | 107 | <div v-if="coreStore.config?.loginPromptHTML"
|
108 |
| - class="flex items-center p-4 mb-4 text-sm text-gray-800 rounded-lg bg-gray-50 dark:bg-gray-800 dark:text-gray-400" role="alert" |
| 108 | + class="flex items-center p-4 mb-4 text-sm text-lightLoginViewPromptText rounded-lg bg-lightLoginViewPromptBackground dark:bg-darkLoginViewPromptBackground dark:text-darkLoginViewPromptText" role="alert" |
109 | 109 | >
|
110 | 110 | <svg class="flex-shrink-0 inline w-4 h-4 me-3" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 20 20">
|
111 | 111 | <path d="M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"/>
|
|
0 commit comments