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

37 lines
697 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]
2022-01-28 11:58:28 +00:00
public string? Image { get; set; }
[Parameter]
2022-01-28 11:58:28 +00:00
public string? Title { get; set; }
[Parameter]
2022-01-28 11:58:28 +00:00
public string? Subtitle { get; set; }
[Parameter]
2022-01-28 11:58:28 +00:00
public string? Description { get; set; }
}