Consolidate tools and fix static assets
This commit is contained in:
45
src/RolemasterDb.App/Components/Tools/ToolPageFrame.razor
Normal file
45
src/RolemasterDb.App/Components/Tools/ToolPageFrame.razor
Normal file
@@ -0,0 +1,45 @@
|
||||
<section class="panel tooling-surface tool-page-frame">
|
||||
<header class="tool-page-header">
|
||||
<div class="tool-page-heading">
|
||||
@if (!string.IsNullOrWhiteSpace(Eyebrow))
|
||||
{
|
||||
<span class="tool-page-eyebrow">@Eyebrow</span>
|
||||
}
|
||||
|
||||
<h1 class="panel-title">@Title</h1>
|
||||
|
||||
@if (!string.IsNullOrWhiteSpace(Summary))
|
||||
{
|
||||
<div class="tool-page-summary">@Summary</div>
|
||||
}
|
||||
</div>
|
||||
|
||||
@if (Actions is not null)
|
||||
{
|
||||
<div class="tool-page-actions">
|
||||
@Actions
|
||||
</div>
|
||||
}
|
||||
</header>
|
||||
|
||||
<div class="tool-page-body">
|
||||
@ChildContent
|
||||
</div>
|
||||
</section>
|
||||
|
||||
@code {
|
||||
[Parameter]
|
||||
public string? Eyebrow { get; set; }
|
||||
|
||||
[Parameter, EditorRequired]
|
||||
public string Title { get; set; } = string.Empty;
|
||||
|
||||
[Parameter]
|
||||
public string? Summary { get; set; }
|
||||
|
||||
[Parameter]
|
||||
public RenderFragment? Actions { get; set; }
|
||||
|
||||
[Parameter, EditorRequired]
|
||||
public RenderFragment ChildContent { get; set; } = default!;
|
||||
}
|
||||
Reference in New Issue
Block a user