File tree Expand file tree Collapse file tree 4 files changed +29
-5
lines changed Expand file tree Collapse file tree 4 files changed +29
-5
lines changed Original file line number Diff line number Diff line change 11import React from 'react'
22import Icons from './icons'
33import { ERROR_RED , MAIN_GREEN , WARNING_YELLOW } from './constants'
4+ import styles from './Report.module.css'
45
56function getIcon ( type ) {
67 switch ( type ) {
@@ -17,7 +18,7 @@ function Step ({
1718 label
1819} ) {
1920 return (
20- < div className = 'flex items-center gap-x-2' >
21+ < div className = { styles . step } >
2122 { getIcon ( type ) }
2223 < span > { label } </ span >
2324 </ div >
@@ -32,7 +33,7 @@ export default function Report ({
3233 } )
3334 }
3435 return (
35- < div className = 'text-white/70 flex flex-col gap-y-2' >
36+ < div className = { styles . container } >
3637 { renderSteps ( ) }
3738 </ div >
3839
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 ({
3636 }
3737 }
3838 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 ) } >
4040 < div className = { styles . content } >
4141 < div className = { styles . icon } > { renderIcon ( ) } </ div >
4242 < div className = { styles . title } > { title } </ div >
4343 < div className = { styles . message } > { message } </ div >
4444
45- < div className = 'mb-4' >
45+ < div className = { styles . childrenContainer } >
4646 { children }
4747 </ div >
4848
Original file line number Diff line number Diff line change 11.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;
311}
412
513.title {
1624
1725.content {
1826 @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;
1935}
You can’t perform that action at this time.
0 commit comments