This commit is contained in:
@@ -14,21 +14,30 @@
|
||||
<MudPaper Class="pa-8" Elevation="3" Style="width: 100%; max-width: 400px;">
|
||||
<MudText Typo="Typo.h4" Class="mb-6 text-center">관리자 로그인</MudText>
|
||||
|
||||
<EditForm Model="model">
|
||||
<MudTextField @bind-Value="model.Username" Label="사용자명"
|
||||
Variant="Variant.Outlined" Required="true" Class="mb-4" />
|
||||
<div>
|
||||
<input class="mud-input mud-input-outlined mud-input-root mud-input-root-adorned-start mb-4"
|
||||
style="width: 100%; min-height: 56px; padding: 16px 14px;"
|
||||
placeholder="사용자명"
|
||||
autocomplete="username"
|
||||
@bind="model.Username" />
|
||||
|
||||
<MudTextField @bind-Value="model.Password" Label="비밀번호" InputType="InputType.Password"
|
||||
Variant="Variant.Outlined" Required="true" Class="mb-4" />
|
||||
<input type="password"
|
||||
class="mud-input mud-input-outlined mud-input-root mud-input-root-adorned-start mb-4"
|
||||
style="width: 100%; min-height: 56px; padding: 16px 14px;"
|
||||
placeholder="비밀번호"
|
||||
autocomplete="current-password"
|
||||
@bind="model.Password" />
|
||||
|
||||
@if (!string.IsNullOrEmpty(errorMessage))
|
||||
{
|
||||
<MudAlert Severity="Severity.Error" Class="mb-4">@errorMessage</MudAlert>
|
||||
}
|
||||
|
||||
<MudButton Variant="Variant.Filled" Color="Color.Primary" FullWidth="true"
|
||||
ButtonType="ButtonType.Button"
|
||||
Size="Size.Large" OnClick="HandleLogin" Disabled="isLoading">
|
||||
<button type="button"
|
||||
class="mud-button-root mud-button mud-button-filled mud-button-filled-primary mud-elevation-0"
|
||||
style="width: 100%; min-height: 52px; border: 0; border-radius: 4px; color: white;"
|
||||
@onclick="HandleLogin"
|
||||
disabled="@isLoading">
|
||||
@if (isLoading)
|
||||
{
|
||||
<MudProgressCircular Size="Size.Small" Indeterminate="true" Class="mr-2" />
|
||||
@@ -38,8 +47,8 @@
|
||||
{
|
||||
<span>로그인</span>
|
||||
}
|
||||
</MudButton>
|
||||
</EditForm>
|
||||
</button>
|
||||
</div>
|
||||
</MudPaper>
|
||||
</MudContainer>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user