@page "/mixes/{Id:long}"
@using DeepDrftPublic.Client.Controls
@inherits ReleaseDetailBase
@(ViewModel.Release?.Title ?? "Mix") - DeepDrft
@if (ViewModel.IsLoading)
{
}
else if (ViewModel.NotFound || ViewModel.Release is null)
{
}
else
{
var release = ViewModel.Release;
var hasGenre = release.Genre is not null;
var hasDate = release.ReleaseDate is not null;
@* Full-page waveform sits behind the scaffold content. The scaffold's container is positioned
above it via the mix-detail-foreground stacking context. TrackId lets the visualizer couple to
playback only when the player is on this mix's track. *@
@* The four visualizer controls — resolution, bubblyness, detach, color-shift speed —
in a row below the back button and above the masthead (spec §3). They mutate the
shared MixVisualizerControlState; the backdrop bridge above pushes the uniforms. *@
@if (!string.IsNullOrEmpty(release.ImagePath))
{
}
else
{
}
@if (hasGenre)
{
@release.Genre
}
@if (hasDate)
{
Released
@release.ReleaseDate!.Value.ToString("MMMM yyyy")
}
}
@code {
protected override string PersistKey => "mix-detail";
}