- Updated app routing to redirect to the store feature and load children routes correctly. - Enhanced app styles with tenant-specific branding and loading states. - Improved app component to dynamically set CSS variables based on tenant colors. - Refactored store layout components to simplify logo handling and improve accessibility. - Updated tenant service to manage state more effectively and handle SSR scenarios. - Added tests for tenant service and layout components to ensure proper functionality. - Introduced a new SSR cache store for tenant state management. - Enhanced button styles to utilize tenant colors for better branding consistency.
18 lines
617 B
HTML
18 lines
617 B
HTML
@if (status() === 'ready') {
|
|
<router-outlet />
|
|
} @else if (status() === 'not-found') {
|
|
<section class="tenant-status">
|
|
<div class="tenant-status__card">
|
|
<span class="tenant-status__code">404</span>
|
|
<h1 class="tenant-status__title">No encontramos una tienda para este dominio</h1>
|
|
<p class="tenant-status__description">
|
|
Verifica la configuracion del tenant o intenta nuevamente con un dominio valido.
|
|
</p>
|
|
</div>
|
|
</section>
|
|
} @else {
|
|
<section class="tenant-status tenant-status--loading" aria-hidden="true">
|
|
<div class="tenant-status__spinner"></div>
|
|
</section>
|
|
}
|