feat: add EnvBanner component for non-production environments

Standalone component that renders a small banner whenever
environment.production is false, so the local dev build is never
mistaken for the real app.
This commit is contained in:
Bastian Wagner
2026-08-05 12:26:46 +02:00
parent 77ed71cfb6
commit 95a667cb98
4 changed files with 61 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
import { Component } from '@angular/core';
import { environment } from '../../../environments/environment';
export const ENV_BANNER_HEIGHT_PX = 28;
@Component({
selector: 'app-env-banner',
templateUrl: './env-banner.html',
styleUrl: './env-banner.scss',
})
export class EnvBanner {
protected readonly showBanner = !environment.production;
}