Skip to content

Commit 36ff351

Browse files
committed
Keep the sign-in background photo
login-bg.jpg is the SkyWalking website's home background, licensed for the project, so the sign-in and Connect an agent pages keep it. This restores both pages, the Horizon theme tagline, the admin-pages doc line and the 1.1.0 changelog to what main has.
1 parent 074a12f commit 36ff351

7 files changed

Lines changed: 30 additions & 13 deletions

File tree

‎apps/ui/src/assets/login-bg.jpg‎

2.68 MB
Loading

‎apps/ui/src/features/auth/LoginView.vue‎

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,12 @@ import { computed, onMounted, onUnmounted, ref } from 'vue';
2020
import { useRoute, useRouter } from 'vue-router';
2121
import { useI18n } from 'vue-i18n';
2222
// Full "SkyWalking" wordmark + moon, white-fill. The login page's
23-
// backdrop is always dark, so the logo stays white
23+
// backdrop is always the dark canyon photo, so the logo stays white
2424
// regardless of which theme the operator has picked for the post-
2525
// login app. (The sidebar logo DOES swap to blue on light themes —
2626
// see AppSidebar.vue — because that surface follows the theme.)
2727
import logoSw from '@/assets/icons/logo-sw.svg?raw';
28+
import loginBgUrl from '@/assets/login-bg.jpg?url';
2829
import { useAuthStore } from '@/state/auth';
2930
import { bff, API_BASE, type SsoProvider } from '@/api/client';
3031
import type { AuthHealth } from '@/api/scopes/admin-auth';
@@ -244,7 +245,10 @@ async function submit(): Promise<void> {
244245
</script>
245246

246247
<template>
247-
<div class="stage">
248+
<div class="stage" :style="{ backgroundImage: `url(${loginBgUrl})` }">
249+
<!-- Desaturate + dim the photo so the UI floats above. -->
250+
<div class="dim" />
251+
<!-- Color wash tying the canyon orange to the brand palette. -->
248252
<div class="wash" />
249253
<!-- Subtle grid overlay. -->
250254
<div class="grid" />
@@ -452,21 +456,27 @@ async function submit(): Promise<void> {
452456
overflow: hidden;
453457
color: var(--sw-fg-0);
454458
font-family: var(--sw-sans);
455-
/* Not --sw-bg-0: the backdrop stays dark on a light theme too, because
456-
the white logo and the card are drawn for it. */
457-
background-color: #0a0d12;
459+
background-size: cover;
460+
background-position: center;
461+
background-color: var(--sw-bg-0);
458462
/* Flex column lays out top / main / footer in flow, so nothing
459463
overlaps on short viewports and the card stays centered while
460464
real estate is available. */
461465
display: flex;
462466
flex-direction: column;
463467
}
468+
.dim,
464469
.wash,
465470
.grid {
466471
position: absolute;
467472
inset: 0;
468473
pointer-events: none;
469474
}
475+
.dim {
476+
background: rgba(10, 13, 18, 0.62);
477+
backdrop-filter: saturate(0.55) blur(1px);
478+
-webkit-backdrop-filter: saturate(0.55) blur(1px);
479+
}
470480
.wash {
471481
/* Viewport-relative sizes so the orange/purple washes scale on
472482
ultra-wide and ultra-tall screens (5K, portrait phones). Caps with

‎apps/ui/src/features/auth/OAuthConsentView.vue‎

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ import { computed, onMounted, ref } from 'vue';
3333
import { useRoute } from 'vue-router';
3434
import { useI18n } from 'vue-i18n';
3535
import logoSw from '@/assets/icons/logo-sw.svg?raw';
36+
import loginBgUrl from '@/assets/login-bg.jpg?url';
3637
import { bff, type ConsentRequest } from '@/api/client';
3738
3839
const { t } = useI18n({ useScope: 'global' });
@@ -101,7 +102,8 @@ async function decide(approve: boolean): Promise<void> {
101102
</script>
102103

103104
<template>
104-
<div class="stage">
105+
<div class="stage" :style="{ backgroundImage: `url(${loginBgUrl})` }">
106+
<div class="dim" />
105107
<div class="wash" />
106108

107109
<header class="top">
@@ -197,14 +199,21 @@ async function decide(approve: boolean): Promise<void> {
197199
.stage {
198200
position: fixed;
199201
inset: 0;
200-
/* Dark on every theme, like the sign-in page it continues. */
201-
background-color: #0a0d12;
202+
background-size: cover;
203+
background-position: center;
202204
display: flex;
203205
flex-direction: column;
204206
}
207+
.dim,
205208
.wash {
206209
position: absolute;
207210
inset: 0;
211+
}
212+
.dim {
213+
background: rgb(6 10 16 / 82%);
214+
backdrop-filter: saturate(60%);
215+
}
216+
.wash {
208217
background: linear-gradient(160deg, rgb(255 138 60 / 10%), rgb(10 16 26 / 60%));
209218
}
210219
.top {

‎apps/ui/src/state/theme.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export interface ThemeDef {
7575
export const AVAILABLE_THEMES: readonly ThemeDef[] = [
7676
{
7777
id: 'horizon', label: 'Horizon', tag: 'default',
78-
tagline: 'Dark ground · amber accent',
78+
tagline: 'Dark · amber accent · canyon hero',
7979
description: 'The shipped SkyWalking NG look. Dense, warm, observability-first.',
8080
appearance: 'dark', font: 'Inter', radius: 6, density: 'Compact',
8181
bg0: '#0a0d12', bg1: '#0f131a', bg2: '#151a23', line: '#232a37',

‎docs/access-control/admin-pages.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Three pages under `/admin/` surface authentication, user, and RBAC state for liv
88

99
The redesigned login page:
1010

11-
- Full-bleed dark background with an amber and purple glow, the same on every theme.
11+
- Full-bleed canyon background (the SkyWalking homepage backdrop).
1212
- Centered glass-morphism card with the Horizon wordmark.
1313
- **Inline auth-status pill** that adapts to the active backend:
1414
- Green: local backend, **or** LDAP backend with the directory reachable.

‎docs/changelog/1.1.0.md‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -434,8 +434,6 @@ The **3D Infra Map** opens framed on the tiers that hold services. A deployment
434434

435435
### Fixes
436436

437-
**The sign-in page and the Connect an agent page no longer show the canyon photograph.** It came from a stock-photo library whose terms do not let it be redistributed under the Apache License, so the release no longer ships it. Both pages keep their dark background, the amber and purple glow and the faint grid, on every theme, Daybreak included.
438-
439437
**The topbar's time-range label pushed the bar out of shape on a narrow window.** *This page uses its own time range* is the longest label the chip carries, and on a triage page in a narrow window it grew past its share and shoved the rest of the topbar along. It now shortens with an ellipsis, and the whole sentence stays in the button's tooltip.
440438

441439
**On a light theme the browser still drew its controls dark.** `color-scheme` was declared once as `dark` and never turned back for **Daybreak**, so the calendar icon was white on a white field, native dropdowns and scrollbars stayed dark, and the focus ring was the dark-mode one. It now follows the theme's own appearance, so any light theme is covered.

‎packages/design-tokens/src/themes.css‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
* Token values are LIFTED VERBATIM from the design bundle's
2121
* `screens/style-setup.jsx`. The 5 bundled themes are:
2222
*
23-
* horizon default · dark · amber accent
23+
* horizon default · dark · amber accent · canyon hero
2424
* meridian dense · dark · indigo accent · navy ground
2525
* obsidian high-contrast · dark · cyan accent · true-black, monospaced
2626
* daybreak light · violet accent · airy

0 commit comments

Comments
 (0)