wabbajack/Wabbajack.App.Blazor/Components/InfoImage.razor

38 lines
694 B
Plaintext
Raw Normal View History

2022-01-20 08:34:38 +00:00
@namespace Wabbajack.App.Blazor.Components
<div id="info-image">
<div class="image">
<img src="@Image" alt="">
</div>
@if (!string.IsNullOrEmpty(Title))
{
<span class="title">@Title</span>
}
@if (!string.IsNullOrEmpty(Subtitle))
{
<span class="subtitle">@Subtitle</span>
}
@if (!string.IsNullOrEmpty(Description))
{
<span class="description">@Description</span>
}
</div>
@code {
[Parameter]
public string Image { get; set; }
[Parameter]
public string Title { get; set; }
[Parameter]
public string Subtitle { get; set; }
[Parameter]
public string Description { get; set; }
}