41 lines
1.1 KiB
HTML
41 lines
1.1 KiB
HTML
<main class="bookmarks-page">
|
|
<header class="page-header">
|
|
<div>
|
|
<p class="eyebrow">Meine Sammlung</p>
|
|
<h1>Bookmarks</h1>
|
|
<p>Gespeicherte Personen für den schnellen Zugriff.</p>
|
|
</div>
|
|
<div class="bookmark-count">
|
|
<mat-icon>bookmarks</mat-icon>
|
|
<strong>{{ persons().length }}</strong>
|
|
<span>Personen</span>
|
|
</div>
|
|
</header>
|
|
|
|
@if (loading()) {
|
|
<app-loading
|
|
text="Bookmarks werden geladen …"
|
|
icon="bookmarks"
|
|
[size]="60"
|
|
[diameter]="60" />
|
|
} @else if (persons().length) {
|
|
<section class="person-grid" aria-label="Gespeicherte Personen">
|
|
@for (person of persons(); track person.id) {
|
|
<app-person-card
|
|
[person]="person"
|
|
[isBookmarked]="bookmarkService.isBookmarked(person.id)"
|
|
(bookmarkToggle)="toggleBookmark($event)">
|
|
</app-person-card>
|
|
}
|
|
</section>
|
|
} @else {
|
|
<section class="empty-state">
|
|
<mat-icon>bookmark_border</mat-icon>
|
|
<h2>Noch keine Bookmarks</h2>
|
|
<p>
|
|
Speichere Personen über das Bookmark-Symbol auf einer Personenkarte.
|
|
</p>
|
|
</section>
|
|
}
|
|
</main>
|