added standartized page-container component
This commit is contained in:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user