Wave/Wave/Components/LogoPartial.razor

15 lines
548 B
Plaintext

@using Wave.Data
@using Microsoft.Extensions.Options
@inject IOptions<Customization> Customizations
@if (Customizations.Value.LogoLink is { } logo && !string.IsNullOrWhiteSpace(logo)) {
<img class="max-h-full object-contain object-left" src="@logo" alt="" />
} else {
<picture>
<source type="image/jxl" srcset="img/logo.jxl" />
<source type="image/svg+xml" srcset="img/logo.svg" />
<source type="image/webp" srcset="img/logo.webp" />
<img class="h-full object-contain object-left" src="img/logo.png" alt="Wave" />
</picture>
}