2026-07-20 09:50:43 +00:00
|
|
|
@page "/Error"
|
|
|
|
|
@layout MudBlazorLayout
|
|
|
|
|
@inject NavigationManager Navigation
|
2026-10-25 05:59:18 +01:00
|
|
|
@inject UiText Text
|
2026-07-20 09:50:43 +00:00
|
|
|
|
|
|
|
|
<div class="auth-page">
|
|
|
|
|
<div class="auth-card">
|
|
|
|
|
<div class="auth-header">
|
|
|
|
|
<div class="auth-icon">
|
|
|
|
|
<MudIcon Icon="@Icons.Material.Filled.ErrorOutline" Size="Size.Large" Color="Color.Error" />
|
|
|
|
|
</div>
|
2026-10-25 05:59:18 +01:00
|
|
|
<h1>@Text["ErrorPage_Title"]</h1>
|
|
|
|
|
<p>@Text["ErrorPage_Body"]</p>
|
2026-07-20 09:50:43 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="auth-form">
|
|
|
|
|
<MudButton Variant="Variant.Filled"
|
|
|
|
|
Color="Color.Primary"
|
|
|
|
|
FullWidth="true"
|
|
|
|
|
Class="auth-submit-btn"
|
|
|
|
|
OnClick="@(() => Navigation.NavigateTo("/dashboard"))">
|
2026-10-25 05:59:18 +01:00
|
|
|
@Text["ErrorPage_BackToDashboard"]
|
2026-07-20 09:50:43 +00:00
|
|
|
</MudButton>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
@if (Environment.IsDevelopment())
|
|
|
|
|
{
|
|
|
|
|
<MudAlert Severity="Severity.Warning" Class="mt-4">
|
2026-10-25 05:59:18 +01:00
|
|
|
<MudText>@Text["ErrorPage_LogsHint"]</MudText>
|
2026-07-20 09:50:43 +00:00
|
|
|
</MudAlert>
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
@code {
|
|
|
|
|
[Inject] private IWebHostEnvironment Environment { get; set; } = null!;
|
|
|
|
|
}
|