Add shell slots and destination utilities
This commit is contained in:
@@ -2,23 +2,51 @@
|
||||
<header class="app-shell-header">
|
||||
<div class="app-shell-bar">
|
||||
<div class="app-shell-brand-block">
|
||||
<a class="app-shell-brand" href="/">
|
||||
<span class="app-shell-brand-mark">RM</span>
|
||||
<span class="app-shell-brand-copy">
|
||||
<strong>Rolemaster DB</strong>
|
||||
<span>Reference and lookup workspace</span>
|
||||
</span>
|
||||
</a>
|
||||
@if (BrandContent is null)
|
||||
{
|
||||
<a class="app-shell-brand" href="/">
|
||||
<span class="app-shell-brand-mark">RM</span>
|
||||
<span class="app-shell-brand-copy">
|
||||
<strong>Rolemaster DB</strong>
|
||||
<span>Reference and lookup workspace</span>
|
||||
</span>
|
||||
</a>
|
||||
}
|
||||
else
|
||||
{
|
||||
@BrandContent
|
||||
}
|
||||
</div>
|
||||
|
||||
<div class="app-shell-header-nav">
|
||||
<ShellPrimaryNav />
|
||||
@if (PrimaryNavContent is null)
|
||||
{
|
||||
<ShellPrimaryNav />
|
||||
}
|
||||
else
|
||||
{
|
||||
@PrimaryNavContent
|
||||
}
|
||||
</div>
|
||||
|
||||
<div class="app-shell-header-omnibox">
|
||||
@if (OmniboxContent is not null)
|
||||
{
|
||||
@OmniboxContent
|
||||
}
|
||||
</div>
|
||||
|
||||
<div class="app-shell-header-actions">
|
||||
@HeaderActions
|
||||
@UtilityContent
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@if (ShortcutContent is not null)
|
||||
{
|
||||
<div class="app-shell-shortcuts">
|
||||
@ShortcutContent
|
||||
</div>
|
||||
}
|
||||
</header>
|
||||
|
||||
<main id="app-main" class="app-shell-main">
|
||||
@@ -37,5 +65,17 @@
|
||||
public RenderFragment? ChildContent { get; set; }
|
||||
|
||||
[Parameter]
|
||||
public RenderFragment? HeaderActions { get; set; }
|
||||
public RenderFragment? BrandContent { get; set; }
|
||||
|
||||
[Parameter]
|
||||
public RenderFragment? PrimaryNavContent { get; set; }
|
||||
|
||||
[Parameter]
|
||||
public RenderFragment? OmniboxContent { get; set; }
|
||||
|
||||
[Parameter]
|
||||
public RenderFragment? ShortcutContent { get; set; }
|
||||
|
||||
[Parameter]
|
||||
public RenderFragment? UtilityContent { get; set; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user