LANCommander/LANCommander.Server/UI/Pages/FirstTimeSetup/FirstTimeSetupLayout.razor

42 lines
1.1 KiB
Text
Raw Normal View History

2024-10-12 18:36:00 -05:00
@using LANCommander.Server.Data
@inherits LayoutComponentBase
@layout BasicLayout
@inject NavigationManager NavigationManager
2024-12-31 18:21:41 -06:00
<GridRow Align="RowAlign.Middle" Class="ant-row-middle ant-row-space-around" Style="min-height: 100vh; margin-top: -96px;">
2024-10-12 18:36:00 -05:00
<GridCol Xs="24" Md="10">
<div style="text-align: center; margin-bottom: 24px;">
<img src="/static/logo-dark.svg" />
</div>
<Card Title="First Time Setup">
2024-12-31 18:21:41 -06:00
<Steps Current="CurrentStep" Size="StepsSize.Small">
2024-10-12 18:36:00 -05:00
@foreach (var step in Enum.GetValues(typeof(FirstTimeSetupStep)))
{
<Step Title="@step.ToString()" />
}
</Steps>
<CascadingValue Value="this">
@Body
</CascadingValue>
</Card>
</GridCol>
</GridRow>
2025-02-16 02:26:55 -06:00
<style>
.ant-layout-content {
background: none;
}
</style>
2024-10-12 18:36:00 -05:00
@code {
private int CurrentStep = (int)FirstTimeSetupStep.Database;
internal async Task ChangeCurrentStep(FirstTimeSetupStep step)
{
CurrentStep = (int)step;
await InvokeAsync(StateHasChanged);
}
}