Skip to content

Modern Docker Management, Designed for Everyone

feat: add animated logos

Kyle Mendella2f597e8d411
diff --git a/backend/internal/appimages/handler.go b/backend/internal/appimages/handler.go
index 8ea28e622..5978f5c1e 100644
--- a/backend/internal/appimages/handler.go
+++ b/backend/internal/appimages/handler.go
@@ -18,8 +18,10 @@ type AppImagesHandler struct {
// --- Huma Input/Output Wrappers ---
type GetLogoInput struct {
- Full bool `query:"full" default:"false" doc:"Return full logo instead of icon"`
- Color string `query:"color" doc:"Optional accent color override for preview (e.g., 'oklch(0.65 0.2 150)')"`
+ Full bool `query:"full" default:"false" doc:"Return full logo instead of icon"`
+ Color string `query:"color" doc:"Optional accent color override for preview (e.g., 'oklch(0.65 0.2 150)')"`
+ Animated bool `query:"animated" default:"false" doc:"Return trace-and-fill animated logo variant"`
+ Loop bool `query:"loop" default:"false" doc:"Loop the animated icon indefinitely (loader mode; animated icon only)"`
}
type GetPWAIconInput struct {
@@ -107,8 +109,11 @@ func (h *AppImagesHandler) GetLogo(ctx context.Context, input *GetLogoInput) (*G
if input.Full {
name = "logo-full"
}
+ if input.Animated {
+ name += "-animated"
+ }
- return h.getImageWithColor(name, input.Color)
+ return h.getImageWithColor(name, input.Color, input.Loop && name == "logo-animated")
}
// GetLogoEmail returns the application logo image for emails (PNG).
@@ -132,7 +137,7 @@ func (h *AppImagesHandler) GetPWAIcon(ctx context.Context, input *GetPWAIconInpu
}
func (h *AppImagesHandler) getImage(name string) (*GetAppImageOutput, error) {
- return h.getImageWithColor(name, "")
+ return h.getImageWithColor(name, "", false)
}
func (h *AppImagesHandler) getImageByFilenameInternal(filename string) (*GetAppImageOutput, error) {
@@ -144,8 +149,8 @@ func (h *AppImagesHandler) getImageByFilenameInternal(filename string) (*GetAppI
return h.getImage(name)
}
-func (h *AppImagesHandler) getImageWithColor(name string, colorOverride string) (*GetAppImageOutput, error) {
- imageData, mimeType, err := h.appImagesService.GetImageWithColor(name, colorOverride)
+func (h *AppImagesHandler) getImageWithColor(name string, colorOverride string, loop bool) (*GetAppImageOutput, error) {
+ imageData, mimeType, err := h.appImagesService.GetImageWithColor(name, colorOverride, loop)
if err != nil {
return nil, huma.Error500InternalServerError(errors.WithMessage(err, "Failed to retrieve image").Error())
}
@@ -153,7 +158,7 @@ func (h *AppImagesHandler) getImageWithColor(name string, colorOverride string)
// Always disable logo caching so theme/logo updates are reflected immediately.
// Keep cache for static app images that do not change at runtime.
cacheControl := "public, max-age=900, stale-while-revalidate=86400"
- if name == "logo" || name == "logo-full" || colorOverride != "" {
+ if IsLogoVariant(name) || colorOverride != "" {
cacheControl = "no-cache, no-store, must-revalidate"
}
diff --git a/backend/internal/appimages/service.go b/backend/internal/appimages/service.go
index ea7c5d8a3..7212473c9 100644
--- a/backend/internal/appimages/service.go
+++ b/backend/internal/appimages/service.go
@@ -60,7 +60,7 @@ func NewApplicationImagesService(embeddedFS embed.FS, settingsService *settings.
return service
}
-func (s *ApplicationImagesService) GetImageWithColor(name string, colorOverride string) ([]byte, string, error) {
+func (s *ApplicationImagesService) GetImageWithColor(name string, colorOverride string, loop bool) ([]byte, string, error) {
s.mu.RLock()
data, ok := s.imageData[name]
mimeType := s.mimeTypes[name]
@@ -71,13 +71,30 @@ func (s *ApplicationImagesService) GetImageWithColor(name string, colorOverride
}
// Apply dynamic color replacement for logo SVGs
- if (name == "logo" || name == "logo-full") && mimeType == "image/svg+xml" {
+ if IsLogoVariant(name) && mimeType == "image/svg+xml" {
data = s.applyAccentColorToSVGInternal(data, colorOverride)
}
+ // The animated mark ships both a one-shot and a looping keyframe set; loop
+ // mode swaps the animation shorthand so the trace repeats indefinitely.
+ if loop && name == "logo-animated" {
+ data = []byte(strings.Replace(string(data),
+ "animation: traceDraw 1.7s ease both;",
+ "animation: traceDrawLoop 2.6s ease infinite;", 1))
+ }
+
return data, mimeType, nil
}
+// IsLogoVariant reports whether the image name is one of the accent-colorable logo SVGs.
+func IsLogoVariant(name string) bool {
+ switch name {
+ case "logo", "logo-full", "logo-animated", "logo-full-animated":
+ return true
+ }
+ return false
+}
+
func (s *ApplicationImagesService) applyAccentColorToSVGInternal(svgData []byte, colorOverride string) []byte {
accentColor := settingstypes.DefaultAccentColor
if settingstypes.SafeAccentColor.MatchString(colorOverride) {
@@ -87,5 +104,7 @@ func (s *ApplicationImagesService) applyAccentColorToSVGInternal(svgData []byte,
svgStr := string(svgData)
svgStr = strings.ReplaceAll(svgStr, "fill:#6D28D9", "fill:"+accentColor)
svgStr = strings.ReplaceAll(svgStr, "fill:#6d28d9", "fill:"+accentColor)
+ svgStr = strings.ReplaceAll(svgStr, "stroke:#6D28D9", "stroke:"+accentColor)
+ svgStr = strings.ReplaceAll(svgStr, "stroke:#6d28d9", "stroke:"+accentColor)
return []byte(svgStr)
}
diff --git a/backend/resources/images/logo-animated.svg b/backend/resources/images/logo-animated.svg
new file mode 100644
index 000000000..b2749c5d5
--- /dev/null
+++ b/backend/resources/images/logo-animated.svg
@@ -0,0 +1,42 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 179.837 172.133" width="360" height="345">
+ <style>
+ .pc {
+ fill:#6d28d9;
+ stroke:#6d28d9;
+ stroke-width: 2;
+ stroke-dasharray: 1;
+ animation: traceDraw 1.7s ease both;
+ animation-delay: calc(var(--i) * 55ms);
+ }
+ @keyframes traceDraw {
+ 0% { fill-opacity: 0; stroke-opacity: 1; stroke-dashoffset: 1; }
+ 55% { fill-opacity: 0; stroke-dashoffset: 0; }
+ 85% { fill-opacity: 1; stroke-opacity: 1; }
+ 100% { fill-opacity: 1; stroke-opacity: 0; }
+ }
+ @keyframes traceDrawLoop {
+ 0% { fill-opacity: 0; stroke-opacity: 1; stroke-dashoffset: 1; }
+ 40% { fill-opacity: 0; stroke-dashoffset: 0; }
+ 60% { fill-opacity: 1; stroke-opacity: 1; }
+ 70% { fill-opacity: 1; stroke-opacity: 0; }
+ 85% { fill-opacity: 1; stroke-opacity: 0; }
+ 100% { fill-opacity: 0; stroke-opacity: 0; stroke-dashoffset: 1; }
+ }
+ @media (prefers-reduced-motion: reduce) { .pc { animation: none; stroke-opacity: 0; } }
+ </style>
+ <g transform="translate(-457.5,-292.86667)">
+ <path class="pc" style="--i:0" pathLength="1" d="m 580.2,346.3 c 0.7,0 1.2,-0.7 0.9,-1.3 -2,-5.3 -4.2,-10.5 -6.3,-15.8 -4.7,-11.5 -9.4,-23.1 -14,-34.7 -0.6,-1.4 -1.3,-1.9 -3.5,-1.5 -8.7,1.3 -17.6,0.7 -26.4,-0.1 -1.5,-0.1 -2.2,0.3 -2.7,1.4 -1.3,3.3 -2.7,6.6 -4.1,10 -5.7,14.2 -11.3,28.3 -17,42.5 -5.9,14.7 -11.9,29.3 -17.8,44 -6.2,15.4 -12,30.9 -18.5,46.1 -2.4,5.7 -8.7,19.2 -11.4,24.8 -0.6,1.2 -1.2,2.3 -1.9,3.3 h 31.8 c 0.1,-0.5 0.2,-0.9 0.4,-1.4 1.6,-4.6 4.6,-11.8 7.5,-18.5 v 0 L 513,405.8 c 0,-0.3 0.1,-0.7 0.3,-1.2 0.1,-0.3 0.2,-0.6 0.4,-1 2.4,-6 4.7,-11.9 7.1,-17.9 6.6,-16.8 13.1,-33.6 19.7,-50.3 1.1,-2.7 2.2,-5.4 3.3,-8.2 0.6,0.5 0.7,1.1 0.9,1.5 2.2,5.6 4.4,11.3 6.5,16.9 0.1,0.4 0.5,0.6 0.9,0.6 h 28.1 z"/>
+ <polygon class="pc" style="--i:1" pathLength="1" points="558.5 297.2 558.5 298.5 549.5 303.6 542.7 305.8 539.2 307.2 531 292.9 557.3 292.9"/>
+ <path class="pc" style="--i:2" pathLength="1" d="m 559.7,387 c 0,-2.5 0,-2.5 -2.5,-2.7 -4.3,-0.4 -8.7,-1 -13,-1.3 -2.6,-0.2 -5.2,-1 -7.7,0.2 -3.3,1.6 -6.6,3.2 -9.9,4.7 -0.6,0.3 -1.1,0.7 -1.1,1.4 0,1.5 0,2.9 0.1,4.4 0,0.8 0.3,1.5 1.4,1.6 0.8,0.1 1.2,0.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0.1 1.2,0.6 1.2,1.5 0,3.8 0,7.7 0,11.5 0,1.1 -0.5,1.4 -1.6,1.3 -3.9,-0.6 -7.8,-1.1 -11.7,-1.6 -1.3,-0.2 -1.8,-0.7 -1.8,-2.1 0.2,-1.8 0.1,-3.6 0.1,-5.4 z"/>
+ <path class="pc" style="--i:5" pathLength="1" d="m 578.6,383.6 c 0,-2.3 0,-4.7 0,-7 0,-0.9 0.4,-1.4 1.3,-1.3 4.2,0.5 8.5,1.1 12.7,1.6 0.9,0.1 1.2,0.5 1.2,1.4 0,2.9 0,5.8 0,8.7 0,0.8 -0.3,1.2 -1.1,1.4 -4.1,1.1 -8.3,2.2 -12.4,3.2 -1.5,0.4 -1.7,0.3 -1.7,-1.3 0,-2.1 0,-4.4 0,-6.7 z"/>
+ <path class="pc" style="--i:6" pathLength="1" d="m 562.6,368.5 c 0,-1.9 0,-3.8 0,-5.7 0,-0.9 0.3,-1.3 1.2,-1.6 3.5,-0.9 7,-1.9 10.5,-2.8 1.7,-0.4 1.8,-0.3 1.8,1.5 0,3.5 -0.1,7 0.2,10.5 0.1,1.3 -0.3,1.9 -1.7,2.2 -3.5,0.8 -6.9,1.7 -10.3,2.5 -1.6,0.4 -1.8,0.3 -1.8,-1.4 0.1,-1.7 0.1,-3.5 0.1,-5.2 z"/>
+ <path class="pc" style="--i:7" pathLength="1" d="m 596.1,367.7 c 0,-1.9 0,-3.9 0,-5.8 0,-0.9 0.3,-1.3 1.3,-1.2 3.6,0.5 7.1,1.2 10.6,2 0.7,0.2 1.1,0.6 1,1.3 -0.1,3.7 -0.2,7.5 -0.3,11.2 0,0.8 -0.5,1.1 -1.2,1 -3.5,-0.5 -7,-0.9 -10.5,-1.4 -0.9,-0.1 -0.9,-0.8 -0.9,-1.4 0,-1.9 0,-3.8 0,-5.7 z"/>
+ <path class="pc" style="--i:8" pathLength="1" d="m 552.4,374.6 c 0,1.7 0,3.4 0,5.1 0,0.9 -0.3,1.4 -1.3,1.3 -2.5,-0.2 -5,-0.4 -7.5,-0.6 -0.6,0 -0.8,-0.4 -0.9,-1 -0.4,-3.3 -0.2,-6.7 -0.2,-10 0,-0.9 0.6,-1.3 1.3,-1.5 2.5,-0.7 5.1,-0.6 7.6,0 0.8,0.2 0.9,0.9 0.9,1.6 0.1,1.7 0.1,3.4 0.1,5.1 z"/>
+ <path class="pc" style="--i:9" pathLength="1" d="m 596.4,382.7 c 0,-1.2 0,-2.4 0,-3.6 0,-1 0.4,-1.6 1.5,-1.4 3.4,0.5 6.8,1 10.2,1.4 0.7,0.1 0.9,0.4 1,1.1 0,0.1 0,0.2 0,0.3 0.3,4.8 0.3,4.7 -4.4,5.6 -2.3,0.4 -4.6,0.9 -6.8,1.4 -1.1,0.2 -1.4,-0.1 -1.4,-1.1 -0.1,-1.3 -0.1,-2.5 -0.1,-3.7 z"/>
+ <path class="pc" style="--i:10" pathLength="1" d="m 522.4,422.9 c 0,-1.8 1,-2.4 2.4,-2.9 5.2,-1.8 10.4,-3.7 15.7,-5.4 6.2,-2 12.4,-3.9 18.6,-5.9 2.7,-0.9 4.4,-2.7 5,-5.5 0.3,-1.7 1.4,-2.8 3.1,-3.4 13.3,-4.5 26.7,-8.4 40.6,-10.4 6.6,-1 13.2,-0.9 19.8,-0.5 2.5,0.2 4.9,0.4 7.3,1 2.7,0.7 2.8,0.9 2,3.5 -1.8,6.2 -4.6,11.9 -7.9,17.4 -3.3,5.4 -7,10.5 -9.9,16.1 -1.4,2.6 -2.6,5.3 -3.4,8.2 -0.2,0.7 -0.3,1.2 -1.1,0.6 -3.1,-2.3 -6.7,-2.9 -10.4,-3.2 -10.5,-0.8 -20.6,1.5 -30.7,4.4 -8,2.3 -15.9,5.1 -24.2,6.4 -5.8,0.9 -11.6,1.2 -17.4,-0.1 -1.1,-0.3 -1.9,-0.8 -2.5,-1.8 -3.2,-5.6 -5.7,-11.4 -6.8,-17.7 -0.1,-0.2 -0.2,-0.6 -0.2,-0.8 z"/>
+ <path class="pc" style="--i:11" pathLength="1" d="m 614.2,449.5 c -0.4,2.2 -0.9,4.4 -1.4,6.5 -0.1,0.3 -0.1,0.7 -0.1,1 -2.1,2.9 -5.7,5 -10,6 h -6.9 c -2.7,0 -5.3,-0.5 -7.8,-1.3 0,0 -0.1,0 -0.1,0 -2,-0.7 -4,-1.1 -6.1,-1.2 -5.3,-0.3 -10.5,0.8 -15.8,1.6 -5.3,0.8 -10.7,1.5 -16.1,1.3 -8.4,-0.3 -16.5,-2 -23.8,-6.3 -5,-3 -8.7,-7.2 -11.1,-12.5 -0.2,-0.5 -0.4,-1 -0.6,-1.5 0,-0.1 0,-0.3 0,-0.4 0.2,-0.2 0.4,-0.1 0.6,0.1 5.3,4.4 11.6,6.3 18.3,7.2 13.1,1.7 25.4,-1.5 37.5,-6 6.2,-2.3 12.4,-4.6 18.9,-5.7 5.4,-1 10.8,-1.3 16.2,-0.2 1.9,0.4 3.7,1 5.2,2.2 0.8,0.6 1.4,1.2 1.9,1.8 1.6,2 1.7,4.6 1.2,7.4 z"/>
+ <path class="pc" style="--i:12" pathLength="1" d="m 614.4,452.9 c -0.2,1.5 -0.9,2.9 -1.8,4.1 -2.1,2.9 -5.7,5 -10,6 -4.4,1 -9.6,0.8 -14.6,-1.3 0,0 0,0 -0.1,0 -12.3,-5 -20.3,-5 -21.5,-5 -1.2,0 15.5,-6.4 15.5,-6.4 l 7.7,-1.2 23.4,-7.2 c 0,0 0,0 0,0 0.2,0.2 2.8,2.6 1.4,11 z"/>
+ </g>
+</svg>
diff --git a/backend/resources/images/logo-full-animated.svg b/backend/resources/images/logo-full-animated.svg
new file mode 100644
index 000000000..9fdfa8a05
--- /dev/null
+++ b/backend/resources/images/logo-full-animated.svg
@@ -0,0 +1,42 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 456.9 111.859" width="640" height="157">
+ <style>
+ .pc {
+ fill:#6d28d9;
+ stroke:#6d28d9;
+ stroke-width: 1.5;
+ stroke-dasharray: 1;
+ animation: traceDraw 1.7s ease both;
+ animation-delay: calc(var(--i) * 55ms);
+ }
+ @keyframes traceDraw {
+ 0% { fill-opacity: 0; stroke-opacity: 1; stroke-dashoffset: 1; }
+ 55% { fill-opacity: 0; stroke-dashoffset: 0; }
+ 85% { fill-opacity: 1; stroke-opacity: 1; }
+ 100% { fill-opacity: 1; stroke-opacity: 0; }
+ }
+ @media (prefers-reduced-motion: reduce) { .pc { animation: none; stroke-opacity: 0; } }
+ </style>
+ <g transform="translate(-320.8,-328.84078)">
+ <path class="pc" style="--i:0" pathLength="1" d="m 400.6,363.7 c 0.4,0 0.8,-0.4 0.6,-0.9 -1.3,-3.4 -2.7,-6.9 -4.1,-10.3 -3.1,-7.5 -6.1,-15.1 -9.1,-22.6 -0.4,-0.9 -0.9,-1.2 -2.2,-1 -5.7,0.9 -11.4,0.4 -17.2,0 -1,-0.1 -1.4,0.2 -1.7,0.9 -0.9,2.2 -1.8,4.3 -2.7,6.5 -3.7,9.2 -7.4,18.4 -11.1,27.6 -3.8,9.6 -7.7,19.1 -11.6,28.6 -4,10 -7.8,20.1 -12.1,30 -1.6,3.7 -5.6,12.5 -7.4,16.1 -0.4,0.8 -0.8,1.5 -1.2,2.1 h 20.7 c 0.1,-0.3 0.2,-0.6 0.3,-0.9 1,-3 3,-7.6 4.9,-12 v 0 L 357,402.3 c 0,-0.2 0.1,-0.4 0.2,-0.8 0.1,-0.2 0.1,-0.4 0.2,-0.6 1.5,-3.9 3.1,-7.8 4.6,-11.6 4.3,-10.9 8.5,-21.8 12.8,-32.7 0.7,-1.8 1.4,-3.5 2.1,-5.3 0.4,0.3 0.5,0.7 0.6,1 1.4,3.7 2.8,7.3 4.3,11 0.1,0.2 0.3,0.4 0.6,0.4 z"/>
+ <polygon class="pc" style="--i:1" pathLength="1" points="386.5 331.8 386.5 332.6 380.7 335.9 376.2 337.4 373.9 338.3 368.6 328.9 385.8 329"/>
+ <path class="pc" style="--i:2" pathLength="1" d="m 387.3,390.2 c 0,-1.6 0,-1.6 -1.6,-1.8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,0 -1,-0.8 0,-1.9 0,-3.6 0,-5.3 z"/>
+ <path class="pc" style="--i:4" pathLength="1" d="m 399.6,375.9 c 0,-1.2 0,-2.3 0,-3.5 0,-0.8 0.2,-1.1 1.1,-1 2.6,0.3 5.2,0.7 7.9,1.2 0.6,0.1 0.8,0.4 0.8,1 0,2.5 0,5 0,7.5 0,0.7 -0.3,0.9 -1,0.8 -2.5,-0.4 -5.1,-0.7 -7.6,-1.1 -0.9,-0.1 -1.2,-0.5 -1.1,-1.3 0,-1.3 -0.1,-2.4 -0.1,-3.6 z"/>
+ <path class="pc" style="--i:5" pathLength="1" d="m 399.6,388 c 0,-1.5 0,-3 0,-4.5 0,-0.6 0.2,-0.9 0.9,-0.8 2.8,0.3 5.5,0.7 8.3,1 0.6,0.1 0.8,0.3 0.8,0.9 0,1.9 0,3.8 0,5.7 0,0.5 -0.2,0.8 -0.7,0.9 -2.7,0.7 -5.4,1.4 -8.1,2.1 -1,0.3 -1.1,0.2 -1.1,-0.9 -0.1,-1.4 -0.1,-2.9 -0.1,-4.4 z"/>
+ <path class="pc" style="--i:6" pathLength="1" d="m 389.2,378.1 c 0,-1.2 0,-2.5 0,-3.7 0,-0.6 0.2,-0.9 0.8,-1 2.3,-0.6 4.6,-1.3 6.9,-1.9 1.1,-0.3 1.2,-0.2 1.2,1 0,2.3 0,4.5 0.1,6.8 0.1,0.8 -0.2,1.3 -1.1,1.5 -2.2,0.5 -4.5,1.1 -6.7,1.6 -1,0.3 -1.1,0.2 -1.2,-0.9 0,-1.1 0,-2.2 0,-3.4 z"/>
+ <path class="pc" style="--i:7" pathLength="1" d="m 411,377.6 c 0,-1.3 0,-2.5 0,-3.8 0,-0.6 0.2,-0.9 0.9,-0.8 2.3,0.3 4.6,0.8 6.9,1.3 0.5,0.1 0.7,0.4 0.7,0.9 -0.1,2.4 -0.1,4.9 -0.2,7.3 0,0.5 -0.3,0.7 -0.8,0.7 -2.3,-0.3 -4.6,-0.6 -6.8,-0.9 -0.6,-0.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 -3.8,0.6 -7.5,0.8 -11.3,-0.1 -0.7,-0.2 -1.2,-0.5 -1.6,-1.2 -2.1,-3.6 -3.7,-7.4 -4.4,-11.5 0,-0.4 0,-0.6 -0.1,-0.7 z"/>
+ <path class="pc" style="--i:11" pathLength="1" d="m 422.8,430.9 c -0.3,1.4 -0.6,2.8 -0.9,4.3 0,0.2 -0.1,0.4 -0.1,0.6 -1.3,1.9 -3.7,3.3 -6.5,3.9 h -4.5 c -1.7,0 -3.4,-0.3 -5.1,-0.9 0,0 0,0 -0.1,0 -1.3,-0.4 -2.6,-0.7 -3.9,-0.8 -3.5,-0.2 -6.8,0.5 -10.2,1 -3.5,0.5 -6.9,1 -10.5,0.8 -5.5,-0.2 -10.7,-1.3 -15.5,-4.1 -3.3,-1.9 -5.7,-4.7 -7.3,-8.2 -0.1,-0.3 -0.3,-0.6 -0.4,-1 0,-0.1 0,-0.2 0,-0.2 0.2,-0.1 0.3,0 0.4,0 3.5,2.8 7.6,4.1 11.9,4.7 8.5,1.1 16.6,-1 24.4,-3.9 4,-1.5 8.1,-3 12.3,-3.7 3.5,-0.6 7,-0.8 10.5,-0.1 1.2,0.2 2.4,0.7 3.4,1.4 0.5,0.4 0.9,0.8 1.2,1.2 1.1,1.4 1.2,3.1 0.9,5 z"/>
+ <path class="pc" style="--i:12" pathLength="1" d="m 422.9,433.1 c -0.2,1 -0.6,1.9 -1.2,2.7 -1.3,1.9 -3.7,3.3 -6.5,3.9 -2.9,0.7 -6.2,0.5 -9.5,-0.9 0,0 0,0 0,0 -8,-3.2 -13.2,-3.2 -14,-3.2 -0.8,0 10.1,-4.2 10.1,-4.2 l 5,-0.8 15.2,-4.6 c 0,0 0,0 0,0 0.1,0 1.8,1.6 0.9,7.1 z"/>
+ <polygon class="pc" style="--i:13" pathLength="1" points="473.8 409.2 485.3 409.2 489.8 398.7 489.8 398.7 494 389.2 493.9 389.2 500.1 375 514.8 409.2 526.3 409.2 505.3 360.6 494.8 360.6"/>
+ <path class="pc" style="--i:14" pathLength="1" d="m 571.4,376.7 c 0,7.8 -3.1,12.8 -9.3,15.1 l 12.3,17.4 H 561 l -10.8,-15.5 h -7.5 v 15.5 h -10.9 v -48.7 h 18.4 c 7.6,0 13,1.3 16.2,3.8 3.4,2.6 5,6.8 5,12.4 z m -13.1,5.8 c 1.3,-1.2 2,-3.1 2,-5.7 0,-2.6 -0.7,-4.4 -2.1,-5.4 -1.4,-1 -3.8,-1.5 -7.3,-1.5 h -8.1 v 14.4 h 7.9 c 3.8,0 6.3,-0.6 7.6,-1.8 z"/>
+ <path class="pc" style="--i:15" pathLength="1" d="m 604.9,399.6 c 5.3,0 9.7,-2.1 13.1,-6.3 l 7,7.2 c -5.5,6.2 -12,9.3 -19.5,9.3 -7.5,0 -13.7,-2.4 -18.5,-7.1 -4.8,-4.7 -7.3,-10.7 -7.3,-17.9 0,-7.2 2.5,-13.2 7.4,-18.1 4.9,-4.8 11,-7.2 18.1,-7.2 8,0 14.7,3 20,9.1 l -6.8,7.7 c -3.4,-4.3 -7.7,-6.4 -12.8,-6.4 -4.1,0 -7.6,1.3 -10.5,4 -2.9,2.7 -4.3,6.3 -4.3,10.8 0,4.5 1.4,8.2 4.1,10.9 2.8,2.6 6.1,4 10,4 z"/>
+ <polygon class="pc" style="--i:16" pathLength="1" points="626.8 409.2 638.4 409.2 642.9 398.7 642.9 398.7 647 389.2 647 389.2 653.1 375 667.8 409.2 679.4 409.2 658.3 360.6 647.8 360.6"/>
+ <path class="pc" style="--i:17" pathLength="1" d="m 719,360.6 h 10.9 v 48.7 H 719 l -23.2,-30.5 v 30.5 H 685 v -48.7 h 10.2 l 23.9,31.3 v -31.3 z"/>
+ <path class="pc" style="--i:18" pathLength="1" d="m 741.9,360.6 v 9.7 h 10.9 v -0.1 H 777 v -9.7 h -35.1 z m 10.8,39 v 0 l -10.9,-0.1 v 9.7 h 35.9 v -9.6 z m 0,-10.1 h 21.8 v -9.3 h -32.6 v 9.3 z"/>
+ <polygon class="pc" style="--i:18" pathLength="1" points="763.4 365.2 759.8 364.4 753 364.4 741.9 370.3 777 370.2"/>
+ <polygon class="pc" style="--i:18" pathLength="1" points="767.2 403.4 759.8 404.4 755 404.4 741.9 399.5 777.7 399.6"/>
+ </g>
+</svg>
diff --git a/frontend/src/lib/components/oidc-status-panel.svelte b/frontend/src/lib/components/oidc-status-panel.svelte
index c4405a6d5..1a1c1619f 100644
--- a/frontend/src/lib/components/oidc-status-panel.svelte
+++ b/frontend/src/lib/components/oidc-status-panel.svelte
@@ -1,6 +1,8 @@
<script lang="ts">
import type { Snippet } from 'svelte';
- import { Spinner } from '#lib/components/ui/spinner/index.js';
+ import { getApplicationLogo } from '#lib/utils/docker';
+ import { accentColorPreviewStore } from '#lib/utils/theme';
+ import userStore from '#lib/stores/user-store';
import { m } from '#lib/paraglide/messages';
interface Props {
@@ -12,13 +14,19 @@
}
let { busy, busyTitle, busyDescription, error, children }: Props = $props();
+
+ const accentColor = $derived($accentColorPreviewStore);
+ const animationsEnabled = $derived($userStore?.preferences?.animationsEnabled ?? true);
+ const loaderLogoUrl = $derived(
+ getApplicationLogo(false, accentColor, accentColor, { animated: animationsEnabled, loop: animationsEnabled })
+ );
</script>
<div class="flex min-h-screen items-center justify-center bg-background">
<div class="w-full max-w-md space-y-8">
<div class="flex flex-col items-center text-center">
{#if busy}
- <Spinner class="size-12 text-primary" />
+ <img class="size-12" src={loaderLogoUrl} alt="" />
<h2 class="mt-6 text-2xl font-semibold">{busyTitle}</h2>
<p class="mt-2 text-sm text-muted-foreground">{busyDescription}</p>
{:else if error}
diff --git a/frontend/src/lib/components/sidebar/sidebar-collapsible-item.svelte b/frontend/src/lib/components/sidebar/sidebar-collapsible-item.svelte
index a5bb0b82d..8bb61a4a7 100644
--- a/frontend/src/lib/components/sidebar/sidebar-collapsible-item.svelte
+++ b/frontend/src/lib/components/sidebar/sidebar-collapsible-item.svelte
@@ -35,9 +35,13 @@
{/snippet}
<Collapsible.Root open={getIsOpen(item.url, item.isActive)} {onOpenChange} class="group/collapsible">
- <Sidebar.MenuItem class="flex-col">
+ <Sidebar.MenuItem class="flex-col *:flex-auto">
{@const Icon = item.icon}
- <Sidebar.MenuButton tooltipContent={showTooltip ? tooltipContent : undefined} isActive={item.isActive}>
+ <Sidebar.MenuButton
+ tooltipContent={showTooltip ? tooltipContent : undefined}
+ isActive={item.isActive}
+ class="group-data-[collapsible=icon]:mx-auto"
+ >
{#snippet child({ props })}
<a href={item.url} {...props}>
{#if item.icon}
diff --git a/frontend/src/lib/components/sidebar/sidebar-itemgroup.svelte b/frontend/src/lib/components/sidebar/sidebar-itemgroup.svelte
index c492324e9..005695b95 100644
--- a/frontend/src/lib/components/sidebar/sidebar-itemgroup.svelte
+++ b/frontend/src/lib/components/sidebar/sidebar-itemgroup.svelte
@@ -99,7 +99,7 @@
{/snippet}
<Sidebar.Group class="p-1.5">
- <Sidebar.GroupLabel class="h-7 px-1.5">{label}</Sidebar.GroupLabel>
+ <Sidebar.GroupLabel class="h-7 px-1.5 group-data-[collapsible=icon]:-mt-7">{label}</Sidebar.GroupLabel>
<Sidebar.Menu class="gap-0.5">
{#each enhancedItems as item (item.url)}
{#if (item.items?.length ?? 0) > 0}
diff --git a/frontend/src/lib/components/sidebar/sidebar-logo.svelte b/frontend/src/lib/components/sidebar/sidebar-logo.svelte
index 785f249aa..862ac4fa2 100644
--- a/frontend/src/lib/components/sidebar/sidebar-logo.svelte
+++ b/frontend/src/lib/components/sidebar/sidebar-logo.svelte
@@ -3,11 +3,13 @@
import { m } from '#lib/paraglide/messages';
import { getApplicationLogo } from '#lib/utils/docker';
import { accentColorPreviewStore } from '#lib/utils/theme';
+ import userStore from '#lib/stores/user-store';
let { isCollapsed }: { isCollapsed: boolean } = $props();
const accentColor = $derived($accentColorPreviewStore);
- const logoUrl = $derived(getApplicationLogo(!isCollapsed, accentColor, accentColor));
+ const animationsEnabled = $derived($userStore?.preferences?.animationsEnabled ?? true);
+ const logoUrl = $derived(getApplicationLogo(!isCollapsed, accentColor, accentColor, { animated: animationsEnabled }));
</script>
<div
diff --git a/frontend/src/lib/components/ui/sidebar/sidebar-content.svelte b/frontend/src/lib/components/ui/sidebar/sidebar-content.svelte
index 26d758388..206234df9 100644
--- a/frontend/src/lib/components/ui/sidebar/sidebar-content.svelte
+++ b/frontend/src/lib/components/ui/sidebar/sidebar-content.svelte
@@ -1,23 +1,15 @@
<script lang="ts">
import type { HTMLAttributes } from 'svelte/elements';
import { cn, type WithElementRef } from '#lib/utils.js';
- import { useSidebar } from './context.svelte.js';
let { ref = $bindable(null), class: className, children, ...restProps }: WithElementRef<HTMLAttributes<HTMLElement>> = $props();
-
- const sidebar = useSidebar();
</script>
<div
bind:this={ref}
data-slot="sidebar-content"
data-sidebar="content"
- class={cn(
- 'scrollbar-hide flex min-h-0 flex-1 flex-col gap-1 overflow-x-hidden overflow-y-auto',
- sidebar.hoverExpansionEnabled &&
- 'group-data-[collapsible=icon]:overflow-hidden group-data-[collapsible=icon]:group-data-[hovered=true]:overflow-x-hidden group-data-[collapsible=icon]:group-data-[hovered=true]:overflow-y-auto',
- className
- )}
+ class={cn('scrollbar-hide flex min-h-0 flex-1 flex-col gap-1 overflow-x-hidden overflow-y-auto', className)}
{...restProps}
>
{@render children?.()}
diff --git a/frontend/src/lib/components/ui/sidebar/sidebar-group.svelte b/frontend/src/lib/components/ui/sidebar/sidebar-group.svelte
index 3a87aa8d2..727846ead 100644
--- a/frontend/src/lib/components/ui/sidebar/sidebar-group.svelte
+++ b/frontend/src/lib/components/ui/sidebar/sidebar-group.svelte
@@ -9,7 +9,7 @@
bind:this={ref}
data-slot="sidebar-group"
data-sidebar="group"
- class={cn('relative flex w-full min-w-0 flex-col px-2 py-1', className)}
+ class={cn('relative flex w-full min-w-0 shrink-0 flex-col px-2 py-1', className)}
{...restProps}
>
{@render children?.()}
diff --git a/frontend/src/lib/components/ui/sidebar/sidebar.svelte b/frontend/src/lib/components/ui/sidebar/sidebar.svelte
index 453e2f706..dc3f8361c 100644
--- a/frontend/src/lib/components/ui/sidebar/sidebar.svelte
+++ b/frontend/src/lib/components/ui/sidebar/sidebar.svelte
@@ -36,7 +36,7 @@
data-collapsible={sidebar.state === 'collapsed' ? collapsible : ''}
data-variant={variant}
data-side={side}
- data-hovered={sidebar.isHovered ? 'true' : 'false'}
+ data-hovered={sidebar.hoverExpansionEnabled && sidebar.isHovered ? 'true' : 'false'}
data-slot="sidebar"
>
<!-- This is what handles the sidebar gap on desktop -->
diff --git a/frontend/src/lib/utils/docker.ts b/frontend/src/lib/utils/docker.ts
index aa453f3c9..5cb791d87 100644
--- a/frontend/src/lib/utils/docker.ts
+++ b/frontend/src/lib/utils/docker.ts
@@ -340,7 +340,12 @@ export function getThemedIconUrl(source?: ThemedIconSource | null, themeMode?: s
// --- App image URLs ---
-export function getApplicationLogo(full = false, colorOverride?: string, version?: string): string {
+export function getApplicationLogo(
+ full = false,
+ colorOverride?: string,
+ version?: string,
+ opts?: { animated?: boolean; loop?: boolean }
+): string {
const params = new URLSearchParams();
if (full) {
@@ -351,6 +356,14 @@ export function getApplicationLogo(full = false, colorOverride?: string, version
params.set('color', colorOverride);
}
+ if (opts?.animated) {
+ params.set('animated', 'true');
+ }
+
+ if (opts?.loop) {
+ params.set('loop', 'true');
+ }
+
if (version) {
params.set('v', version);
}
diff --git a/frontend/src/routes/(auth)/login/+page.svelte b/frontend/src/routes/(auth)/login/+page.svelte
index 6ef01d1c5..2f7a255fc 100644
--- a/frontend/src/routes/(auth)/login/+page.svelte
+++ b/frontend/src/routes/(auth)/login/+page.svelte
@@ -17,6 +17,7 @@
import { getEffectiveLandingPage } from '#lib/utils/navigation';
import { queryKeys } from '#lib/query/query-keys';
import { getApplicationLogo } from '#lib/utils/docker';
+ import { accentColorPreviewStore } from '#lib/utils/theme';
import { ArcaneButton } from '#lib/components/arcane-button/index.js';
import AuthAmbient from '#lib/components/auth/auth-ambient.svelte';
import MFAChallenge from '#lib/components/auth/mfa-challenge.svelte';
@@ -32,7 +33,9 @@
let passkeySupported = $state(false);
const queryClient = useQueryClient();
- const logoUrl = getApplicationLogo();
+ const accentColor = $derived($accentColorPreviewStore);
+ const animationsEnabled = $derived($userStore?.preferences?.animationsEnabled ?? true);
+ const logoUrl = $derived(getApplicationLogo(true, accentColor, accentColor, { animated: animationsEnabled }));
const oidcEnabledBySettings = $derived(data.settings?.oidcEnabled === true);
const showOidcLoginButton = $derived(oidcEnabledBySettings);
@@ -153,259 +156,240 @@
<AuthAmbient />
-<div class="relative z-[var(--arcane-z-raised)] flex min-h-dvh justify-center lg:px-8">
- <div class="grid min-h-dvh w-full max-w-screen-2xl grid-cols-1 lg:grid-cols-[1.05fr_minmax(420px,0.95fr)]">
- <aside class="showcase relative hidden flex-col justify-between overflow-hidden p-10 lg:flex xl:p-14">
- <div class="relative z-[var(--arcane-z-raised)] flex items-center gap-3">
- <div class="inline-flex size-10 items-center justify-center rounded-xl border bg-card/40 ring-1 ring-border/40">
- <img class="h-6 w-auto" src={logoUrl} alt="" />
- </div>
- <div class="flex flex-col leading-tight">
- <span class="text-sm font-medium tracking-wide text-foreground/90">{m.layout_title()}</span>
- {#if data.versionInformation?.displayVersion}
- <span class="font-mono text-[10px] tracking-wider text-muted-foreground/60"
- >{data.versionInformation.displayVersion}</span
- >
- {/if}
- </div>
- </div>
-
- <div class="relative z-[var(--arcane-z-raised)] max-w-xl">
- <h2 class="text-5xl leading-[1.05] font-semibold tracking-tight text-balance text-foreground xl:text-6xl">
- {m.auth_tagline_line1()}
- <span
- class="bg-gradient-to-br from-[var(--primary)] via-[var(--primary)] to-foreground/70 bg-clip-text text-transparent"
- >{m.auth_tagline_line2()}</span
- >
- </h2>
- </div>
-
- <div class="relative z-[var(--arcane-z-raised)] h-8"></div>
- </aside>
-
- <section class="form-pane relative flex min-h-dvh flex-col items-center justify-center p-6 sm:p-10 lg:p-10 xl:p-14">
- <div class="mb-8 flex w-full max-w-md justify-center lg:hidden">
- <div
- class="flex items-center justify-center rounded-2xl border bg-card/80 p-5 shadow-[0_8px_32px_-8px_rgba(0,0,0,0.35)] ring-1 ring-border/40"
+<div class="relative z-[var(--arcane-z-raised)] flex min-h-dvh items-center justify-center p-6">
+ <div class="w-full max-w-[400px]">
+ <div class="flex flex-col items-center">
+ <img class="logo h-12 w-auto sm:h-14" src={logoUrl} alt={m.layout_title()} />
+ {#if data.versionInformation?.displayVersion}
+ <span class="enter mt-3 font-mono text-[10px] tracking-[0.2em] text-muted-foreground/60 uppercase" style="--d: 500ms"
+ >{data.versionInformation.displayVersion}</span
>
- <img class="h-16 w-auto" src={logoUrl} alt={m.layout_title()} />
- </div>
- </div>
-
- <div class="login-card-wrap relative w-full sm:w-[26rem] sm:max-w-full">
- <div class="mb-8 h-px w-10 bg-primary/70 shadow-[0_0_8px_var(--primary)]"></div>
+ {/if}
+ </div>
- <div class="mb-8 flex flex-col text-left">
- <h1 class="text-3xl font-semibold tracking-tight sm:text-[2rem]">{m.welcome_back()}</h1>
- <p class="mt-2 text-sm text-muted-foreground">{m.auth_login_subtitle()}</p>
- </div>
-
- <div class="space-y-4">
- {#if data.error}
- <Alert.Root variant="destructive">
- <AlertIcon class="size-4" />
- <Alert.Title>{m.auth_login_problem_title()}</Alert.Title>
- <Alert.Description>
- {#if data.error === 'oidc_invalid_response'}
- {m.auth_oidc_invalid_response()}
- {:else if data.error === 'oidc_misconfigured'}
- {m.auth_oidc_misconfigured()}
- {:else if data.error === 'oidc_userinfo_failed'}
- {m.auth_oidc_userinfo_failed()}
- {:else if data.error === 'oidc_missing_sub'}
- {m.auth_oidc_missing_sub()}
- {:else if data.error === 'oidc_email_collision'}
- {m.auth_oidc_email_collision()}
- {:else if data.error === 'oidc_token_error'}
- {m.auth_oidc_token_error()}
- {:else if data.error === 'user_processing_failed'}
- {m.auth_user_processing_failed()}
- {:else if data.errorMessage}
- {data.errorMessage}
- {:else}
- {m.auth_unexpected_error()}
- {/if}
- </Alert.Description>
- </Alert.Root>
- {/if}
-
- {#if data.errorMessage && !data.error}
- <Alert.Root variant="destructive">
- <AlertIcon class="size-4" />
- <Alert.Title>{m.auth_login_problem_title()}</Alert.Title>
- <Alert.Description>{data.errorMessage}</Alert.Description>
- </Alert.Root>
- {/if}
+ <div class="panel enter mt-10 rounded-2xl border border-border/50 bg-card/40 p-6 backdrop-blur-xl sm:p-8" style="--d: 650ms">
+ <div class="mb-7 text-center">
+ <h1 class="text-2xl font-semibold tracking-tight">{m.welcome_back()}</h1>
+ <p class="mt-1.5 text-sm text-muted-foreground">{m.auth_login_subtitle()}</p>
+ </div>
- {#if error}
+ <div class="space-y-4">
+ {#if data.error}
+ <Alert.Root variant="destructive">
+ <AlertIcon class="size-4" />
+ <Alert.Title>{m.auth_login_problem_title()}</Alert.Title>
+ <Alert.Description>
+ {#if data.error === 'oidc_invalid_response'}
+ {m.auth_oidc_invalid_response()}
+ {:else if data.error === 'oidc_misconfigured'}
+ {m.auth_oidc_misconfigured()}
+ {:else if data.error === 'oidc_userinfo_failed'}
+ {m.auth_oidc_userinfo_failed()}
+ {:else if data.error === 'oidc_missing_sub'}
+ {m.auth_oidc_missing_sub()}
+ {:else if data.error === 'oidc_email_collision'}
+ {m.auth_oidc_email_collision()}
+ {:else if data.error === 'oidc_token_error'}
+ {m.auth_oidc_token_error()}
+ {:else if data.error === 'user_processing_failed'}
+ {m.auth_user_processing_failed()}
+ {:else if data.errorMessage}
+ {data.errorMessage}
+ {:else}
+ {m.auth_unexpected_error()}
+ {/if}
+ </Alert.Description>
+ </Alert.Root>
+ {/if}
+
+ {#if data.errorMessage && !data.error}
+ <Alert.Root variant="destructive">
+ <AlertIcon class="size-4" />
+ <Alert.Title>{m.auth_login_problem_title()}</Alert.Title>
+ <Alert.Description>{data.errorMessage}</Alert.Description>
+ </Alert.Root>
+ {/if}
+
+ {#if error}
+ <Alert.Root variant="destructive">
+ <AlertIcon class="size-4" />
+ <Alert.Title>{m.auth_failed_title()}</Alert.Title>
+ <Alert.Description>{error}</Alert.Description>
+ </Alert.Root>
+ {/if}
+
+ {#if mfaChallenge}
+ <MFAChallenge
+ challenge={mfaChallenge}
+ onComplete={completeMFA}
+ onCancel={() => {
+ mfaChallenge = null;
+ error = null;
+ }}
+ />
+ {:else}
+ {#if !showLocalLoginForm && !showOidcLoginButton && !passkeySupported}
<Alert.Root variant="destructive">
<AlertIcon class="size-4" />
- <Alert.Title>{m.auth_failed_title()}</Alert.Title>
- <Alert.Description>{error}</Alert.Description>
+ <Alert.Title>{m.auth_no_login_methods_title()}</Alert.Title>
+ <Alert.Description>{m.auth_no_login_methods_description()}</Alert.Description>
</Alert.Root>
{/if}
- {#if mfaChallenge}
- <MFAChallenge
- challenge={mfaChallenge}
- onComplete={completeMFA}
- onCancel={() => {
- mfaChallenge = null;
- error = null;
- }}
- />
- {:else}
- {#if !showLocalLoginForm && !showOidcLoginButton && !passkeySupported}
- <Alert.Root variant="destructive">
- <AlertIcon class="size-4" />
- <Alert.Title>{m.auth_no_login_methods_title()}</Alert.Title>
- <Alert.Description>{m.auth_no_login_methods_description()}</Alert.Description>
- </Alert.Root>
- {/if}
-
- {#if showLocalLoginForm}
- <form
- id="login-form"
- name="login"
- action=""
- method="post"
- onsubmit={handleLogin}
- class="space-y-4"
- autocomplete="on"
- >
- <div class="space-y-2">
- <Label for="username" class="text-xs">{m.common_username()}</Label>
- <InputGroup.Root role={undefined}>
- <InputGroup.Addon role={undefined}>
- <UserIcon />
- </InputGroup.Addon>
- <InputGroup.Input
- id="username"
- name="username"
- type="text"
- autocomplete="username"
- aria-label={m.common_username()}
- required
- bind:value={username}
- placeholder={m.auth_username_placeholder()}
- disabled={isAnyLoading}
- />
- </InputGroup.Root>
- </div>
- <div class="space-y-2">
- <Label for="password" class="text-xs">{m.common_password()}</Label>
- <InputGroup.Root role={undefined}>
- <InputGroup.Addon role={undefined}>
- <LockIcon />
- </InputGroup.Addon>
- <InputGroup.Input
- id="password"
- name="password"
- type="password"
- autocomplete="current-password"
- aria-label={m.common_password()}
- required
- bind:value={password}
- placeholder={m.auth_password_placeholder()}
- disabled={isAnyLoading}
- />
- </InputGroup.Root>
- </div>
- <ArcaneButton type="submit" action="login" loading={isLocalLoading} disabled={isAnyLoading} hoverEffect="none" />
- </form>
- {/if}
-
- {#if showDivider}
- <div class="flex items-center gap-3 py-1 text-xs text-muted-foreground">
- <div class="h-px flex-1 bg-border/60"></div>
- <span>{m.auth_or_continue()}</span>
- <div class="h-px flex-1 bg-border/60"></div>
- </div>
- {/if}
-
- {#if showProviderRow}
- <div class="flex flex-wrap items-center gap-2">
- {#if showOidcLoginButton}
- <ArcaneButton
- action="oidc_login"
- hoverEffect="none"
- class="min-w-0 flex-1"
- onclick={() => handleOidcLogin()}
- loading={isOidcLoading}
+ {#if showLocalLoginForm}
+ <form id="login-form" name="login" action="" method="post" onsubmit={handleLogin} class="space-y-4" autocomplete="on">
+ <div class="space-y-2">
+ <Label for="username" class="text-xs">{m.common_username()}</Label>
+ <InputGroup.Root role={undefined}>
+ <InputGroup.Addon role={undefined}>
+ <UserIcon />
+ </InputGroup.Addon>
+ <InputGroup.Input
+ id="username"
+ name="username"
+ type="text"
+ autocomplete="username"
+ aria-label={m.common_username()}
+ required
+ bind:value={username}
+ placeholder={m.auth_username_placeholder()}
disabled={isAnyLoading}
- icon={null}
- customLabel=""
- >
- {#if oidcProviderLogoUrl}
- <img src={oidcProviderLogoUrl} alt="" class="size-4 object-contain" />
- {:else}
- <OpenIdIcon class="size-4" />
- {/if}
- <span class="truncate">{oidcButtonLabel}</span>
- </ArcaneButton>
- {/if}
-
- {#if passkeySupported}
- <ArcaneButton
- action="login"
- icon={ApiKeyIcon}
- customLabel={m.common_passkey()}
- hoverEffect="none"
- class="min-w-0 flex-1"
- loading={isPasskeyLoading}
+ />
+ </InputGroup.Root>
+ </div>
+ <div class="space-y-2">
+ <Label for="password" class="text-xs">{m.common_password()}</Label>
+ <InputGroup.Root role={undefined}>
+ <InputGroup.Addon role={undefined}>
+ <LockIcon />
+ </InputGroup.Addon>
+ <InputGroup.Input
+ id="password"
+ name="password"
+ type="password"
+ autocomplete="current-password"
+ aria-label={m.common_password()}
+ required
+ bind:value={password}
+ placeholder={m.auth_password_placeholder()}
disabled={isAnyLoading}
- onclick={() => {
- error = null;
- passkeyLoginMutation.mutate();
- }}
/>
- {/if}
+ </InputGroup.Root>
</div>
- {/if}
+ <ArcaneButton type="submit" action="login" loading={isLocalLoading} disabled={isAnyLoading} hoverEffect="none" />
+ </form>
{/if}
- </div>
-
- <div class="mt-8 flex items-center justify-between gap-4 lg:hidden">
- <a
- href="https://github.com/ofkm/arcane"
- target="_blank"
- rel="noopener noreferrer"
- class="inline-flex items-center gap-1.5 rounded-full border bg-card/50 px-3 py-1.5 text-xs text-muted-foreground shadow-sm ring-1 ring-border/40 transition-colors hover:bg-card/70 hover:text-foreground"
- >
- <GithubIcon class="size-3.5" />
- {m.common_view_on_github()}
- </a>
- {#if data.versionInformation?.displayVersion}
- <span class="font-mono text-[11px] tracking-wider text-muted-foreground/60"
- >{data.versionInformation.displayVersion}</span
- >
+
+ {#if showDivider}
+ <div class="flex items-center gap-3 py-1 text-xs text-muted-foreground">
+ <div class="h-px flex-1 bg-border/60"></div>
+ <span>{m.auth_or_continue()}</span>
+ <div class="h-px flex-1 bg-border/60"></div>
+ </div>
{/if}
- </div>
- </div>
- </section>
- </div>
- <div class="pointer-events-none absolute right-0 bottom-10 left-0 z-[var(--arcane-z-sticky)] hidden justify-center lg:flex">
- <a
- href="https://github.com/ofkm/arcane"
- target="_blank"
- rel="noopener noreferrer"
- class="pointer-events-auto inline-flex items-center gap-1.5 rounded-full border bg-card/50 px-3 py-1.5 text-xs text-muted-foreground shadow-sm ring-1 ring-border/40 transition-colors hover:bg-card/70 hover:text-foreground"
- >
- <GithubIcon class="size-3.5" />
- {m.common_view_on_github()}
- </a>
+ {#if showProviderRow}
+ <div class="flex flex-wrap items-center gap-2">
+ {#if showOidcLoginButton}
+ <ArcaneButton
+ action="oidc_login"
+ hoverEffect="none"
+ class="min-w-0 flex-1"
+ onclick={() => handleOidcLogin()}
+ loading={isOidcLoading}
+ disabled={isAnyLoading}
+ icon={null}
+ customLabel=""
+ >
+ {#if oidcProviderLogoUrl}
+ <img src={oidcProviderLogoUrl} alt="" class="size-4 object-contain" />
+ {:else}
+ <OpenIdIcon class="size-4" />
+ {/if}
+ <span class="truncate">{oidcButtonLabel}</span>
+ </ArcaneButton>
+ {/if}
+
+ {#if passkeySupported}
+ <ArcaneButton
+ action="login"
+ icon={ApiKeyIcon}
+ customLabel={m.common_passkey()}
+ hoverEffect="none"
+ class="min-w-0 flex-1"
+ loading={isPasskeyLoading}
+ disabled={isAnyLoading}
+ onclick={() => {
+ error = null;
+ passkeyLoginMutation.mutate();
+ }}
+ />
+ {/if}
+ </div>
+ {/if}
+ {/if}
+ </div>
+ </div>
+
+ <div class="enter mt-8 flex justify-center" style="--d: 900ms">
+ <a
+ href="https://github.com/ofkm/arcane"
+ target="_blank"
+ rel="noopener noreferrer"
+ class="inline-flex items-center gap-1.5 text-xs text-muted-foreground/70 transition-colors hover:text-foreground"
+ >
+ <GithubIcon class="size-3.5" />
+ {m.common_view_on_github()}
+ </a>
+ </div>
</div>
</div>
<style>
- .showcase {
+ /* Page elements rise in staggered behind the logo's trace-and-fill draw,
+ so the form appears as the wordmark finishes filling. */
+ .enter {
+ opacity: 0;
+ animation: rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
+ animation-delay: var(--d, 0ms);
+ }
+
+ @keyframes rise {
+ from {
+ opacity: 0;
+ transform: translateY(10px);
+ }
+ to {
+ opacity: 1;
+ transform: none;
+ }
+ }
+
+ .logo {
+ filter: drop-shadow(0 0 28px color-mix(in oklab, var(--primary) 45%, transparent));
+ }
+
+ /* Accent hairline along the panel's top edge, echoing the logo trace. */
+ .panel {
position: relative;
- isolation: isolate;
+ overflow: hidden;
+ }
+
+ .panel::before {
+ content: '';
+ position: absolute;
+ top: 0;
+ right: 1.5rem;
+ left: 1.5rem;
+ height: 1px;
+ background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--primary) 60%, transparent), transparent);
}
- .form-pane {
- isolation: isolate;
- contain: layout paint;
+ @media (prefers-reduced-motion: reduce) {
+ .enter {
+ animation: none;
+ opacity: 1;
+ transform: none;
+ }
}
</style>