WIP: Arrange UI files for better structuring
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
<div class="book-card"
|
||||
[class.selected]="isSelected"
|
||||
(mouseover)="isHovered = true"
|
||||
(mouseout)="isHovered = false">
|
||||
<div class="cover-container">
|
||||
<img
|
||||
[src]="coverImageSrc(book)"
|
||||
class="book-cover placeholder"
|
||||
alt="Cover of {{ book.metadata?.title }}"
|
||||
loading="lazy"/>
|
||||
<p-checkbox
|
||||
*ngIf="isCheckboxEnabled && (isHovered || isSelected)"
|
||||
[(ngModel)]="isSelected"
|
||||
binary="true"
|
||||
class="select-checkbox"
|
||||
(ngModelChange)="toggleSelection(isSelected || false)"></p-checkbox>
|
||||
<p-button [rounded]="true" icon="pi pi-info" class="read-btn" (click)="openBookInfo(book)"></p-button>
|
||||
<p-button [rounded]="true" icon="pi pi-book" class="info-btn" (click)="readBook(book)"></p-button>
|
||||
</div>
|
||||
|
||||
<div class="book-info">
|
||||
<div class="book-title-container">
|
||||
<h4 class="book-title">{{ book.metadata?.title }}</h4>
|
||||
<p-menu #menu [model]="items" [popup]="true" appendTo="body"></p-menu>
|
||||
<p-button
|
||||
[text]="true"
|
||||
(click)="menu.toggle($event)"
|
||||
icon="pi pi-ellipsis-v">
|
||||
</p-button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user