This commit is contained in:
@@ -15,45 +15,51 @@
|
||||
</mat-drawer>
|
||||
}
|
||||
<mat-drawer-content class="content-shell">
|
||||
<mat-toolbar class="main">
|
||||
<div class="topbar-left">
|
||||
@if (
|
||||
mediaQuery.matches && (credentialService.authenticated | async)
|
||||
) {
|
||||
<button
|
||||
mat-icon-button
|
||||
(click)="toggle()"
|
||||
matTooltip="Navigation">
|
||||
<mat-icon>menu</mat-icon>
|
||||
@if (credentialService.authenticated | async) {
|
||||
<mat-toolbar class="main">
|
||||
<div class="topbar-left">
|
||||
@if (mediaQuery.matches) {
|
||||
<button
|
||||
mat-icon-button
|
||||
(click)="toggle()"
|
||||
matTooltip="Navigation">
|
||||
<mat-icon>menu</mat-icon>
|
||||
</button>
|
||||
}
|
||||
<button (click)="navigateBack()" class="back-link" type="button">
|
||||
<mat-icon>arrow_back</mat-icon>
|
||||
<span>Zurück</span>
|
||||
</button>
|
||||
}
|
||||
<button (click)="navigateBack()" class="back-link" type="button">
|
||||
<mat-icon>arrow_back</mat-icon>
|
||||
<span>Zurück zur Suche</span>
|
||||
</button>
|
||||
</div>
|
||||
<app-searchbar />
|
||||
<div class="topbar-actions">
|
||||
<ng-content select="[menu]"></ng-content>
|
||||
</div>
|
||||
</mat-toolbar>
|
||||
</div>
|
||||
<app-searchbar />
|
||||
<div class="topbar-actions">
|
||||
<ng-content select="[menu]"></ng-content>
|
||||
</div>
|
||||
</mat-toolbar>
|
||||
}
|
||||
|
||||
<main class="content">
|
||||
@if (resolverState.isResolvingFromOutside('/persons')) {
|
||||
<app-loading
|
||||
text="Personenliste wird geladen..."
|
||||
icon="group"
|
||||
[size]="200"
|
||||
[diameter]="200" />
|
||||
} @else if (resolverState.isResolvingFromOutside('/person/')) {
|
||||
<app-loading
|
||||
text="Personendaten werden geladen..."
|
||||
icon="person"
|
||||
[size]="200"
|
||||
[diameter]="200" />
|
||||
} @else {
|
||||
<ng-content></ng-content>
|
||||
}
|
||||
<div class="main-content-body">
|
||||
@if (resolverState.isResolvingFromOutside('/persons')) {
|
||||
<app-loading
|
||||
text="Personenliste wird geladen..."
|
||||
icon="group"
|
||||
[size]="200"
|
||||
[diameter]="200" />
|
||||
} @else if (resolverState.isResolvingFromOutside('/person/')) {
|
||||
<app-loading
|
||||
text="Personendaten werden geladen..."
|
||||
icon="person"
|
||||
[size]="200"
|
||||
[diameter]="200" />
|
||||
} @else {
|
||||
<ng-content></ng-content>
|
||||
}
|
||||
</div>
|
||||
|
||||
<footer class="footer-container">
|
||||
<div class="footer">Networked Embedded Systems 2026</div>
|
||||
</footer>
|
||||
</main>
|
||||
</mat-drawer-content>
|
||||
</mat-drawer-container>
|
||||
|
||||
@@ -18,7 +18,10 @@
|
||||
}
|
||||
|
||||
.content-shell {
|
||||
min-height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
background: var(--sg-background);
|
||||
}
|
||||
|
||||
@@ -34,10 +37,9 @@ mat-toolbar.main {
|
||||
gap: 24px;
|
||||
height: 76px;
|
||||
padding: 0 32px;
|
||||
background: rgba(255, 255, 255, 0.92);
|
||||
background: var(--sg-surface-soft);
|
||||
border-bottom: 1px solid var(--sg-border);
|
||||
color: var(--sg-text);
|
||||
backdrop-filter: blur(16px);
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
@@ -82,10 +84,30 @@ mat-toolbar.main {
|
||||
}
|
||||
|
||||
.content {
|
||||
min-height: calc(100svh - 76px);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
background: var(--sg-background);
|
||||
}
|
||||
|
||||
.main-content-body {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.footer-container {
|
||||
flex-shrink: 0;
|
||||
padding: 12px 32px;
|
||||
background: var(--sg-surface-soft);
|
||||
border-top: 1px solid var(--sg-border);
|
||||
}
|
||||
|
||||
.footer {
|
||||
font-size: 12px;
|
||||
color: var(--sg-text-muted);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
mat-toolbar.main {
|
||||
grid-template-columns: auto 1fr auto;
|
||||
@@ -115,7 +137,7 @@ mat-toolbar.main {
|
||||
}
|
||||
|
||||
.content {
|
||||
min-height: calc(100svh - 124px);
|
||||
min-height: 0;
|
||||
}
|
||||
}
|
||||
.search-wrapper {
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
height: 44px;
|
||||
align-self: center;
|
||||
padding: 0 18px;
|
||||
background: var(--sg-surface-muted);
|
||||
background: white;
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: var(--sg-radius-sm);
|
||||
color: var(--sg-text-soft);
|
||||
|
||||
Reference in New Issue
Block a user