refactor: use optimized image for background (#1110)

This commit is contained in:
Stavros
2026-09-01 00:18:35 +03:00
committed by GitHub
parent 11ba687dd6
commit b01f49cc44
7 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -204,7 +204,7 @@ TINYAUTH_UI_TITLE="Tinyauth"
# Message displayed on the forgot password page. # Message displayed on the forgot password page.
TINYAUTH_UI_FORGOTPASSWORDMESSAGE="You can change your password by changing the configuration." TINYAUTH_UI_FORGOTPASSWORDMESSAGE="You can change your password by changing the configuration."
# Path to the background image. # Path to the background image.
TINYAUTH_UI_BACKGROUNDIMAGE="/background.jpg" TINYAUTH_UI_BACKGROUNDIMAGE="/background.webp"
# Enable UI warnings. # Enable UI warnings.
TINYAUTH_UI_WARNINGSENABLED=true TINYAUTH_UI_WARNINGSENABLED=true
+1 -1
View File
@@ -87,4 +87,4 @@ A huge thank you to [selfh.st](https://selfh.st) for their generous donation to
- **Freepik** for providing the police hat and badge. - **Freepik** for providing the police hat and badge.
- **Renee French** for the original gopher logo. - **Renee French** for the original gopher logo.
- **Syrhu** for providing the background image of the app. - [Siru Zhou](https://unsplash.com/@syrhu) for providing the background image of the app.
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 530 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 224 KiB

+1 -1
View File
@@ -53,7 +53,7 @@ func NewDefaultConfiguration(runtimeEnv RuntimeEnv) *Config {
UI: UIConfig{ UI: UIConfig{
Title: "Tinyauth", Title: "Tinyauth",
ForgotPasswordMessage: "You can change your password by changing the configuration.", ForgotPasswordMessage: "You can change your password by changing the configuration.",
BackgroundImage: "/background.jpg", BackgroundImage: "/background.webp",
WarningsEnabled: true, WarningsEnabled: true,
}, },
LDAP: LDAPConfig{ LDAP: LDAPConfig{
+1 -1
View File
@@ -18,7 +18,7 @@ func CreateTestConfigs(t *testing.T) (model.Config, model.RuntimeConfig) {
UI: model.UIConfig{ UI: model.UIConfig{
Title: "Tinyauth Test", Title: "Tinyauth Test",
ForgotPasswordMessage: "foo", ForgotPasswordMessage: "foo",
BackgroundImage: "/background.jpg", BackgroundImage: "/background.webp",
WarningsEnabled: true, WarningsEnabled: true,
}, },
OAuth: model.OAuthConfig{ OAuth: model.OAuthConfig{