File tree 4 files changed +29
-5
lines changed
4 files changed +29
-5
lines changed Original file line number Diff line number Diff line change 1
1
import React from 'react'
2
2
import Icons from './icons'
3
3
import { ERROR_RED , MAIN_GREEN , WARNING_YELLOW } from './constants'
4
+ import styles from './Report.module.css'
4
5
5
6
function getIcon ( type ) {
6
7
switch ( type ) {
@@ -17,7 +18,7 @@ function Step ({
17
18
label
18
19
} ) {
19
20
return (
20
- < div className = 'flex items-center gap-x-2' >
21
+ < div className = { styles . step } >
21
22
{ getIcon ( type ) }
22
23
< span > { label } </ span >
23
24
</ div >
@@ -32,7 +33,7 @@ export default function Report ({
32
33
} )
33
34
}
34
35
return (
35
- < div className = 'text-white/70 flex flex-col gap-y-2' >
36
+ < div className = { styles . container } >
36
37
{ renderSteps ( ) }
37
38
</ div >
38
39
Original file line number Diff line number Diff line change
1
+ .container {
2
+ @apply text-white/70 flex flex-col gap-y-2;
3
+ }
4
+
5
+ .step {
6
+ @apply flex items-center gap-x-2;
7
+ }
Original file line number Diff line number Diff line change @@ -36,13 +36,13 @@ export default function SplashScreen ({
36
36
}
37
37
}
38
38
return (
39
- < div className = { `${ styles . container } ${ blur ? 'backdrop- blur-sm bg-rich-black/50' : 'bg-rich-black' } ` } onClick = { ( ) => setDestroyed ( true ) } >
39
+ < div className = { `${ styles . container } ${ blur ? styles . blur : styles . solid } ` } onClick = { ( ) => setDestroyed ( true ) } >
40
40
< div className = { styles . content } >
41
41
< div className = { styles . icon } > { renderIcon ( ) } </ div >
42
42
< div className = { styles . title } > { title } </ div >
43
43
< div className = { styles . message } > { message } </ div >
44
44
45
- < div className = 'mb-4' >
45
+ < div className = { styles . childrenContainer } >
46
46
{ children }
47
47
</ div >
48
48
Original file line number Diff line number Diff line change 1
1
.container {
2
- @apply fixed inset-0 flex items-center justify-center text-white;
2
+ @apply fixed inset-0 flex items-center justify-center text-white;
3
+ }
4
+
5
+ .container .blur {
6
+ @apply backdrop-blur-sm bg-rich-black/50;
7
+ }
8
+
9
+ .container .solid {
10
+ @apply bg-rich-black;
3
11
}
4
12
5
13
.title {
16
24
17
25
.content {
18
26
@apply flex flex-col gap-y-2 items-center justify-center text-center bg-transparent;
27
+ }
28
+
29
+ .childrenContainer {
30
+ @apply mb-4;
31
+ }
32
+
33
+ .button {
34
+ @apply flex items-center justify-center;
19
35
}
You can’t perform that action at this time.
0 commit comments