Support configurable background image and transparency (#1126)

This commit is contained in:
Aditya Chandel
2025-09-09 22:18:52 -06:00
committed by GitHub
parent d8be663a4d
commit 1008a9476b
25 changed files with 1159 additions and 147 deletions
+13 -4
View File
@@ -1,14 +1,23 @@
@if (loading) {
<div class="splash-screen">
<div class="splash-content">
<img src="assets/favicon.svg" alt="Booklore logo" class="logo" />
<img src="assets/favicon.svg" alt="Booklore logo" class="logo"/>
<h1>Loading Booklore…</h1>
<p>Please wait while we get things ready.</p>
<div class="loader"></div>
</div>
</div>
} @else {
<p-confirmDialog />
<p-toast></p-toast>
<router-outlet></router-outlet>
<div class="app-background"
[style.background-image]="showBackground() ? backgroundStyle() : 'none'">
<div class="app-overlay"
[style.backdrop-filter]="showBackground() ? blurStyle() : 'none'"
[style.-webkit-backdrop-filter]="showBackground() ? blurStyle() : 'none'"
[style.display]="showBackground() ? 'block' : 'none'"></div>
<div class="app-content">
<p-confirmDialog></p-confirmDialog>
<p-toast></p-toast>
<router-outlet></router-outlet>
</div>
</div>
}