mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-30 16:58:38 +00:00
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:
parent
2609ec8407
commit
572c942ee8
6 changed files with 15 additions and 4 deletions
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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;
|
||||
}
|
|
@ -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";
|
||||
|
|
BIN
ProjectLighthouse/StaticFiles/logo-pride.png
Normal file
BIN
ProjectLighthouse/StaticFiles/logo-pride.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.4 MiB |
Loading…
Add table
Add a link
Reference in a new issue