feat(admin): stabilize blog and admin patterns
TaxBaik CI/CD / build-and-deploy (push) Has been cancelled
TaxBaik CI/CD / build-and-deploy (push) Has been cancelled
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
<div class="pa-6 text-center">
|
||||
<MudIcon Icon="@Icon" Style="font-size:3rem; opacity:.3;" />
|
||||
<MudText Class="mt-2 text-muted">@Message</MudText>
|
||||
</div>
|
||||
|
||||
@code {
|
||||
[Parameter, EditorRequired]
|
||||
public string Icon { get; set; } = Icons.Material.Filled.Info;
|
||||
|
||||
[Parameter, EditorRequired]
|
||||
public string Message { get; set; } = "";
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
<section class="admin-page-hero">
|
||||
<div>
|
||||
@if (!string.IsNullOrWhiteSpace(Eyebrow))
|
||||
{
|
||||
<MudText Typo="Typo.caption" Class="admin-eyebrow">@Eyebrow</MudText>
|
||||
}
|
||||
<MudText Typo="Typo.h4" Class="admin-page-title">@Title</MudText>
|
||||
@if (!string.IsNullOrWhiteSpace(Subtitle))
|
||||
{
|
||||
<MudText Typo="Typo.body2" Class="admin-page-subtitle">@Subtitle</MudText>
|
||||
}
|
||||
</div>
|
||||
@if (ChildContent is not null)
|
||||
{
|
||||
<div>@ChildContent</div>
|
||||
}
|
||||
</section>
|
||||
|
||||
@code {
|
||||
[Parameter, EditorRequired]
|
||||
public string Title { get; set; } = "";
|
||||
|
||||
[Parameter]
|
||||
public string? Eyebrow { get; set; }
|
||||
|
||||
[Parameter]
|
||||
public string? Subtitle { get; set; }
|
||||
|
||||
[Parameter]
|
||||
public RenderFragment? ChildContent { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user