|
3 | 3 | <div class="flex flex-1 flex-col justify-center px-4 py-12 sm:px-6 lg:flex-none lg:px-20 xl:px-24 lg:bg-white lg:bg-opacity-50">
|
4 | 4 | <div class="mx-auto w-full max-w-sm lg:w-96 p-3 lg:backdrop-blur-md lg:rounded-3xl lg:shadow lg:bg-neutral-100 lg:bg-opacity-40">
|
5 | 5 | <div class="">
|
6 |
| - <img alt="walt.id logo" class="h-24 lg:h-16 w-auto mx-auto mt-2" src="/svg/waltid.svg" /> |
| 6 | + <img alt="walt.id logo" class="h-24 lg:h-16 w-auto mx-auto mt-2" :src="logoImg" /> |
7 | 7 | <h2 class="mt-4 text-3xl font-bold tracking-tight text-gray-800">Sign in to your SSI wallet</h2>
|
8 | 8 | <p class="mt-2 text-sm text-gray-600">
|
9 | 9 | Or {{ " " }}
|
10 |
| - <NuxtLink class="font-medium text-blue-600 hover:text-blue-500" to="/signup">sign up for your SSI wallet </NuxtLink> |
11 |
| - ! |
| 10 | + <NuxtLink class="font-medium text-blue-600 hover:text-blue-500" to="/signup">sign up for your SSI wallet</NuxtLink>! |
12 | 11 | </p>
|
13 | 12 | </div>
|
14 | 13 |
|
|
129 | 128 | </div>
|
130 | 129 | </div>
|
131 | 130 | <div class="overflow-hidden max-h-screen absolute left-0 w-full h-full -z-10 hidden lg:block">
|
132 |
| - <img ref="container" :class="[isLoggingIn ? 'zoom-in' : 'zoom-out']" alt="" class="absolute inset-0 h-full w-full object-cover hidden lg:block -z-10" src="/images/start-page-background.png" /> |
| 131 | + <img ref="container" :class="[isLoggingIn ? 'zoom-in' : 'zoom-out']" alt="" class="absolute inset-0 h-full w-full object-cover hidden lg:block -z-10" :src="bgImg" /> |
133 | 132 | <!-- src="https://images.unsplash.com/photo-1529144415895-6aaf8be872fb?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1980&q=80"/> -->
|
134 | 133 |
|
135 | 134 | <!--<div class="relative hidden w-0 flex-1 lg:block">-->
|
|
139 | 138 | <!--</div>-->
|
140 | 139 | </div>
|
141 | 140 |
|
142 |
| - <div :class="[isLoggingIn ? 'animate-spin' : '']" :style="cardStyle" class="absolute bottom-3.5 right-3.5 w-10 lg:w-16 h-10 lg:h-16 overflow-hidden"> |
| 141 | + <div v-if="showWaltidLoadingSpinner" :class="[isLoggingIn ? 'animate-spin' : '']" :style="cardStyle" class="absolute bottom-3.5 right-3.5 w-10 lg:w-16 h-10 lg:h-16 overflow-hidden"> |
143 | 142 | <img class="overflow-hidden" src="/svg/walt-s.svg" />
|
144 | 143 | </div>
|
145 | 144 |
|
@@ -213,9 +212,16 @@ import ConnectWalletModal from "~/components/modals/ConnectWalletModal.vue";
|
213 | 212 | import useModalStore from "~/stores/useModalStore";
|
214 | 213 | import { useUserStore } from "~/stores/user";
|
215 | 214 | import { storeToRefs } from "pinia";
|
| 215 | +import { useTenant } from "~/composables/tenants"; |
216 | 216 |
|
217 | 217 | const store = useModalStore();
|
218 | 218 |
|
| 219 | +const tenant = await (useTenant()).value |
| 220 | +const bgImg = tenant?.bgImage |
| 221 | +const name = tenant?.name |
| 222 | +const logoImg = tenant?.logoImage |
| 223 | +const showWaltidLoadingSpinner = tenant?.showWaltidLoadingSpinner |
| 224 | +
|
219 | 225 | const isLoggingIn = ref(false);
|
220 | 226 | const error = ref({});
|
221 | 227 | const success = ref(false);
|
|
0 commit comments