wabbajack/Wabbajack.App.Blazor/Pages/Gallery.razor

49 lines
1.6 KiB
Plaintext
Raw Normal View History

2022-01-21 13:41:37 +00:00
@page "/gallery"
2022-01-20 08:34:38 +00:00
@namespace Wabbajack.App.Blazor.Pages
2022-01-09 13:33:22 +00:00
<div id="content">
2022-01-21 13:41:37 +00:00
@if (_errorLoadingModlists)
2022-01-09 13:33:22 +00:00
{
2022-01-21 13:41:37 +00:00
@* TODO: error *@
2022-01-09 13:33:22 +00:00
}
2022-01-21 13:41:37 +00:00
else if (!Modlists.Any())
{
2022-01-21 13:41:37 +00:00
@* TODO: loading *@
}
else
{
@foreach (var modlist in Modlists)
{
<div @key="modlist.Title" class="item">
<div class="display">
<img src="@modlist.Links.ImageUri" loading="lazy" class="image" alt="@modlist.Title">
<div class="interaction">
<InteractionIcon Icon="images/icons/install.svg" Label="Install" Size="75px" OnClick="@(() => OnClickDownload(modlist))"/>
<InteractionIcon Icon="images/icons/info.svg" Label="Information" Size="75px" OnClick="@(() => OnClickInformation(modlist))"/>
</div>
</div>
<div class="info">
<div class="title">@modlist.Title</div>
<div class="author">@modlist.Author</div>
<div class="description">@modlist.Description</div>
</div>
<div class="tags"></div>
</div>
}
}
2022-01-21 15:11:44 +00:00
@if (DownloadingMetaData is not null)
2022-01-21 13:41:37 +00:00
{
2022-01-21 15:11:44 +00:00
<BottomBar Image="@DownloadingMetaData.Links.ImageUri" Title="Downloading..." Subtitle="@DownloadingMetaData.Title">
<div style="height:1.5rem;">
<ProgressBar ProgressObserver="@DownloadProgress"/>
</div>
</BottomBar>
}
2022-01-11 16:26:47 +00:00
</div>
2022-01-21 13:41:37 +00:00
@code {
public const string Route = "/gallery";
}