Primo sviluppo sincronizzazione e migliorie ui
This commit is contained in:
20
Template.Shared/Components/Layout/Spinner/SyncSpinner.razor
Normal file
20
Template.Shared/Components/Layout/Spinner/SyncSpinner.razor
Normal file
@@ -0,0 +1,20 @@
|
||||
@if (Elements is not null)
|
||||
{
|
||||
<div class="container-loader">
|
||||
<span>Download risorse in corso</span>
|
||||
<div>
|
||||
@foreach (var element in Elements)
|
||||
{
|
||||
<div class="progress-content">
|
||||
<span>@element.Key</span>
|
||||
<MudProgressLinear Indeterminate="@(!element.Value)" Value="100" Rounded="true" Color="@(element.Value ? Color.Tertiary : Color.Secondary)" Size="Size.Large" />
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
|
||||
@code
|
||||
{
|
||||
[Parameter] public Dictionary<string, bool>? Elements { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
.container-loader {
|
||||
display: flex;
|
||||
height: 95vh;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
padding: 0 1rem;
|
||||
align-items: center;
|
||||
gap: 5vh;
|
||||
}
|
||||
|
||||
.container-loader > div {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.container-loader > span {
|
||||
font-weight: 900;
|
||||
font-size: large;
|
||||
color: var(--mud-palette-primary);
|
||||
}
|
||||
|
||||
.progress-content > span {
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.progress-content:nth-last-child(2) {
|
||||
margin: 10px 0;
|
||||
}
|
||||
Reference in New Issue
Block a user