feat(ux): implement sprint 11 user experience module

This commit is contained in:
sdarbinyan
2026-07-09 01:13:54 +04:00
parent 1a8f916942
commit 92e1bdaff8
59 changed files with 2062 additions and 25 deletions

View File

@@ -9,16 +9,19 @@
<span class="stock-badge" [class.out]="item.remainings === 'out'">{{ item.remainings }}</span>
}
@if (showFavoritePlaceholder || showComparePlaceholder || showQuickViewPlaceholder) {
@if (showFavoriteControl() || showCompareControl() || showShareAction || showQuickViewPlaceholder) {
<div class="product-actions-overlay">
@if (showFavoritePlaceholder) {
<button type="button" (click)="onFavoritePlaceholder($event)">Fav</button>
@if (showFavoriteControl()) {
<button type="button" class="product-action-btn product-action-favorite" [class.active]="isFavorite" (click)="onFavoritePlaceholder($event)"></button>
}
@if (showComparePlaceholder) {
<button type="button" (click)="onComparePlaceholder($event)">Compare</button>
@if (showCompareControl()) {
<button type="button" class="product-action-btn" [class.active]="isCompared" (click)="onComparePlaceholder($event)"></button>
}
@if (showShareAction) {
<button type="button" class="product-action-btn" (click)="onShare($event)"></button>
}
@if (showQuickViewPlaceholder) {
<button type="button" (click)="onQuickViewPlaceholder($event)">Quick</button>
<button type="button" class="product-action-btn" (click)="onQuickViewPlaceholder($event)"></button>
}
</div>
}