feat(platform): sprint 11.5 standardization
Some checks failed
Architecture Governance / architecture (push) Has been cancelled

This commit is contained in:
sdarbinyan
2026-07-09 02:29:12 +04:00
parent a16c856537
commit 8d652c8259
57 changed files with 2162 additions and 848 deletions

View File

@@ -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>
}

View File

@@ -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; }
}

View File

@@ -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