File tree Expand file tree Collapse file tree 3 files changed +41
-1
lines changed Expand file tree Collapse file tree 3 files changed +41
-1
lines changed Original file line number Diff line number Diff line change
1
+ import React from 'react'
2
+ import styles from '@/style/error.module.css' ;
3
+ import { ErrorBody } from '@/api/structs' ;
4
+
5
+ interface Props {
6
+ err : ErrorBody
7
+ }
8
+
9
+ function ErrorBlock ( { err } : Props ) {
10
+ return (
11
+ < div className = { styles . container } >
12
+ < h1 className = { styles . title } >
13
+ { err . status } : We've seen better days.
14
+ </ h1 >
15
+ < p className = { styles . details } >
16
+ Reason: { err . error }
17
+ </ p >
18
+ </ div >
19
+ )
20
+ }
21
+
22
+ export default ErrorBlock
Original file line number Diff line number Diff line change
1
+ .container {
2
+ display : flex;
3
+ flex-direction : column;
4
+ align-items : center;
5
+ justify-content : flex-start;
6
+ width : 100% ;
7
+ height : 100% ;
8
+ }
9
+
10
+ .title {
11
+ font-size : xx-large;
12
+ font-family : Consolas, monospace;
13
+ }
14
+
15
+ .details {
16
+ font-family : Consolas, monospace;
17
+ }
Original file line number Diff line number Diff line change 8
8
9
9
.container {
10
10
display : flex;
11
+ flex-direction : column;
11
12
min-width : 100% ;
12
- max- height: 90% ;
13
+ height : 90% ;
13
14
overflow-y : scroll;
14
15
}
15
16
You can’t perform that action at this time.
0 commit comments