Skip to content

Commit c90b652

Browse files
fix: new design for not found page (#1022)
* fix: new design for not found page * fix: for lint issues * fix: for lint issues Will push nit fixes in another pr
1 parent b7d4569 commit c90b652

File tree

3 files changed

+186
-16
lines changed

3 files changed

+186
-16
lines changed
Lines changed: 140 additions & 0 deletions
Loading

projects/components/src/not-found/not-found.component.scss

Lines changed: 29 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,37 @@
33

44
.not-found-container {
55
display: flex;
6-
flex-direction: column;
7-
align-items: center;
86
justify-content: center;
7+
align-items: center;
98

10-
.not-found-message {
11-
@include header-3;
12-
padding-bottom: 64px;
13-
}
9+
.not-found-content {
10+
display: flex;
11+
padding: 52px;
12+
box-shadow: 0px 16px 48px rgba(0, 0, 0, 0.08);
13+
border-radius: 8px;
14+
max-width: 748px;
15+
max-height: 348px;
16+
17+
.not-found-message-wrapper {
18+
display: flex;
19+
flex-direction: column;
20+
align-items: flex-start;
21+
justify-content: flex-start;
22+
padding-left: 40px;
23+
24+
.not-found-text-wrapper {
25+
margin-bottom: 36px;
26+
}
27+
28+
.not-found-message {
29+
@include header-4;
30+
margin-bottom: 16px;
31+
}
1432

15-
.navigate-home-button {
16-
height: 2em;
33+
.not-found-description {
34+
@include body-2-medium();
35+
color: $gray-5;
36+
}
37+
}
1738
}
1839
}

projects/components/src/not-found/not-found.component.ts

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,29 @@
11
import { ChangeDetectionStrategy, Component } from '@angular/core';
22
import { NavigationService } from '@hypertrace/common';
3-
import { ButtonStyle } from '../button/button';
3+
import { ButtonRole, ButtonStyle } from '../button/button';
44

55
@Component({
66
selector: 'ht-not-found',
77
changeDetection: ChangeDetectionStrategy.OnPush,
88
styleUrls: ['./not-found.component.scss'],
99
template: `
1010
<div class="not-found-container fill-container">
11-
<div class="not-found-message">The requested page is not available</div>
12-
<ht-button
13-
class="navigate-home-button"
14-
label="Take me home"
15-
(click)="this.goHome()"
16-
display="${ButtonStyle.Bordered}"
17-
></ht-button>
11+
<div class="not-found-content">
12+
<img class="not-found-image" src="assets/images/error-page.svg" loading="lazy" alt="not found page" />
13+
<div class="not-found-message-wrapper">
14+
<div class="not-found-text-wrapper">
15+
<div class="not-found-message">Page not found</div>
16+
<div class="not-found-description">The requested page is not available. This may be an unknown URL.</div>
17+
</div>
18+
<ht-button
19+
class="navigate-home-button"
20+
label="Go to dashboard"
21+
(click)="this.goHome()"
22+
display="${ButtonStyle.Solid}"
23+
role="${ButtonRole.Primary}"
24+
></ht-button>
25+
</div>
26+
</div>
1827
</div>
1928
`
2029
})

0 commit comments

Comments
 (0)