@page "/" @inject GameService Service Game Slop Reference

Game Slop Reference

@if (Service.OverviewHtml is { } html) {
@((MarkupString)html)
}
@foreach (var game in Service.Games.Where(a=>a.IsVisible == true)) {

@game.Title

@if (!string.IsNullOrEmpty(game.Link) || !string.IsNullOrEmpty(game.Git)) { }
}
@if (_selected is not null) {

@_selected.Title

@((MarkupString)_selected.ContentHtml)
} @code { private GameDoc? _selected; private void ShowDetail(GameDoc game) => _selected = game; private void CloseDetail() => _selected = null; }