-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat: Unexpected js error handling and 404. Router error element to c…
…atch errors and redirect to error page.
- Loading branch information
syam babu
committed
Aug 11, 2023
1 parent
6de07bf
commit f1ddc8b
Showing
8 changed files
with
146 additions
and
28 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,67 @@ | ||
.error-page{ | ||
width: 100vw; | ||
height: 100vh; | ||
overflow: hidden; | ||
.error-page { | ||
width: 100vw; | ||
height: 100vh; | ||
overflow: hidden; | ||
background: var(--primary-white); | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
|
||
.error-page > svg { | ||
height: 100%; | ||
.error-page .content { | ||
min-width: 500px; | ||
max-width: 700px; | ||
max-height: 750px; | ||
width: 40%; | ||
height: 70%; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: space-around; | ||
align-items: center; | ||
} | ||
|
||
.error-page .image-container { | ||
height: 40%; | ||
} | ||
|
||
.error-page .image-container > svg { | ||
width: 100%; | ||
height: 100%; | ||
} | ||
|
||
.error-page .floating-alert{ | ||
width: 400px; | ||
position: absolute; | ||
right: 50%; | ||
top: 0; | ||
transform: translate(50%); | ||
} | ||
.error-page h1 { | ||
color: var(--content-neutral-primary, #222732); | ||
text-align: center; | ||
font-size: 60px; | ||
font-style: normal; | ||
font-weight: 700; | ||
line-height: 120%; | ||
} | ||
|
||
.error-page .error-message, | ||
.error-page .error-time { | ||
color: var(--content-neutral-secondary, #646d7b); | ||
text-align: center; | ||
font-size: 16px; | ||
font-style: normal; | ||
font-weight: 400; | ||
line-height: 24px; | ||
} | ||
|
||
.error-page .btn-container { | ||
display: grid; | ||
place-content: center; | ||
} | ||
|
||
.error-page .btn-container .ant-btn { | ||
border-radius: 4px; | ||
background: var(--content-action-default, #1b3de6); | ||
color: var(--primary-white); | ||
font-weight: 600; | ||
text-transform: capitalize; | ||
border: none; | ||
font-size: 16px; | ||
padding: 8px 16px; | ||
display: grid; | ||
place-content: center; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters