e95c175f9b
The menu and its overlay were in the initial bundle of every route (+183 kB); they now load in their own chunk, with a same-size placeholder. On phones the title moves to a second row instead of being squeezed beside the selector. (cherry picked from commit 2ccddf80dbbe41a328281fcdc1c95ebe421f4191)
38 lines
1.4 KiB
HTML
38 lines
1.4 KiB
HTML
<div class="app-shell" [class.app-shell--workspace]="workspace()" [class.app-shell--indicadores]="!!activeDomain()">
|
||
<header class="site-header">
|
||
<div class="site-header__content">
|
||
<a class="brand" routerLink="/" aria-label="ISSSTELEON, inicio">
|
||
<img src="assets/branding/isssteleon-logo.png" alt="ISSSTELEON" />
|
||
</a>
|
||
@if (activeDomain(); as domain) {
|
||
<span class="platform-title">{{ title }}</span>
|
||
@defer (on immediate) {
|
||
<app-domain-selector [actual]="domain" [otros]="otherDomains()" [labels]="domainLabels" />
|
||
} @placeholder {
|
||
<!-- Same size as the selector until its code arrives, so the header does not jump. -->
|
||
<span class="domain-selector domain-selector--espera" aria-hidden="true">{{ domainLabels[domain] }}</span>
|
||
}
|
||
} @else {
|
||
<nav class="site-header__nav" aria-label="Secciones">
|
||
<a class="site-header__section" routerLink="/">Análisis de información</a>
|
||
@if (breadcrumb(); as crumb) {
|
||
<span class="site-header__crumb" aria-current="page">› {{ crumb }}</span>
|
||
}
|
||
</nav>
|
||
}
|
||
</div>
|
||
</header>
|
||
|
||
<main class="app-main">
|
||
<router-outlet />
|
||
</main>
|
||
|
||
@if (!workspace()) {
|
||
<footer class="site-footer">
|
||
<div class="site-footer__content">
|
||
<img src="assets/branding/isssteleon-logo.png" alt="ISSSTELEON" />
|
||
</div>
|
||
</footer>
|
||
}
|
||
</div>
|