Implement pride logo & necessary configuration options (#780)

* Implement pride logo as well as needed configuration option

* Potentially fix issue with icons not rendering

* Fix login form icon and remove unused image from PasswordResetPage
This commit is contained in:
koko 2023-06-02 10:21:56 -04:00 committed by GitHub
commit 572c942ee8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 15 additions and 4 deletions

View file

@ -89,7 +89,9 @@
<a class="item home-logo" href="/">
<img src="~/logo-mono.png" alt="Home" class="logo-mono"/>
<img src="~/logo-color.png" alt="Home" class="logo-color"/>
<img src="~/@(ServerConfiguration.Instance.WebsiteConfiguration.PrideEventEnabled && DateTime.Now.Month == 6 ? "logo-pride.png" : "logo-color.png")"
alt="Home"
class="logo-color"/>
</a>
@foreach (PageNavigationItem navigationItem in Model.NavigationItems)
{

View file

@ -43,7 +43,10 @@
<div class="column">
<h2 class="ui black image header centered">
<img src="~/logo-color.png" class="image" style="width: 128px;">
<img src="~/@(ServerConfiguration.Instance.WebsiteConfiguration.PrideEventEnabled && DateTime.Now.Month == 6 ? "logo-pride.png" : "logo-color.png")"
alt="Instance logo"
class="image"
style="width: 128px;"/>
<div class="content">
@Model.Title
</div>

View file

@ -1,4 +1,5 @@
@page "/passwordReset"
@using LBPUnion.ProjectLighthouse.Configuration
@using LBPUnion.ProjectLighthouse.Localization.StringLists
@model LBPUnion.ProjectLighthouse.Servers.Website.Pages.Login.PasswordResetPage
@ -40,7 +41,6 @@
<div class="column">
<h2 class="ui black image header centered">
<img src="~/logo-color.png" class="image" style="width: 128px;">
<div class="content">
@Model.Title
</div>

View file

@ -5,4 +5,10 @@ public class WebsiteConfiguration
public string MissingIconHash { get; set; } = "";
public bool ConvertAssetsOnStartup { get; set; } = true;
/*
* Decides whether or not to display the Lighthouse Pride logo
* during the month of June if enabled.
*/
public bool PrideEventEnabled { get; set; } = true;
}

View file

@ -11,7 +11,7 @@ public class ServerConfiguration : ConfigurationBase<ServerConfiguration>
// This is so Lighthouse can properly identify outdated configurations and update them with newer settings accordingly.
// If you are modifying anything here, this value MUST be incremented.
// Thanks for listening~
public override int ConfigVersion { get; set; } = 19;
public override int ConfigVersion { get; set; } = 20;
public override string ConfigName { get; set; } = "lighthouse.yml";
public string WebsiteListenUrl { get; set; } = "http://localhost:10060";

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB