Refactor FormsComponent and add AuthGuard for appeal route protection. Replace dynamic routing with static appeal route, restructure AppealComponent layout, and introduce responsive design adjustments. Update environment configuration for default auth status.

This commit is contained in:
2025-08-03 00:09:27 +02:00
parent 1f03a4bdc3
commit c277306c2c
10 changed files with 140 additions and 82 deletions
@@ -1,18 +1,24 @@
<ng-container>
<app-header [current_page]="currentPage" height="200px" background_image="/public/img/backgrounds/staff.png"
[overlay_gradient]="0.5">
[overlay_gradient]="0.5">
<div class="title" header-content>
<h1>{{ formTitle }}</h1>
</div>
</app-header>
@if (!type) {
@for (formType of FormType | keyvalue; track formType) {
<button mat-raised-button (click)="setFormType(formType.value)">
{{ formType }}
</button>
}
}
<div>
<ng-content select="[form-content]"></ng-content>
</div>
<main>
<section class="darkmodeSection">
<section class="columnSection">
<div class="columnContainer">
<div class="columnParagraph">
<a [routerLink]="['/forms/appeal']">
<h2>Appeal</h2>
<p>
If you feel your punishment was unjust, click here to appeal.
</p>
</a>
</div>
</div>
</section>
</section>
</main>
</ng-container>