From 1142b51462f2d8c2efcf05c026f48f5f50519c0c Mon Sep 17 00:00:00 2001 From: codebriefcase Date: Wed, 23 Jun 2021 09:21:58 +0530 Subject: [PATCH] fix(docs-infra): styling fix on error pages (#42627) Add Center Aligment for heading texts and additional styles on 404 (not found) related pages PR Close #42627 --- aio/content/file-not-found.md | 2 +- aio/src/404-body.html | 2 +- .../search/file-not-found-search.component.ts | 4 +++- aio/src/app/documents/document.service.ts | 5 +++-- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/aio/content/file-not-found.md b/aio/content/file-not-found.md index 880e42cda2..b8a0ff887f 100644 --- a/aio/content/file-not-found.md +++ b/aio/content/file-not-found.md @@ -1,7 +1,7 @@
-
+

Page Not Found

We're sorry. The page you are looking for cannot be found.

diff --git a/aio/src/404-body.html b/aio/src/404-body.html index f27dd0a057..a41585acb3 100644 --- a/aio/src/404-body.html +++ b/aio/src/404-body.html @@ -28,7 +28,7 @@
-
+

Resource Not Found

We're sorry. The resource you are looking for cannot be found.

diff --git a/aio/src/app/custom-elements/search/file-not-found-search.component.ts b/aio/src/app/custom-elements/search/file-not-found-search.component.ts index e8af858b49..8a26f40b52 100644 --- a/aio/src/app/custom-elements/search/file-not-found-search.component.ts +++ b/aio/src/app/custom-elements/search/file-not-found-search.component.ts @@ -8,7 +8,9 @@ import { SearchService } from 'app/search/search.service'; @Component({ selector: 'aio-file-not-found-search', template: - `

Let's see if any of these search results help...

+ `
+

Let's see if any of these search results help...

+
` }) export class FileNotFoundSearchComponent implements OnInit { diff --git a/aio/src/app/documents/document.service.ts b/aio/src/app/documents/document.service.ts index 73ab9a0ec3..872f8b6205 100644 --- a/aio/src/app/documents/document.service.ts +++ b/aio/src/app/documents/document.service.ts @@ -18,10 +18,11 @@ export const DOC_CONTENT_URL_PREFIX = CONTENT_URL_PREFIX + 'docs/'; const FETCHING_ERROR_CONTENTS = (path: string) => `
error_outline
-
-

Request for document failed.

+
+

Request for document failed

We are unable to retrieve the "${path}" page at this time. +
Please check your connection and try again later.