feat static pages system with dynamic footer and safe html rendering
This commit is contained in:
18
src/app/pages/static-page/static-page.component.html
Normal file
18
src/app/pages/static-page/static-page.component.html
Normal file
@@ -0,0 +1,18 @@
|
||||
<main class="static-page page-container">
|
||||
@if (loading()) {
|
||||
<section class="static-page__state">{{ 'app.connecting' | translate }}</section>
|
||||
} @else if (notFound()) {
|
||||
<section class="static-page__state">
|
||||
<h1>404</h1>
|
||||
<p>Страница не найдена</p>
|
||||
<a [routerLink]="'/' | langRoute">На главную</a>
|
||||
</section>
|
||||
} @else {
|
||||
<article class="static-page__content">
|
||||
@if (title()) {
|
||||
<h1>{{ title() }}</h1>
|
||||
}
|
||||
<div class="static-page__html" [innerHTML]="safeHtml()"></div>
|
||||
</article>
|
||||
}
|
||||
</main>
|
||||
Reference in New Issue
Block a user