feat(platform): sprint 11.5 standardization
Some checks failed
Architecture Governance / architecture (push) Has been cancelled
Some checks failed
Architecture Governance / architecture (push) Has been cancelled
This commit is contained in:
@@ -1,28 +1,29 @@
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { ChangeDetectionStrategy, Component, inject } from '@angular/core';
|
||||
import { BackofficeFacade } from '../../facades/backoffice/backoffice.facade';
|
||||
import { TranslatePipe } from '../../i18n/translate.pipe';
|
||||
|
||||
@Component({
|
||||
selector: 'app-backoffice-dashboard',
|
||||
standalone: true,
|
||||
imports: [CommonModule],
|
||||
imports: [CommonModule, TranslatePipe],
|
||||
template: `
|
||||
<main class="backoffice-dashboard">
|
||||
<h1>Backoffice Sandbox</h1>
|
||||
<p>Business data management domain (mocked for platform foundation).</p>
|
||||
<h1>{{ 'backoffice.title' | translate }}</h1>
|
||||
<p>{{ 'backoffice.subtitle' | translate }}</p>
|
||||
|
||||
@if (loading()) {
|
||||
<section class="card">Loading backoffice data...</section>
|
||||
<section class="card">{{ 'backoffice.loading' | translate }}</section>
|
||||
} @else {
|
||||
<section class="card">
|
||||
<h2>Products</h2>
|
||||
<h2>{{ 'backoffice.products' | translate }}</h2>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>SKU</th>
|
||||
<th>Title</th>
|
||||
<th>Price</th>
|
||||
<th>Status</th>
|
||||
<th>{{ 'backoffice.sku' | translate }}</th>
|
||||
<th>{{ 'backoffice.titleColumn' | translate }}</th>
|
||||
<th>{{ 'backoffice.price' | translate }}</th>
|
||||
<th>{{ 'backoffice.status' | translate }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -31,7 +32,7 @@ import { BackofficeFacade } from '../../facades/backoffice/backoffice.facade';
|
||||
<td>{{ product.sku }}</td>
|
||||
<td>{{ product.title }}</td>
|
||||
<td>{{ product.price.amount }} {{ product.price.currency }}</td>
|
||||
<td>{{ product.stockStatus ?? 'n/a' }}</td>
|
||||
<td>{{ product.stockStatus ?? ('backoffice.notAvailable' | translate) }}</td>
|
||||
</tr>
|
||||
}
|
||||
</tbody>
|
||||
@@ -39,22 +40,22 @@ import { BackofficeFacade } from '../../facades/backoffice/backoffice.facade';
|
||||
</section>
|
||||
|
||||
<section class="card">
|
||||
<h2>Categories</h2>
|
||||
<h2>{{ 'backoffice.categories' | translate }}</h2>
|
||||
<ul>
|
||||
@for (category of categories(); track category.id) {
|
||||
<li>{{ category.title }} ({{ category.itemsCount ?? 0 }})</li>
|
||||
<li>{{ category.title }} ({{ category.itemsCount ?? 0 }} {{ 'backoffice.itemsCount' | translate }})</li>
|
||||
}
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<section class="card placeholders">
|
||||
<h2>Other Domains</h2>
|
||||
<h2>{{ 'backoffice.otherDomains' | translate }}</h2>
|
||||
<div class="chips">
|
||||
<span>Orders</span>
|
||||
<span>Customers</span>
|
||||
<span>Inventory</span>
|
||||
<span>Media</span>
|
||||
<span>Settings</span>
|
||||
<span>{{ 'backoffice.orders' | translate }}</span>
|
||||
<span>{{ 'backoffice.customers' | translate }}</span>
|
||||
<span>{{ 'backoffice.inventory' | translate }}</span>
|
||||
<span>{{ 'backoffice.media' | translate }}</span>
|
||||
<span>{{ 'backoffice.settings' | translate }}</span>
|
||||
</div>
|
||||
</section>
|
||||
}
|
||||
|
||||
@@ -2,21 +2,22 @@ import { CommonModule } from '@angular/common';
|
||||
import { ChangeDetectionStrategy, Component, computed, inject } from '@angular/core';
|
||||
import { FormsModule } from '@angular/forms';
|
||||
import { BuilderConfigFacade } from '../../facades/builder/builder-config.facade';
|
||||
import { TranslatePipe } from '../../i18n/translate.pipe';
|
||||
|
||||
@Component({
|
||||
selector: 'app-builder-sandbox',
|
||||
standalone: true,
|
||||
imports: [CommonModule, FormsModule],
|
||||
imports: [CommonModule, FormsModule, TranslatePipe],
|
||||
template: `
|
||||
<main class="builder-sandbox">
|
||||
<h1>Builder Sandbox</h1>
|
||||
<p>Configuration-only editing surface.</p>
|
||||
<h1>{{ 'builder.title' | translate }}</h1>
|
||||
<p>{{ 'builder.subtitle' | translate }}</p>
|
||||
|
||||
@if (branding(); as brand) {
|
||||
<section class="builder-card">
|
||||
<h2>Branding</h2>
|
||||
<h2>{{ 'builder.branding' | translate }}</h2>
|
||||
<label>
|
||||
Brand Name
|
||||
{{ 'builder.brandName' | translate }}
|
||||
<input type="text" [ngModel]="brand.brandName" (ngModelChange)="onBrandNameChange($event)" />
|
||||
</label>
|
||||
</section>
|
||||
@@ -24,7 +25,7 @@ import { BuilderConfigFacade } from '../../facades/builder/builder-config.facade
|
||||
|
||||
@if (featureFlags(); as flags) {
|
||||
<section class="builder-card">
|
||||
<h2>Feature Flags</h2>
|
||||
<h2>{{ 'builder.featureFlags' | translate }}</h2>
|
||||
@for (flag of featureFlagKeys(); track flag) {
|
||||
<label class="flag-row">
|
||||
<input type="checkbox" [checked]="flags[flag]" (change)="onFlagToggle(flag, $event)" />
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<div class="cart-container dexar">
|
||||
<div class="cart-container platform">
|
||||
<div class="cart-header">
|
||||
<h1>{{ 'cart.title' | translate }}</h1>
|
||||
@if (itemCount() > 0) {
|
||||
@@ -37,7 +37,7 @@
|
||||
<div class="item-info">
|
||||
<div class="item-header">
|
||||
<a [routerLink]="['/product', item.itemID] | langRoute" class="item-name">{{ itemName(item) }}</a>
|
||||
<button class="remove-btn" (click)="removeItem(item)" title="Remove">
|
||||
<button class="remove-btn" (click)="removeItem(item)" [attr.title]="'cart.removeItem' | translate">
|
||||
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
||||
<path d="M18 6L6 18M6 6l12 12"/>
|
||||
</svg>
|
||||
@@ -225,7 +225,7 @@
|
||||
@if (qrCodeUrl()) {
|
||||
<div class="qr-section">
|
||||
<div class="qr-wrapper">
|
||||
<img [src]="qrCodeUrl()" alt="QR код для оплаты" class="qr-code" />
|
||||
<img [src]="qrCodeUrl()" [attr.alt]="'cart.paymentQrAlt' | translate" class="qr-code" />
|
||||
<div class="scan-line"></div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -272,7 +272,7 @@
|
||||
|
||||
@if (paymentStatus() === 'success') {
|
||||
<div class="payment-status-screen success">
|
||||
<div class="success-icon">✓</div>
|
||||
<div class="success-icon">?</div>
|
||||
<h2>{{ 'cart.paymentSuccess' | translate }}</h2>
|
||||
<!-- <p class="success-text">{{ 'cart.paymentSuccessDesc' | translate }}</p> -->
|
||||
|
||||
@@ -331,7 +331,7 @@
|
||||
|
||||
@if (paymentStatus() === 'timeout') {
|
||||
<div class="payment-status-screen timeout">
|
||||
<div class="timeout-icon">⏱</div>
|
||||
<div class="timeout-icon">?</div>
|
||||
<h2>{{ 'cart.paymentTimeout' | translate }}</h2>
|
||||
<p>{{ 'cart.paymentTimeoutDesc' | translate }}</p>
|
||||
<p class="auto-close">{{ 'cart.autoClose' | translate }}</p>
|
||||
@@ -355,3 +355,5 @@
|
||||
}
|
||||
|
||||
<app-telegram-login />
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// Base styles (Dexar theme)
|
||||
.cart-container.dexar {
|
||||
// Base styles (platform theme)
|
||||
.cart-container.platform {
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
padding: 24px;
|
||||
@@ -7,8 +7,8 @@
|
||||
font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
||||
}
|
||||
|
||||
// Novo theme - Modern green design
|
||||
.cart-container.novo {
|
||||
// alt theme - Modern green design
|
||||
.cart-container.alt {
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
padding: 24px;
|
||||
@@ -16,7 +16,7 @@
|
||||
background: linear-gradient(to bottom, rgba(16, 185, 129, 0.02) 0%, transparent 300px);
|
||||
}
|
||||
|
||||
.cart-container.dexar .cart-header {
|
||||
.cart-container.platform .cart-header {
|
||||
margin-bottom: 28px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
@@ -64,7 +64,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
.cart-container.novo .cart-header {
|
||||
.cart-container.alt .cart-header {
|
||||
margin-bottom: 32px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
@@ -113,8 +113,8 @@
|
||||
}
|
||||
}
|
||||
|
||||
// Empty cart - Dexar
|
||||
.cart-container.dexar .empty-cart {
|
||||
// Empty cart - platform
|
||||
.cart-container.platform .empty-cart {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
@@ -170,8 +170,8 @@
|
||||
}
|
||||
}
|
||||
|
||||
// Empty cart - Novo
|
||||
.cart-container.novo .empty-cart {
|
||||
// Empty cart - alt
|
||||
.cart-container.alt .empty-cart {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
@@ -230,8 +230,8 @@
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
// Novo wider summary
|
||||
.cart-container.novo .cart-content {
|
||||
// alt wider summary
|
||||
.cart-container.alt .cart-content {
|
||||
grid-template-columns: minmax(0, 1fr) 400px;
|
||||
gap: 32px;
|
||||
}
|
||||
@@ -243,8 +243,8 @@
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
// Novo larger gap
|
||||
.cart-container.novo .cart-items {
|
||||
// alt larger gap
|
||||
.cart-container.alt .cart-items {
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
@@ -266,13 +266,13 @@
|
||||
}
|
||||
}
|
||||
|
||||
// Novo rounded corners
|
||||
.cart-container.novo .cart-item-wrapper {
|
||||
// alt rounded corners
|
||||
.cart-container.alt .cart-item-wrapper {
|
||||
border-radius: 16px;
|
||||
}
|
||||
|
||||
// Dexar cart item
|
||||
.cart-container.dexar .cart-item {
|
||||
// platform cart item
|
||||
.cart-container.platform .cart-item {
|
||||
display: flex;
|
||||
gap: 20px;
|
||||
background: white;
|
||||
@@ -402,8 +402,8 @@
|
||||
}
|
||||
}
|
||||
|
||||
// Novo cart item - modern green theme
|
||||
.cart-container.novo .cart-item {
|
||||
// alt cart item - modern green theme
|
||||
.cart-container.alt .cart-item {
|
||||
display: flex;
|
||||
gap: 20px;
|
||||
background: white;
|
||||
@@ -563,8 +563,8 @@
|
||||
}
|
||||
}
|
||||
|
||||
// Dexar quantity controls
|
||||
.cart-container.dexar .quantity-controls {
|
||||
// platform quantity controls
|
||||
.cart-container.platform .quantity-controls {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
@@ -607,8 +607,8 @@
|
||||
}
|
||||
}
|
||||
|
||||
// Novo quantity controls - modern green
|
||||
.cart-container.novo .quantity-controls {
|
||||
// alt quantity controls - modern green
|
||||
.cart-container.alt .quantity-controls {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 14px;
|
||||
@@ -676,8 +676,8 @@
|
||||
}
|
||||
}
|
||||
|
||||
// Dexar Cart Summary
|
||||
.cart-container.dexar .cart-summary {
|
||||
// platform Cart Summary
|
||||
.cart-container.platform .cart-summary {
|
||||
position: sticky;
|
||||
top: 90px;
|
||||
background: #f5f3f9;
|
||||
@@ -827,8 +827,8 @@
|
||||
}
|
||||
}
|
||||
|
||||
// Novo Cart Summary - Green Modern
|
||||
.cart-container.novo .cart-summary {
|
||||
// alt Cart Summary - Green Modern
|
||||
.cart-container.alt .cart-summary {
|
||||
position: sticky;
|
||||
top: 20px;
|
||||
background: white;
|
||||
@@ -1054,21 +1054,21 @@
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.cart-container.dexar .cart-summary .delivery-warning {
|
||||
.cart-container.platform .cart-summary .delivery-warning {
|
||||
color: #9a6700;
|
||||
background: #fff8e8;
|
||||
border: 1px solid #f1ddb2;
|
||||
font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
||||
}
|
||||
|
||||
.cart-container.novo .cart-summary .delivery-warning {
|
||||
.cart-container.alt .cart-summary .delivery-warning {
|
||||
color: #92400e;
|
||||
background: #fffbeb;
|
||||
border: 1px solid #fde68a;
|
||||
}
|
||||
|
||||
// Dexar checkbox colors
|
||||
.cart-container.dexar .terms-agreement .checkbox-container {
|
||||
// platform checkbox colors
|
||||
.cart-container.platform .terms-agreement .checkbox-container {
|
||||
input[type="checkbox"]:checked ~ .checkmark {
|
||||
background: #497671;
|
||||
border-color: #497671;
|
||||
@@ -1102,8 +1102,8 @@
|
||||
}
|
||||
}
|
||||
|
||||
// Novo checkbox colors - green
|
||||
.cart-container.novo .terms-agreement .checkbox-container {
|
||||
// alt checkbox colors - green
|
||||
.cart-container.alt .terms-agreement .checkbox-container {
|
||||
input[type="checkbox"]:checked ~ .checkmark {
|
||||
background: #10b981;
|
||||
border-color: #10b981;
|
||||
@@ -1619,7 +1619,7 @@
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
.cart-container.novo .cart-content {
|
||||
.cart-container.alt .cart-content {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
gap: 20px;
|
||||
}
|
||||
@@ -1631,13 +1631,13 @@
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.cart-container.novo,
|
||||
.cart-container.dexar {
|
||||
.cart-container.alt,
|
||||
.cart-container.platform {
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
.cart-container.novo .cart-header,
|
||||
.cart-container.dexar .cart-header {
|
||||
.cart-container.alt .cart-header,
|
||||
.cart-container.platform .cart-header {
|
||||
flex-wrap: wrap;
|
||||
gap: 12px;
|
||||
}
|
||||
@@ -1652,7 +1652,7 @@
|
||||
|
||||
.payment-modal {
|
||||
padding: 24px;
|
||||
padding-top: 56px; // Дополнительный отступ сверху для кнопки закрытия
|
||||
padding-top: 56px; // Äîïîëíèòåëüíûé îòñòóï ñâåðõó äëÿ êíîïêè çàêðûòèÿ
|
||||
}
|
||||
|
||||
.close-modal-btn {
|
||||
@@ -1710,17 +1710,17 @@
|
||||
}
|
||||
|
||||
/* =============================================
|
||||
novo THEME STYLES - Modern Cart Design
|
||||
alt THEME STYLES - Modern Cart Design
|
||||
============================================= */
|
||||
|
||||
.novo-cart-container {
|
||||
.alt-cart-container {
|
||||
max-width: 1400px;
|
||||
margin: 0 auto;
|
||||
padding: 2rem;
|
||||
min-height: calc(100vh - 200px);
|
||||
}
|
||||
|
||||
.novo-cart-header {
|
||||
.alt-cart-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
@@ -1739,7 +1739,7 @@
|
||||
background-clip: text;
|
||||
}
|
||||
|
||||
.novo-clear-btn {
|
||||
.alt-clear-btn {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
@@ -1769,7 +1769,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
.novo-empty-cart {
|
||||
.alt-empty-cart {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
@@ -1804,7 +1804,7 @@
|
||||
max-width: 400px;
|
||||
}
|
||||
|
||||
.novo-shop-btn {
|
||||
.alt-shop-btn {
|
||||
display: inline-block;
|
||||
padding: 0.875rem 2rem;
|
||||
background: linear-gradient(135deg, #10b981, #14b8a6, #06b6d4);
|
||||
@@ -1822,20 +1822,20 @@
|
||||
}
|
||||
}
|
||||
|
||||
.novo-cart-content {
|
||||
.alt-cart-content {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 400px;
|
||||
gap: 2rem;
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
.novo-cart-items {
|
||||
.alt-cart-items {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1.25rem;
|
||||
}
|
||||
|
||||
.novo-cart-item {
|
||||
.alt-cart-item {
|
||||
display: flex;
|
||||
gap: 1.5rem;
|
||||
padding: 1.5rem;
|
||||
@@ -1850,7 +1850,7 @@
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
.novo-item-image {
|
||||
.alt-item-image {
|
||||
flex-shrink: 0;
|
||||
width: 120px;
|
||||
height: 120px;
|
||||
@@ -1872,7 +1872,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
.novo-item-details {
|
||||
.alt-item-details {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -1898,7 +1898,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
.novo-remove-btn {
|
||||
.alt-remove-btn {
|
||||
flex-shrink: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -1971,7 +1971,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
.novo-quantity {
|
||||
.alt-quantity {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
@@ -2021,7 +2021,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
.novo-cart-summary {
|
||||
.alt-cart-summary {
|
||||
position: sticky;
|
||||
top: 80px;
|
||||
}
|
||||
@@ -2078,7 +2078,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
.novo-checkout-btn {
|
||||
.alt-checkout-btn {
|
||||
width: 100%;
|
||||
padding: 1rem;
|
||||
margin-top: 1.25rem;
|
||||
@@ -2108,10 +2108,10 @@
|
||||
}
|
||||
}
|
||||
|
||||
.novo-terms-agreement {
|
||||
.alt-terms-agreement {
|
||||
margin-top: 1rem;
|
||||
|
||||
.novo-checkbox-container {
|
||||
.alt-checkbox-container {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 0.75rem;
|
||||
@@ -2127,7 +2127,7 @@
|
||||
height: 0;
|
||||
width: 0;
|
||||
|
||||
&:checked ~ .novo-checkmark {
|
||||
&:checked ~ .alt-checkmark {
|
||||
background: #10b981;
|
||||
border-color: #10b981;
|
||||
|
||||
@@ -2137,7 +2137,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
.novo-checkmark {
|
||||
.alt-checkmark {
|
||||
position: relative;
|
||||
flex-shrink: 0;
|
||||
height: 20px;
|
||||
@@ -2162,7 +2162,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
.novo-terms-text {
|
||||
.alt-terms-text {
|
||||
color: var(--text-secondary);
|
||||
line-height: 1.6;
|
||||
|
||||
@@ -2182,23 +2182,23 @@
|
||||
}
|
||||
}
|
||||
|
||||
/* novo Cart Responsive */
|
||||
/* alt Cart Responsive */
|
||||
@media (max-width: 1024px) {
|
||||
.novo-cart-content {
|
||||
.alt-cart-content {
|
||||
grid-template-columns: 1fr;
|
||||
|
||||
.novo-cart-summary {
|
||||
.alt-cart-summary {
|
||||
position: static;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.novo-cart-container {
|
||||
.alt-cart-container {
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
.novo-cart-header {
|
||||
.alt-cart-header {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: 1rem;
|
||||
@@ -2208,22 +2208,22 @@
|
||||
}
|
||||
}
|
||||
|
||||
.novo-cart-item {
|
||||
.alt-cart-item {
|
||||
flex-direction: column;
|
||||
gap: 1rem;
|
||||
|
||||
.novo-item-image {
|
||||
.alt-item-image {
|
||||
width: 100%;
|
||||
height: 200px;
|
||||
}
|
||||
|
||||
.novo-item-details {
|
||||
.alt-item-details {
|
||||
.item-bottom {
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
gap: 0.75rem;
|
||||
|
||||
.novo-quantity {
|
||||
.alt-quantity {
|
||||
justify-content: center;
|
||||
}
|
||||
}
|
||||
@@ -2238,3 +2238,5 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -6,6 +6,6 @@
|
||||
<app-dynamic-page-layout [model]="pageModel()" />
|
||||
} @else {
|
||||
<section class="home-empty section">
|
||||
<div class="page-container">No page configuration found.</div>
|
||||
<div class="page-container">{{ 'platform.emptyConfig' | translate }}</div>
|
||||
</section>
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// ========== SHARED ANIMATIONS ==========
|
||||
// ========== SHARED ANIMATIONS ==========
|
||||
@keyframes fadeIn {
|
||||
from { opacity: 0; transform: translateY(10px); }
|
||||
to { opacity: 1; transform: translateY(0); }
|
||||
@@ -19,28 +19,28 @@
|
||||
to { transform: rotate(360deg); }
|
||||
}
|
||||
|
||||
// ========== NOVO HOME PAGE STYLES ==========
|
||||
.novo-home {
|
||||
// ========== alt HOME PAGE STYLES ==========
|
||||
.alt-home {
|
||||
min-height: calc(100vh - 200px);
|
||||
animation: fadeIn 0.6s ease;
|
||||
}
|
||||
|
||||
.novo-hero {
|
||||
.alt-hero {
|
||||
background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
|
||||
padding: 6rem 2rem;
|
||||
text-align: center;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
|
||||
&.novo-hero-compact {
|
||||
&.alt-hero-compact {
|
||||
padding: 2.5rem 2rem;
|
||||
|
||||
.novo-hero-title {
|
||||
.alt-hero-title {
|
||||
font-size: 2.2rem;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.novo-hero-subtitle {
|
||||
.alt-hero-subtitle {
|
||||
font-size: 1.1rem;
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
@@ -69,14 +69,14 @@
|
||||
}
|
||||
}
|
||||
|
||||
.novo-hero-content {
|
||||
.alt-hero-content {
|
||||
max-width: 800px;
|
||||
margin: 0 auto;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.novo-hero-title {
|
||||
.alt-hero-title {
|
||||
font-size: 3.5rem;
|
||||
font-weight: 700;
|
||||
color: white;
|
||||
@@ -85,14 +85,14 @@
|
||||
animation: slideDown 0.8s ease;
|
||||
}
|
||||
|
||||
.novo-hero-subtitle {
|
||||
.alt-hero-subtitle {
|
||||
font-size: 1.5rem;
|
||||
color: rgba(255, 255, 255, 0.95);
|
||||
margin: 0 0 2.5rem 0;
|
||||
animation: slideDown 0.8s ease 0.1s both;
|
||||
}
|
||||
|
||||
.novo-hero-btn {
|
||||
.alt-hero-btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
@@ -121,12 +121,12 @@
|
||||
}
|
||||
}
|
||||
|
||||
.novo-loading {
|
||||
.alt-loading {
|
||||
text-align: center;
|
||||
padding: 5rem 2rem;
|
||||
}
|
||||
|
||||
.novo-spinner {
|
||||
.alt-spinner {
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
border: 5px solid var(--bg-secondary);
|
||||
@@ -136,11 +136,11 @@
|
||||
margin: 0 auto 1.5rem;
|
||||
}
|
||||
|
||||
.novo-error {
|
||||
.alt-error {
|
||||
text-align: center;
|
||||
padding: 5rem 2rem;
|
||||
|
||||
.novo-error-icon {
|
||||
.alt-error-icon {
|
||||
font-size: 4rem;
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
@@ -156,7 +156,7 @@
|
||||
margin: 0 0 2rem 0;
|
||||
}
|
||||
|
||||
.novo-retry-btn {
|
||||
.alt-retry-btn {
|
||||
padding: 0.875rem 2rem;
|
||||
background: var(--primary-color);
|
||||
color: white;
|
||||
@@ -174,13 +174,13 @@
|
||||
}
|
||||
}
|
||||
|
||||
.novo-categories {
|
||||
.alt-categories {
|
||||
max-width: 1400px;
|
||||
margin: 0 auto;
|
||||
padding: 5rem 2rem;
|
||||
}
|
||||
|
||||
.novo-section-header {
|
||||
.alt-section-header {
|
||||
text-align: center;
|
||||
margin-bottom: 4rem;
|
||||
|
||||
@@ -198,13 +198,13 @@
|
||||
}
|
||||
}
|
||||
|
||||
.novo-empty {
|
||||
.alt-empty {
|
||||
text-align: center;
|
||||
padding: 5rem 2rem;
|
||||
background: var(--bg-secondary);
|
||||
border-radius: var(--radius-xl);
|
||||
|
||||
.novo-empty-icon {
|
||||
.alt-empty-icon {
|
||||
font-size: 5rem;
|
||||
opacity: 0.5;
|
||||
margin-bottom: 2rem;
|
||||
@@ -223,13 +223,13 @@
|
||||
}
|
||||
}
|
||||
|
||||
.novo-categories-grid {
|
||||
.alt-categories-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
||||
gap: 2rem;
|
||||
}
|
||||
|
||||
.novo-category-card {
|
||||
.alt-category-card {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background: white;
|
||||
@@ -245,23 +245,23 @@
|
||||
box-shadow: var(--shadow-lg);
|
||||
border-color: var(--primary-color);
|
||||
|
||||
.novo-category-image {
|
||||
.alt-category-image {
|
||||
img {
|
||||
transform: scale(1.1);
|
||||
}
|
||||
|
||||
.novo-category-placeholder {
|
||||
.alt-category-placeholder {
|
||||
transform: scale(1.1);
|
||||
}
|
||||
}
|
||||
|
||||
.novo-category-arrow {
|
||||
.alt-category-arrow {
|
||||
transform: translateX(8px);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.novo-category-image {
|
||||
.alt-category-image {
|
||||
height: 200px;
|
||||
overflow: hidden;
|
||||
background: var(--bg-secondary);
|
||||
@@ -277,7 +277,7 @@
|
||||
transition: transform 0.4s;
|
||||
}
|
||||
|
||||
.novo-category-placeholder {
|
||||
.alt-category-placeholder {
|
||||
width: 80px;
|
||||
height: 80px;
|
||||
border-radius: 50%;
|
||||
@@ -295,7 +295,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
.novo-category-info {
|
||||
.alt-category-info {
|
||||
padding: 1.5rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -308,7 +308,7 @@
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.novo-category-count {
|
||||
.alt-category-count {
|
||||
font-weight: 600;
|
||||
font-size: clamp(11px, 1vw, 13px);
|
||||
color: var(--text-secondary);
|
||||
@@ -318,47 +318,47 @@
|
||||
}
|
||||
|
||||
@media (max-width: 968px) {
|
||||
.novo-hero {
|
||||
.alt-hero {
|
||||
padding: 4rem 2rem;
|
||||
}
|
||||
|
||||
.novo-hero-title {
|
||||
.alt-hero-title {
|
||||
font-size: 2.5rem;
|
||||
}
|
||||
|
||||
.novo-hero-subtitle {
|
||||
.alt-hero-subtitle {
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
|
||||
.novo-categories-grid {
|
||||
.alt-categories-grid {
|
||||
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
|
||||
gap: 1.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 600px) {
|
||||
.novo-hero {
|
||||
.alt-hero {
|
||||
padding: 3rem 1rem;
|
||||
}
|
||||
|
||||
.novo-hero-title {
|
||||
.alt-hero-title {
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
.novo-hero-subtitle {
|
||||
.alt-hero-subtitle {
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
|
||||
.novo-hero-btn {
|
||||
.alt-hero-btn {
|
||||
padding: 0.875rem 2rem;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.novo-categories {
|
||||
.alt-categories {
|
||||
padding: 3rem 1rem;
|
||||
}
|
||||
|
||||
.novo-section-header {
|
||||
.alt-section-header {
|
||||
margin-bottom: 2.5rem;
|
||||
|
||||
h2 {
|
||||
@@ -370,24 +370,24 @@
|
||||
}
|
||||
}
|
||||
|
||||
.novo-categories-grid {
|
||||
.alt-categories-grid {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 1.25rem;
|
||||
}
|
||||
|
||||
.novo-category-card:hover {
|
||||
.alt-category-card:hover {
|
||||
transform: translateY(-4px);
|
||||
}
|
||||
}
|
||||
|
||||
// ========== DEXAR REDESIGN 2026 STYLES ==========
|
||||
.dexar-home {
|
||||
// ========== platform REDESIGN 2026 STYLES ==========
|
||||
.platform-home {
|
||||
width: 100%;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
// Hero Section
|
||||
.dexar-hero {
|
||||
.platform-hero {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 600px;
|
||||
@@ -403,7 +403,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
.dexar-hero-overlay {
|
||||
.platform-hero-overlay {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
@@ -417,7 +417,7 @@
|
||||
padding: 0 56px;
|
||||
}
|
||||
|
||||
.dexar-hero-content {
|
||||
.platform-hero-content {
|
||||
max-width: 600px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -425,7 +425,7 @@
|
||||
animation: fadeInUp 0.8s ease-out;
|
||||
}
|
||||
|
||||
.dexar-hero-title {
|
||||
.platform-hero-title {
|
||||
font-weight: 500;
|
||||
font-size: 42px;
|
||||
color: var(--text-primary);
|
||||
@@ -434,7 +434,7 @@
|
||||
animation: fadeInUp 0.8s ease-out 0.1s both;
|
||||
}
|
||||
|
||||
.dexar-hero-subtitle {
|
||||
.platform-hero-subtitle {
|
||||
font-weight: 500;
|
||||
font-size: 24px;
|
||||
color: var(--text-primary);
|
||||
@@ -443,7 +443,7 @@
|
||||
animation: fadeInUp 0.8s ease-out 0.2s both;
|
||||
}
|
||||
|
||||
.dexar-hero-tagline {
|
||||
.platform-hero-tagline {
|
||||
font-weight: 500;
|
||||
font-size: 24px;
|
||||
color: var(--text-primary);
|
||||
@@ -452,14 +452,14 @@
|
||||
animation: fadeInUp 0.8s ease-out 0.3s both;
|
||||
}
|
||||
|
||||
.dexar-hero-actions {
|
||||
.platform-hero-actions {
|
||||
display: flex;
|
||||
gap: 16px;
|
||||
margin-top: 12px;
|
||||
animation: fadeInUp 0.8s ease-out 0.4s both;
|
||||
}
|
||||
|
||||
.dexar-btn-primary {
|
||||
.platform-btn-primary {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
@@ -488,7 +488,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
.dexar-btn-secondary {
|
||||
.platform-btn-secondary {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
@@ -529,15 +529,15 @@
|
||||
}
|
||||
|
||||
// Loading & Error States
|
||||
.dexar-loading,
|
||||
.dexar-error {
|
||||
.platform-loading,
|
||||
.platform-error {
|
||||
text-align: center;
|
||||
padding: 60px 20px;
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.dexar-spinner {
|
||||
.platform-spinner {
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
border: 4px solid #f3f3f3;
|
||||
@@ -547,7 +547,7 @@
|
||||
margin: 0 auto 20px;
|
||||
}
|
||||
|
||||
.dexar-error {
|
||||
.platform-error {
|
||||
button {
|
||||
margin-top: 20px;
|
||||
padding: 12px 28px;
|
||||
@@ -569,27 +569,27 @@
|
||||
}
|
||||
|
||||
// Categories Section
|
||||
.dexar-categories {
|
||||
.platform-categories {
|
||||
max-width: 1440px;
|
||||
margin: 50px auto;
|
||||
padding: 0 56px;
|
||||
}
|
||||
|
||||
.dexar-categories-title {
|
||||
.platform-categories-title {
|
||||
font-size: 2.5rem;
|
||||
font-weight: 600;
|
||||
margin-bottom: 40px;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.dexar-empty-categories {
|
||||
.platform-empty-categories {
|
||||
text-align: center;
|
||||
padding: 80px 20px;
|
||||
background: white;
|
||||
border-radius: 16px;
|
||||
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
|
||||
|
||||
.dexar-empty-icon {
|
||||
.platform-empty-icon {
|
||||
font-size: 4rem;
|
||||
margin-bottom: 20px;
|
||||
opacity: 0.5;
|
||||
@@ -609,7 +609,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
.dexar-categories-grid {
|
||||
.platform-categories-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
gap: 30px;
|
||||
@@ -617,7 +617,7 @@
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.dexar-category-card {
|
||||
.platform-category-card {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -627,17 +627,17 @@
|
||||
&:hover {
|
||||
transform: translateY(-4px);
|
||||
|
||||
.dexar-category-image {
|
||||
.platform-category-image {
|
||||
box-shadow: 0 6px 8px 0 rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
.dexar-category-info {
|
||||
.platform-category-info {
|
||||
box-shadow: 0 6px 8px 0 rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.dexar-category-image {
|
||||
.platform-category-image {
|
||||
width: 100%;
|
||||
aspect-ratio: 4 / 3;
|
||||
border: 1px solid var(--border-color);
|
||||
@@ -662,7 +662,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
.dexar-category-fallback {
|
||||
.platform-category-fallback {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
@@ -674,7 +674,7 @@
|
||||
background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
|
||||
}
|
||||
|
||||
.dexar-category-info {
|
||||
.platform-category-info {
|
||||
width: 100%;
|
||||
border: 1px solid var(--border-color);
|
||||
border-top: none;
|
||||
@@ -689,7 +689,7 @@
|
||||
transition: background 0.3s ease;
|
||||
}
|
||||
|
||||
.dexar-category-name {
|
||||
.platform-category-name {
|
||||
font-weight: 600;
|
||||
font-size: clamp(14px, 1.4vw, 18px);
|
||||
color: var(--text-primary);
|
||||
@@ -704,7 +704,7 @@
|
||||
min-height: calc(2 * 1.3em);
|
||||
}
|
||||
|
||||
.dexar-category-count {
|
||||
.platform-category-count {
|
||||
font-weight: 600;
|
||||
font-size: clamp(11px, 1vw, 13px);
|
||||
color: var(--text-secondary);
|
||||
@@ -713,10 +713,10 @@
|
||||
}
|
||||
|
||||
// Wide category card (spans 2 columns)
|
||||
.dexar-category-card--wide {
|
||||
.platform-category-card--wide {
|
||||
grid-column: span 2;
|
||||
|
||||
.dexar-category-image {
|
||||
.platform-category-image {
|
||||
aspect-ratio: 8 / 3;
|
||||
|
||||
img {
|
||||
@@ -727,82 +727,82 @@
|
||||
|
||||
// Responsive Design
|
||||
@media (max-width: 1200px) {
|
||||
.dexar-hero {
|
||||
.platform-hero {
|
||||
height: 380px;
|
||||
}
|
||||
|
||||
.dexar-hero-overlay {
|
||||
.platform-hero-overlay {
|
||||
padding: 0 40px;
|
||||
}
|
||||
|
||||
.dexar-hero-title {
|
||||
.platform-hero-title {
|
||||
font-size: 38px;
|
||||
}
|
||||
|
||||
.dexar-hero-subtitle,
|
||||
.dexar-hero-tagline {
|
||||
.platform-hero-subtitle,
|
||||
.platform-hero-tagline {
|
||||
font-size: 22px;
|
||||
}
|
||||
|
||||
.dexar-categories {
|
||||
.platform-categories {
|
||||
padding: 0 40px;
|
||||
}
|
||||
|
||||
.dexar-categories-grid {
|
||||
.platform-categories-grid {
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
gap: 24px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 992px) {
|
||||
.dexar-hero {
|
||||
.platform-hero {
|
||||
height: 340px;
|
||||
}
|
||||
|
||||
.dexar-hero-overlay {
|
||||
.platform-hero-overlay {
|
||||
padding: 0 32px;
|
||||
}
|
||||
|
||||
.dexar-hero-title {
|
||||
.platform-hero-title {
|
||||
font-size: 34px;
|
||||
}
|
||||
|
||||
.dexar-hero-subtitle,
|
||||
.dexar-hero-tagline {
|
||||
.platform-hero-subtitle,
|
||||
.platform-hero-tagline {
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
.dexar-btn-primary,
|
||||
.dexar-btn-secondary {
|
||||
.platform-btn-primary,
|
||||
.platform-btn-secondary {
|
||||
height: 44px;
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.dexar-btn-primary {
|
||||
.platform-btn-primary {
|
||||
width: 240px;
|
||||
}
|
||||
|
||||
.dexar-btn-secondary {
|
||||
.platform-btn-secondary {
|
||||
width: 200px;
|
||||
}
|
||||
|
||||
.dexar-categories {
|
||||
.platform-categories {
|
||||
padding: 0 32px;
|
||||
}
|
||||
|
||||
.dexar-categories-grid {
|
||||
.platform-categories-grid {
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
gap: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.dexar-hero {
|
||||
.platform-hero {
|
||||
height: 320px;
|
||||
background-position: right center;
|
||||
}
|
||||
|
||||
.dexar-hero-overlay {
|
||||
.platform-hero-overlay {
|
||||
padding: 0 20px;
|
||||
background: linear-gradient(
|
||||
to bottom,
|
||||
@@ -811,23 +811,23 @@
|
||||
);
|
||||
}
|
||||
|
||||
.dexar-hero-title {
|
||||
.platform-hero-title {
|
||||
font-size: 28px;
|
||||
}
|
||||
|
||||
.dexar-hero-subtitle,
|
||||
.dexar-hero-tagline {
|
||||
.platform-hero-subtitle,
|
||||
.platform-hero-tagline {
|
||||
font-size: 17px;
|
||||
}
|
||||
|
||||
.dexar-hero-actions {
|
||||
.platform-hero-actions {
|
||||
flex-direction: row;
|
||||
gap: 10px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.dexar-btn-primary,
|
||||
.dexar-btn-secondary {
|
||||
.platform-btn-primary,
|
||||
.platform-btn-secondary {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
max-width: 180px;
|
||||
@@ -836,65 +836,65 @@
|
||||
letter-spacing: 0.5px;
|
||||
}
|
||||
|
||||
.dexar-categories {
|
||||
.platform-categories {
|
||||
margin: 40px auto;
|
||||
padding: 0 20px;
|
||||
}
|
||||
|
||||
.dexar-categories-title {
|
||||
.platform-categories-title {
|
||||
font-size: 2rem;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
|
||||
.dexar-categories-grid {
|
||||
.platform-categories-grid {
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.dexar-category-info {
|
||||
.platform-category-info {
|
||||
padding: 10px 12px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.dexar-hero {
|
||||
.platform-hero {
|
||||
height: 280px;
|
||||
}
|
||||
|
||||
.dexar-hero-title {
|
||||
.platform-hero-title {
|
||||
font-size: 24px;
|
||||
}
|
||||
|
||||
.dexar-hero-subtitle,
|
||||
.dexar-hero-tagline {
|
||||
.platform-hero-subtitle,
|
||||
.platform-hero-tagline {
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
.dexar-hero-actions {
|
||||
.platform-hero-actions {
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.dexar-btn-primary,
|
||||
.dexar-btn-secondary {
|
||||
.platform-btn-primary,
|
||||
.platform-btn-secondary {
|
||||
height: 38px;
|
||||
font-size: 13px;
|
||||
max-width: 160px;
|
||||
}
|
||||
|
||||
.dexar-categories {
|
||||
.platform-categories {
|
||||
padding: 0 16px;
|
||||
}
|
||||
|
||||
.dexar-categories-grid {
|
||||
.platform-categories-grid {
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.dexar-category-info {
|
||||
.platform-category-info {
|
||||
padding: 8px 10px;
|
||||
}
|
||||
|
||||
.dexar-category-card:hover {
|
||||
.platform-category-card:hover {
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
}
|
||||
@@ -921,3 +921,4 @@
|
||||
0% { background-position: 200% 0; }
|
||||
100% { background-position: -200% 0; }
|
||||
}
|
||||
|
||||
|
||||
@@ -3,11 +3,12 @@ import { Router } from '@angular/router';
|
||||
import { DynamicPageLayoutComponent } from '../../layouts/containers/dynamic-page-layout.component';
|
||||
import { PageRenderModel } from '../../dynamic-renderer/page-renderer/page-renderer.model';
|
||||
import { WebsiteRuntimeFacade } from '../../facades/website/website-runtime.facade';
|
||||
import { TranslatePipe } from '../../i18n/translate.pipe';
|
||||
|
||||
@Component({
|
||||
selector: 'app-home',
|
||||
standalone: true,
|
||||
imports: [DynamicPageLayoutComponent],
|
||||
imports: [DynamicPageLayoutComponent, TranslatePipe],
|
||||
templateUrl: './home.component.html',
|
||||
styleUrls: ['./home.component.scss'],
|
||||
changeDetection: ChangeDetectionStrategy.OnPush
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
@use 'sass:color';
|
||||
@use 'sass:color';
|
||||
|
||||
// ========== DEXAR ITEM DETAIL - Redesigned 2026 ==========
|
||||
// ========== platform ITEM DETAIL - Redesigned 2026 ==========
|
||||
$dx-font: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
||||
$dx-dark: #1e3c38;
|
||||
$dx-primary: #497671;
|
||||
@@ -310,8 +310,8 @@ $dx-card-bg: #f5f3f9;
|
||||
}
|
||||
}
|
||||
|
||||
// Variant chips (colour/size) — shared between dexar and novo
|
||||
.dx-variants, .novo-variants {
|
||||
// Variant chips (colour/size) — shared between platform and alt
|
||||
.dx-variants, .alt-variants {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
@@ -374,7 +374,7 @@ $dx-card-bg: #f5f3f9;
|
||||
}
|
||||
}
|
||||
|
||||
.dx-attributes, .novo-attributes {
|
||||
.dx-attributes, .alt-attributes {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 6px 16px;
|
||||
@@ -400,7 +400,7 @@ $dx-card-bg: #f5f3f9;
|
||||
}
|
||||
}
|
||||
|
||||
.dx-delivery, .novo-delivery {
|
||||
.dx-delivery, .alt-delivery {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
@@ -410,20 +410,20 @@ $dx-card-bg: #f5f3f9;
|
||||
background: #f8fafa;
|
||||
}
|
||||
|
||||
.dx-delivery-title, .novo-delivery-title {
|
||||
.dx-delivery-title, .alt-delivery-title {
|
||||
margin: 0;
|
||||
font-size: 1rem;
|
||||
font-weight: 700;
|
||||
color: $dx-dark;
|
||||
}
|
||||
|
||||
.dx-delivery-list, .novo-delivery-list {
|
||||
.dx-delivery-list, .alt-delivery-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.dx-delivery-option, .novo-delivery-option {
|
||||
.dx-delivery-option, .alt-delivery-option {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: flex-start;
|
||||
@@ -433,7 +433,7 @@ $dx-card-bg: #f5f3f9;
|
||||
background: white;
|
||||
}
|
||||
|
||||
.dx-delivery-option-main, .novo-delivery-option-main {
|
||||
.dx-delivery-option-main, .alt-delivery-option-main {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
@@ -441,14 +441,14 @@ $dx-card-bg: #f5f3f9;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.dx-delivery-price, .novo-delivery-price {
|
||||
.dx-delivery-price, .alt-delivery-price {
|
||||
flex-shrink: 0;
|
||||
font-weight: 700;
|
||||
color: $dx-primary;
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
|
||||
.dx-delivery-chip, .novo-delivery-chip {
|
||||
.dx-delivery-chip, .alt-delivery-chip {
|
||||
display: inline-flex;
|
||||
align-self: flex-start;
|
||||
padding: 6px 12px;
|
||||
@@ -810,9 +810,9 @@ $dx-card-bg: #f5f3f9;
|
||||
}
|
||||
}
|
||||
|
||||
// ========== DEXAR RESPONSIVE ==========
|
||||
// ========== platform RESPONSIVE ==========
|
||||
|
||||
// Large desktop — constrain gallery height
|
||||
// Large desktop — constrain gallery height
|
||||
@media (min-width: 1201px) {
|
||||
.dx-main-photo {
|
||||
max-height: 560px;
|
||||
@@ -1099,20 +1099,20 @@ $dx-card-bg: #f5f3f9;
|
||||
}
|
||||
}
|
||||
|
||||
// ========== novo ITEM DETAIL STYLES ==========
|
||||
.novo-item-container {
|
||||
// ========== alt ITEM DETAIL STYLES ==========
|
||||
.alt-item-container {
|
||||
max-width: 1400px;
|
||||
margin: 0 auto;
|
||||
padding: 2rem;
|
||||
}
|
||||
|
||||
.novo-loading,
|
||||
.novo-error {
|
||||
.alt-loading,
|
||||
.alt-error {
|
||||
text-align: center;
|
||||
padding: 4rem 1rem;
|
||||
}
|
||||
|
||||
.novo-spinner {
|
||||
.alt-spinner {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
border: 3px solid var(--border-color);
|
||||
@@ -1122,7 +1122,7 @@ $dx-card-bg: #f5f3f9;
|
||||
margin: 0 auto 1.5rem;
|
||||
}
|
||||
|
||||
.novo-back-link {
|
||||
.alt-back-link {
|
||||
display: inline-block;
|
||||
margin-top: 1.5rem;
|
||||
padding: 0.75rem 2rem;
|
||||
@@ -1140,15 +1140,15 @@ $dx-card-bg: #f5f3f9;
|
||||
}
|
||||
}
|
||||
|
||||
.novo-item-content {
|
||||
.alt-item-content {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 3rem;
|
||||
margin-bottom: 3rem;
|
||||
}
|
||||
|
||||
.novo-gallery {
|
||||
.novo-main-photo {
|
||||
.alt-gallery {
|
||||
.alt-main-photo {
|
||||
width: 100%;
|
||||
aspect-ratio: 1;
|
||||
background: var(--bg-secondary);
|
||||
@@ -1165,7 +1165,7 @@ $dx-card-bg: #f5f3f9;
|
||||
background: white;
|
||||
}
|
||||
|
||||
&.novo-no-image {
|
||||
&.alt-no-image {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
@@ -1183,13 +1183,13 @@ $dx-card-bg: #f5f3f9;
|
||||
}
|
||||
}
|
||||
|
||||
.novo-thumbnails {
|
||||
.alt-thumbnails {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
|
||||
gap: 0.75rem;
|
||||
}
|
||||
|
||||
.novo-thumb {
|
||||
.alt-thumb {
|
||||
aspect-ratio: 1;
|
||||
background: var(--bg-secondary);
|
||||
border-radius: var(--radius-md);
|
||||
@@ -1235,8 +1235,8 @@ $dx-card-bg: #f5f3f9;
|
||||
}
|
||||
}
|
||||
|
||||
.novo-info {
|
||||
.novo-title {
|
||||
.alt-info {
|
||||
.alt-title {
|
||||
font-size: 2rem;
|
||||
font-weight: 700;
|
||||
color: var(--text-primary);
|
||||
@@ -1244,7 +1244,7 @@ $dx-card-bg: #f5f3f9;
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
.novo-rating {
|
||||
.alt-rating {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
@@ -1266,7 +1266,7 @@ $dx-card-bg: #f5f3f9;
|
||||
}
|
||||
}
|
||||
|
||||
.novo-price-block {
|
||||
.alt-price-block {
|
||||
background: var(--bg-secondary);
|
||||
padding: 1.5rem;
|
||||
border-radius: var(--radius-lg);
|
||||
@@ -1302,7 +1302,7 @@ $dx-card-bg: #f5f3f9;
|
||||
}
|
||||
}
|
||||
|
||||
.novo-stock {
|
||||
.alt-stock {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
@@ -1347,7 +1347,7 @@ $dx-card-bg: #f5f3f9;
|
||||
}
|
||||
}
|
||||
|
||||
.novo-add-cart {
|
||||
.alt-add-cart {
|
||||
width: 100%;
|
||||
padding: 1.25rem 2rem;
|
||||
background: var(--primary-color);
|
||||
@@ -1375,7 +1375,7 @@ $dx-card-bg: #f5f3f9;
|
||||
}
|
||||
}
|
||||
|
||||
.novo-description {
|
||||
.alt-description {
|
||||
h3 {
|
||||
font-size: 1.25rem;
|
||||
font-weight: 600;
|
||||
@@ -1392,7 +1392,7 @@ $dx-card-bg: #f5f3f9;
|
||||
}
|
||||
}
|
||||
|
||||
.novo-reviews {
|
||||
.alt-reviews {
|
||||
margin-top: 3rem;
|
||||
padding-top: 3rem;
|
||||
border-top: 1px solid var(--border-color);
|
||||
@@ -1404,12 +1404,12 @@ $dx-card-bg: #f5f3f9;
|
||||
margin: 0 0 2rem 0;
|
||||
}
|
||||
|
||||
.novo-reviews-list {
|
||||
.alt-reviews-list {
|
||||
display: grid;
|
||||
gap: 1.5rem;
|
||||
}
|
||||
|
||||
.novo-review-card {
|
||||
.alt-review-card {
|
||||
background: white;
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: var(--radius-lg);
|
||||
@@ -1461,7 +1461,7 @@ $dx-card-bg: #f5f3f9;
|
||||
}
|
||||
}
|
||||
|
||||
.novo-no-reviews {
|
||||
.alt-no-reviews {
|
||||
text-align: center;
|
||||
padding: 3rem 2rem;
|
||||
color: var(--text-secondary);
|
||||
@@ -1471,8 +1471,8 @@ $dx-card-bg: #f5f3f9;
|
||||
}
|
||||
}
|
||||
|
||||
/* novo Review Form */
|
||||
.novo-review-form {
|
||||
/* alt Review Form */
|
||||
.alt-review-form {
|
||||
background: var(--bg-secondary);
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: var(--radius-lg);
|
||||
@@ -1486,7 +1486,7 @@ $dx-card-bg: #f5f3f9;
|
||||
margin: 0 0 1.5rem 0;
|
||||
}
|
||||
|
||||
.novo-rating-input {
|
||||
.alt-rating-input {
|
||||
margin-bottom: 1.5rem;
|
||||
|
||||
label {
|
||||
@@ -1497,11 +1497,11 @@ $dx-card-bg: #f5f3f9;
|
||||
margin-bottom: 0.75rem;
|
||||
}
|
||||
|
||||
.novo-star-selector {
|
||||
.alt-star-selector {
|
||||
display: flex;
|
||||
gap: 0.5rem;
|
||||
|
||||
.novo-star {
|
||||
.alt-star {
|
||||
font-size: 2rem;
|
||||
color: #d1d5db;
|
||||
cursor: pointer;
|
||||
@@ -1520,7 +1520,7 @@ $dx-card-bg: #f5f3f9;
|
||||
}
|
||||
}
|
||||
|
||||
.novo-textarea {
|
||||
.alt-textarea {
|
||||
width: 100%;
|
||||
padding: 1rem;
|
||||
border: 1px solid var(--border-color);
|
||||
@@ -1545,14 +1545,14 @@ $dx-card-bg: #f5f3f9;
|
||||
}
|
||||
}
|
||||
|
||||
.novo-form-actions {
|
||||
.alt-form-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
margin-top: 1rem;
|
||||
flex-wrap: wrap;
|
||||
|
||||
.novo-anonymous-toggle {
|
||||
.alt-anonymous-toggle {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
@@ -1571,13 +1571,13 @@ $dx-card-bg: #f5f3f9;
|
||||
}
|
||||
}
|
||||
|
||||
.novo-username-preview {
|
||||
.alt-username-preview {
|
||||
font-size: 0.875rem;
|
||||
color: var(--text-secondary);
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.novo-submit-review-btn {
|
||||
.alt-submit-review-btn {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
@@ -1612,7 +1612,7 @@ $dx-card-bg: #f5f3f9;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.novo-spinner-small {
|
||||
.alt-spinner-small {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
border: 2px solid rgba(255, 255, 255, 0.3);
|
||||
@@ -1623,7 +1623,7 @@ $dx-card-bg: #f5f3f9;
|
||||
}
|
||||
}
|
||||
|
||||
.novo-status-message {
|
||||
.alt-status-message {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
@@ -1673,40 +1673,40 @@ $dx-card-bg: #f5f3f9;
|
||||
}
|
||||
}
|
||||
|
||||
// ========== NOVO RESPONSIVE ==========
|
||||
// ========== alt RESPONSIVE ==========
|
||||
|
||||
// Tablet portrait
|
||||
@media (max-width: 968px) {
|
||||
.novo-item-content {
|
||||
.alt-item-content {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 2rem;
|
||||
}
|
||||
|
||||
.novo-gallery {
|
||||
.alt-gallery {
|
||||
max-width: 600px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.novo-info .novo-title {
|
||||
.alt-info .alt-title {
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
.novo-info .novo-price-block .current-price {
|
||||
.alt-info .alt-price-block .current-price {
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
.novo-info .novo-add-cart {
|
||||
.alt-info .alt-add-cart {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.novo-review-form {
|
||||
.alt-review-form {
|
||||
padding: 1.5rem;
|
||||
|
||||
.novo-form-actions {
|
||||
.alt-form-actions {
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
|
||||
.novo-submit-review-btn {
|
||||
.alt-submit-review-btn {
|
||||
margin-left: 0;
|
||||
justify-content: center;
|
||||
}
|
||||
@@ -1716,41 +1716,41 @@ $dx-card-bg: #f5f3f9;
|
||||
|
||||
// Mobile
|
||||
@media (max-width: 768px) {
|
||||
.novo-item-container {
|
||||
.alt-item-container {
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
.novo-item-content {
|
||||
.alt-item-content {
|
||||
gap: 1.5rem;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.novo-gallery {
|
||||
.alt-gallery {
|
||||
max-width: 100%;
|
||||
|
||||
.novo-main-photo {
|
||||
.alt-main-photo {
|
||||
border-radius: var(--radius-lg);
|
||||
margin-bottom: 0.75rem;
|
||||
}
|
||||
|
||||
.novo-thumbnails {
|
||||
.alt-thumbnails {
|
||||
grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
|
||||
gap: 0.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
.novo-info {
|
||||
.novo-title {
|
||||
.alt-info {
|
||||
.alt-title {
|
||||
font-size: 1.35rem;
|
||||
}
|
||||
|
||||
.novo-rating {
|
||||
.alt-rating {
|
||||
flex-wrap: wrap;
|
||||
gap: 0.5rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.novo-price-block {
|
||||
.alt-price-block {
|
||||
padding: 1rem;
|
||||
|
||||
.current-price {
|
||||
@@ -1762,26 +1762,26 @@ $dx-card-bg: #f5f3f9;
|
||||
}
|
||||
}
|
||||
|
||||
.novo-stock {
|
||||
.alt-stock {
|
||||
flex-wrap: wrap;
|
||||
gap: 0.5rem;
|
||||
padding: 0.75rem;
|
||||
}
|
||||
|
||||
.novo-add-cart {
|
||||
.alt-add-cart {
|
||||
padding: 1rem 1.5rem;
|
||||
font-size: 1rem;
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.novo-description {
|
||||
.alt-description {
|
||||
h3 {
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.novo-specs-table {
|
||||
.alt-specs-table {
|
||||
.spec-key {
|
||||
white-space: normal;
|
||||
width: auto;
|
||||
@@ -1793,7 +1793,7 @@ $dx-card-bg: #f5f3f9;
|
||||
}
|
||||
}
|
||||
|
||||
.novo-reviews {
|
||||
.alt-reviews {
|
||||
margin-top: 2rem;
|
||||
padding-top: 2rem;
|
||||
|
||||
@@ -1803,11 +1803,11 @@ $dx-card-bg: #f5f3f9;
|
||||
}
|
||||
}
|
||||
|
||||
.novo-review-card {
|
||||
.alt-review-card {
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
.novo-review-form {
|
||||
.alt-review-form {
|
||||
padding: 1.25rem;
|
||||
|
||||
h3 {
|
||||
@@ -1818,32 +1818,32 @@ $dx-card-bg: #f5f3f9;
|
||||
|
||||
// Small mobile
|
||||
@media (max-width: 480px) {
|
||||
.novo-item-container {
|
||||
.alt-item-container {
|
||||
padding: 0.75rem;
|
||||
}
|
||||
|
||||
.novo-item-content {
|
||||
.alt-item-content {
|
||||
gap: 1.25rem;
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.novo-gallery {
|
||||
.novo-thumbnails {
|
||||
.alt-gallery {
|
||||
.alt-thumbnails {
|
||||
grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
|
||||
gap: 0.4rem;
|
||||
}
|
||||
|
||||
.novo-main-photo {
|
||||
.alt-main-photo {
|
||||
border-radius: var(--radius-md);
|
||||
}
|
||||
}
|
||||
|
||||
.novo-info {
|
||||
.novo-title {
|
||||
.alt-info {
|
||||
.alt-title {
|
||||
font-size: 1.15rem;
|
||||
}
|
||||
|
||||
.novo-price-block {
|
||||
.alt-price-block {
|
||||
padding: 0.75rem;
|
||||
|
||||
.current-price {
|
||||
@@ -1851,36 +1851,36 @@ $dx-card-bg: #f5f3f9;
|
||||
}
|
||||
}
|
||||
|
||||
.novo-stock {
|
||||
.alt-stock {
|
||||
padding: 0.6rem;
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
|
||||
.novo-add-cart {
|
||||
.alt-add-cart {
|
||||
padding: 0.85rem 1rem;
|
||||
font-size: 0.95rem;
|
||||
border-radius: var(--radius-md);
|
||||
}
|
||||
}
|
||||
|
||||
.novo-review-form {
|
||||
.alt-review-form {
|
||||
padding: 1rem;
|
||||
|
||||
.novo-rating-input {
|
||||
.novo-star-selector {
|
||||
.novo-star {
|
||||
.alt-rating-input {
|
||||
.alt-star-selector {
|
||||
.alt-star {
|
||||
font-size: 1.6rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.novo-textarea {
|
||||
.alt-textarea {
|
||||
padding: 0.75rem;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
}
|
||||
|
||||
.novo-review-card {
|
||||
.alt-review-card {
|
||||
padding: 0.75rem;
|
||||
|
||||
.review-header {
|
||||
@@ -1897,7 +1897,7 @@ $dx-card-bg: #f5f3f9;
|
||||
}
|
||||
}
|
||||
|
||||
.novo-specs-table {
|
||||
.alt-specs-table {
|
||||
td {
|
||||
padding: 6px 8px;
|
||||
font-size: 0.8rem;
|
||||
@@ -1924,7 +1924,7 @@ $dx-card-bg: #f5f3f9;
|
||||
// ========== BADGES, TAGS & SPECS (shared) ==========
|
||||
|
||||
// Badges
|
||||
.novo-badges, .dx-badges {
|
||||
.alt-badges, .dx-badges {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 6px;
|
||||
@@ -1952,7 +1952,7 @@ $dx-card-bg: #f5f3f9;
|
||||
}
|
||||
|
||||
// Tags
|
||||
.novo-tags, .dx-tags {
|
||||
.alt-tags, .dx-tags {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 6px;
|
||||
@@ -1970,7 +1970,7 @@ $dx-card-bg: #f5f3f9;
|
||||
}
|
||||
|
||||
// Specs table
|
||||
.novo-specs-table, .dx-specs-table {
|
||||
.alt-specs-table, .dx-specs-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
margin: 12px 0;
|
||||
@@ -1999,7 +1999,7 @@ $dx-card-bg: #f5f3f9;
|
||||
}
|
||||
|
||||
// Simple description
|
||||
.novo-simple-desc, .dx-simple-desc {
|
||||
.alt-simple-desc, .dx-simple-desc {
|
||||
font-size: 0.95rem;
|
||||
color: #697777;
|
||||
line-height: 1.6;
|
||||
@@ -2012,3 +2012,4 @@ $dx-card-bg: #f5f3f9;
|
||||
color: #697777;
|
||||
margin-left: 8px;
|
||||
}
|
||||
|
||||
|
||||
@@ -3,21 +3,22 @@ import { Router } from '@angular/router';
|
||||
import { DynamicPageLayoutComponent } from '../../layouts/containers/dynamic-page-layout.component';
|
||||
import { PageRenderModel } from '../../dynamic-renderer/page-renderer/page-renderer.model';
|
||||
import { WebsiteRuntimeFacade } from '../../facades/website/website-runtime.facade';
|
||||
import { TranslatePipe } from '../../i18n/translate.pipe';
|
||||
|
||||
@Component({
|
||||
selector: 'app-platform-home',
|
||||
standalone: true,
|
||||
imports: [DynamicPageLayoutComponent],
|
||||
imports: [DynamicPageLayoutComponent, TranslatePipe],
|
||||
template: `
|
||||
@if (loading()) {
|
||||
<section class="platform-loading section">
|
||||
<div class="page-container">Loading platform page...</div>
|
||||
<div class="page-container">{{ 'platform.loadingPage' | translate }}</div>
|
||||
</section>
|
||||
} @else if (model()) {
|
||||
<app-dynamic-page-layout [model]="model()" />
|
||||
} @else {
|
||||
<section class="platform-empty section">
|
||||
<div class="page-container">No page configuration found.</div>
|
||||
<div class="page-container">{{ 'platform.emptyConfig' | translate }}</div>
|
||||
</section>
|
||||
}
|
||||
`,
|
||||
|
||||
Reference in New Issue
Block a user