added standartized page-container component

This commit is contained in:
2026-11-09 16:48:23 +01:00
parent 57092aed99
commit fc6c621418
3 changed files with 54 additions and 0 deletions
@@ -0,0 +1,15 @@
<div class="page-container">
@if (title() || subtitle() || eyebrow()) {
<app-page-header
[title]="title()"
[subtitle]="subtitle()"
[eyebrow]="eyebrow()">
<ng-container pageActions>
<ng-content select="[pageActions]"></ng-content>
</ng-container>
</app-page-header>
}
<div class="page-container__content">
<ng-content></ng-content>
</div>
</div>
@@ -0,0 +1,23 @@
:host {
box-sizing: border-box;
display: block;
width: 100%;
min-width: 0;
}
.page-container {
box-sizing: border-box;
display: flex;
width: 100%;
min-width: 0;
flex-direction: column;
gap: 14px;
padding: clamp(8px, 1.4vw, 18px);
}
.page-container__content {
display: flex;
min-width: 0;
flex-direction: column;
gap: 12px;
}
@@ -0,0 +1,16 @@
import { Component, input } from '@angular/core';
import { PageHeaderComponent } from '../page-header/page-header.component';
/** Shared full-width page frame with a consistent page heading. */
@Component({
selector: 'app-page-container',
standalone: true,
imports: [PageHeaderComponent],
templateUrl: './page-container.component.html',
styleUrl: './page-container.component.scss',
})
export class PageContainerComponent {
readonly title = input<string | null>(null);
readonly subtitle = input<string | null>(null);
readonly eyebrow = input<string | null>(null);
}