Skip to content

Commit

Permalink
fix: adjust text size on error pages
Browse files Browse the repository at this point in the history
  • Loading branch information
HenryT-CG committed Jan 3, 2025
1 parent a801304 commit 91884e6
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 20 deletions.
6 changes: 3 additions & 3 deletions src/app/shell/components/error-page.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import { getLocation } from '@onecx/accelerator'
template: `
<div class="p-4 flex flex-column gap-5">
<div>
<h1 class="md:text-2xl text-lg">{{ 'ERROR_PAGE.TITLE' | translate }}</h1>
<p class="md:text-lg text-base mb-1">{{ 'ERROR_PAGE.DETAILS' | translate }}</p>
<p class="md:text-base text-sm">{{ 'ERROR_PAGE.REQUESTED_PAGE' | translate }} {{ requestedApplicationPath }}</p>
<h1 class="md:text-xl text-lg">{{ 'ERROR_PAGE.TITLE' | translate }}</h1>
<p class="mb-1">{{ 'ERROR_PAGE.DETAILS' | translate }}</p>
<p class="">{{ 'ERROR_PAGE.REQUESTED_PAGE' | translate }} {{ requestedApplicationPath }}</p>
</div>
<button pButton (click)="reloadPage()" routerLinkActive="router-link-active" class="w-max">
{{ 'ERROR_PAGE.BUTTON' | translate }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,41 +4,41 @@ import { SerializedInitializationError } from '../../utils/initialization-error-

@Component({
template: `<div class="p-4">
<h1 class="md:text-2xl text-lg mb-1">{{ 'INITIALIZATION_ERROR_PAGE.TITLE' | translate }}</h1>
<p class="md:text-lg text-base">{{ 'INITIALIZATION_ERROR_PAGE.SUBTITLE' | translate }}</p>
<div class="mt-3 flex flex-column row-gap-2">
<div *ngIf="error.message">
<div class="md:text-base text-sm">
<h1 class="md:text-xl text-lg mb-1">{{ 'INITIALIZATION_ERROR_PAGE.TITLE' | translate }}</h1>
<p class="text-base">{{ 'INITIALIZATION_ERROR_PAGE.SUBTITLE' | translate }}</p>
<div class="mt-4 flex flex-column row-gap-2">
<div *ngIf="error.message" class="md:text-base text-sm">
<div>
{{ 'INITIALIZATION_ERROR_PAGE.DETAILS.MESSAGE' | translate }}
</div>
<i>{{ error.message }}</i>
</div>
<div *ngIf="error.requestedUrl">
<div class="md:text-base text-sm">
<div *ngIf="error.requestedUrl" class="md:text-base text-sm">
<div>
{{ 'INITIALIZATION_ERROR_PAGE.DETAILS.REQUESTED_URL' | translate }}
</div>
<i>{{ error.requestedUrl }}</i>
</div>
<div *ngIf="error.detail">
<div class="md:text-base text-sm">
<div *ngIf="error.detail" class="md:text-base text-sm">
<div>
{{ 'INITIALIZATION_ERROR_PAGE.DETAILS.DETAILS' | translate }}
</div>
<i>{{ error.detail }}</i>
</div>
<div *ngIf="error.errorCode">
<div class="md:text-base text-sm">
<div *ngIf="error.errorCode" class="md:text-base text-sm">
<div>
{{ 'INITIALIZATION_ERROR_PAGE.DETAILS.ERRORCODE' | translate }}
</div>
<i>{{ error.errorCode }}</i>
</div>
<div *ngIf="error.invalidParams">
<div class="md:text-base text-sm">
<div *ngIf="error.invalidParams" class="md:text-base text-sm">
<div>
{{ 'INITIALIZATION_ERROR_PAGE.DETAILS.INVALID_PARAMS' | translate }}
</div>
<i>{{ error.invalidParams }}</i>
</div>
<div *ngIf="error.params">
<div class="md:text-base text-sm">
<div *ngIf="error.params" class="md:text-base text-sm">
<div>
{{ 'INITIALIZATION_ERROR_PAGE.DETAILS.PARAMS' | translate }}
</div>
<i>{{ error.params }}</i>
Expand Down
4 changes: 2 additions & 2 deletions src/app/shell/components/not-found-page.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import { Workspace } from '@onecx/integration-interface'
template: `
<div class="p-4 flex flex-column gap-5">
<div>
<h1 class="md:text-2xl text-lg">{{ 'NOT_FOUND_PAGE.TITLE' | translate }}</h1>
<p class="md:text-lg text-base">{{ 'NOT_FOUND_PAGE.DETAILS' | translate }}</p>
<h1 class="md:text-xl text-lg">{{ 'NOT_FOUND_PAGE.TITLE' | translate }}</h1>
<p class="">{{ 'NOT_FOUND_PAGE.DETAILS' | translate }}</p>
</div>
<button pButton [routerLink]="[workspace?.baseUrl]" class="w-max">
{{ 'NOT_FOUND_PAGE.BUTTON' | translate }}
Expand Down

0 comments on commit 91884e6

Please sign in to comment.