diff --git a/web/public/logo.webp b/web/public/logo.webp
new file mode 100644
index 0000000..1ccc689
Binary files /dev/null and b/web/public/logo.webp differ
diff --git a/web/src/layout/AppShell.tsx b/web/src/layout/AppShell.tsx
index 174498c..8b9d2c5 100644
--- a/web/src/layout/AppShell.tsx
+++ b/web/src/layout/AppShell.tsx
@@ -233,7 +233,11 @@ export default function AppShell({ user, children }: { user: CurrentUser; childr
+
+
+
+ {environment?.name && {environment.name}}
Sign in with your homelab identity provider to continue.
diff --git a/web/src/styles.css b/web/src/styles.css index c57cb51..cebad70 100644 --- a/web/src/styles.css +++ b/web/src/styles.css @@ -29,11 +29,44 @@ margin-bottom: 0.5rem; } +/* The logo stands in for the heading; an environment badge, when there is one, sits under it. */ +.login-logo { + display: flex; + flex-direction: column; + align-items: center; + gap: 0.25rem; + margin: -0.5rem 0 0.75rem; +} + +/* The picture has empty margin around the logo itself; this trims it so the logo fills the card. */ +.logo-frame { + display: block; + width: 100%; + overflow: hidden; +} + +.logo-frame img { + display: block; + width: 122%; + max-width: none; + height: auto; + margin: -16% -11%; +} + .login-card p { color: var(--tblr-secondary); margin-bottom: 1.5rem; } +/* The logo in the sidebar, in place of the name. */ +.navbar-brand .logo-frame { + width: 11rem; +} + +.navbar-brand a { + display: block; +} + /* An installation told to look different (ENVIRONMENT_NAME / ENVIRONMENT_COLOR on the server), so a dev copy can't be taken for production. */ html[data-env] .navbar-vertical { background-color: var(--hlm-env-color) !important;