[성현모] Operation 레이아웃, 페이지 설정
This commit is contained in:
@ -1,23 +1,41 @@
|
||||
@inherits LayoutComponentBase
|
||||
|
||||
<div class="page">
|
||||
<div class="sidebar">
|
||||
<NavMenu />
|
||||
</div>
|
||||
<RadzenLayout>
|
||||
<RadzenHeader Style="height: 5rem; font-size: 2rem;" class="rz-px-5">
|
||||
<RadzenStack Orientation="Orientation.Horizontal" AlignItems="AlignItems.Center" JustifyContent="JustifyContent.SpaceBetween" Gap="0">
|
||||
<RadzenStack Style="height: 5rem;" Orientation="Orientation.Horizontal" AlignItems="AlignItems.Center" JustifyContent="JustifyContent.Center">
|
||||
<RadzenLabel Text="@($"{ApplicationName}")" />
|
||||
</RadzenStack>
|
||||
<div class="rz-mr-2">
|
||||
<RadzenAppearanceToggle />
|
||||
</div>
|
||||
</RadzenStack>
|
||||
</RadzenHeader>
|
||||
<RadzenSidebar @bind-Expanded="@sidebarExpanded">
|
||||
<RadzenPanelMenu>
|
||||
<RadzenPanelMenuItem Text="Home" Icon="home" Path="/"/>
|
||||
<RadzenPanelMenuItem Text="CPMeta" Icon="assignment" Path="/CpMeta"/>
|
||||
</RadzenPanelMenu>
|
||||
</RadzenSidebar>
|
||||
<RadzenBody Style="margin:0; padding:1rem; overflow:hidden; font-size: 2rem;">
|
||||
@Body
|
||||
</RadzenBody>
|
||||
</RadzenLayout>
|
||||
<RadzenComponents @rendermode="InteractiveServer" />
|
||||
|
||||
<main>
|
||||
<div class="top-row px-4">
|
||||
<a href="https://learn.microsoft.com/aspnet/core/" target="_blank">About</a>
|
||||
</div>
|
||||
@code {
|
||||
bool sidebarExpanded = true;
|
||||
string ApplicationName = string.Empty;
|
||||
string Page = string.Empty;
|
||||
|
||||
<article class="content px-4">
|
||||
@Body
|
||||
</article>
|
||||
</main>
|
||||
</div>
|
||||
protected override async Task OnInitializedAsync()
|
||||
{
|
||||
ApplicationName = configService?.GetConfig()?.ApplicationName;
|
||||
Page = NavigationManager.ToBaseRelativePath(NavigationManager.Uri);
|
||||
}
|
||||
|
||||
<div id="blazor-error-ui">
|
||||
An unhandled error has occurred.
|
||||
<a href="" class="reload">Reload</a>
|
||||
<a class="dismiss">🗙</a>
|
||||
</div>
|
||||
private void OnClickMenu(MenuItemEventArgs args)
|
||||
{
|
||||
Page = args.Text;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user