Added simple customization to replace wave logo

This commit is contained in:
Mia Rose Winter 2024-01-23 14:49:10 +01:00
parent 70c7052110
commit e1d8520b26
Signed by: miawinter
GPG key ID: 4B6F6A83178F595E
4 changed files with 17 additions and 8 deletions

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,14 @@
<picture>
@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/webp" srcset="img/logo.webp" />
<source type="image/svg+xml" scrset="img/logo.svg" />
<img class="max-h-full object-contain object-left" src="img/logo.png" alt="Wave" />
</picture>
}

View file

@ -2,5 +2,6 @@
public class Customization {
public string AppName { get; set; } = "Wave";
public string LogoLink { get; set; } = "";
public string Footer { get; set; } = "";
}