Files
psp_panel/src/app/modules/auth/pages/auth.component.html
T
2026-06-15 21:36:09 +03:30

48 lines
2.0 KiB
HTML

<div class="relative h-svh bg-white">
<div class="absolute inset-0 flex items-center justify-center opacity-30 blur-xs">
<img [src]="authVector" alt="background image" class="w-full bg-cover bg-no-repeat" />
</div>
<div class="relative z-10 mx-auto flex h-svh items-center justify-center bg-gray-800/80">
<div
class="bg-surface-card border-surface-border flex h-auto w-full max-w-md flex-col items-center justify-center rounded-lg border px-12 py-10 shadow">
<div class="mb-10 flex flex-col items-center justify-center gap-4 text-center">
<img [src]="logo" alt="مدیریت صورت‌حساب‌های مالیاتی" class="h-auto w-20" />
<span class="text-lg font-bold"> {{ authTitle }}</span>
</div>
<!-- @if (activeStep() === "login") { -->
<app-login
[redirectUrl]="redirectUrl"
[loginApiUrl]="loginApiUrl"
[defaultRole]="role"
class="w-full"
(onSuccessfullySubmit)="onLoggedIn($event)"
(onToSignup)="toSignUp()" />
<!-- } @else if (activeStep() === "signup") {
<auth-signup role="TEACHER" class="w-full" />
} @else if (activeStep() === "otp") {
<app-otp class="w-full" />
} @else if (activeStep() === "modifyLoginInfo") {
<app-modify-login-info
[userLoginInfo]="{}"
[role]="selectedRole()!"
(onSubmit)="onModifyLoginInfo()"
class="w-full"
/>
} -->
</div>
</div>
</div>
<!-- <div class="w-screen h-screen flex items-center justify-center bg-red-400">
<div class="bg-white p-8 rounded-lg shadow-md w-[520px]">
<h1 class="text-2xl font-bold mb-4">Auth Page</h1>
<p class="mb-4">WebView payment listener test</p>
<div class="flex gap-3 mb-4">
<button pButton outlined class="mx-auto" (click)="pay()">pay</button>
<button pButton outlined class="mx-auto" (click)="mockPaymentResult()">mock paymentResult</button>
</div>
<pre class="bg-gray-100 p-3 rounded text-xs overflow-auto max-h-52">{{ text() }}</pre>
</div>
</div> -->