First successfull build
This commit is contained in:
@@ -1,5 +1,19 @@
|
||||
<h3>ErrorDisplay</h3>
|
||||
<div class="text-center py-5">
|
||||
@if (!string.IsNullOrEmpty(Icon))
|
||||
{
|
||||
<div class="mb-3">
|
||||
<i class="bi bi-@Icon" style="font-size: 3rem;"></i>
|
||||
</div>
|
||||
}
|
||||
<h2>@Title</h2>
|
||||
@if (!string.IsNullOrEmpty(Message))
|
||||
{
|
||||
<p class="text-muted">@Message</p>
|
||||
}
|
||||
</div>
|
||||
|
||||
@code {
|
||||
|
||||
}
|
||||
[Parameter] public string Title { get; set; } = "Fehler";
|
||||
[Parameter] public string? Message { get; set; }
|
||||
[Parameter] public string? Icon { get; set; }
|
||||
}
|
||||
@@ -1,5 +1,18 @@
|
||||
<h3>LoadingIndicator</h3>
|
||||
<div class="d-flex justify-content-center align-items-center @(Small ? "" : "py-5")" style="@(Small ? "" : "min-height: 40vh;")">
|
||||
<div class="text-center">
|
||||
<div class="spinner-border @(Small ? "spinner-border-sm" : "text-primary")"
|
||||
style="@(Small ? "" : "width: 3rem; height: 3rem;")"
|
||||
role="status">
|
||||
<span class="visually-hidden">Laden...</span>
|
||||
</div>
|
||||
@if (!Small && Message is not null)
|
||||
{
|
||||
<p class="mt-3 text-muted">@Message</p>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@code {
|
||||
|
||||
}
|
||||
[Parameter] public bool Small { get; set; }
|
||||
[Parameter] public string? Message { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user