Skip to content

Commit 06c49db

Browse files
committed
Update styles for Report and SplashScreen
Signed-off-by: Leonardo Rossi <[email protected]>
1 parent ccc78a6 commit 06c49db

File tree

4 files changed

+29
-5
lines changed

4 files changed

+29
-5
lines changed

src/components/Report.jsx

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import React from 'react'
22
import Icons from './icons'
33
import { ERROR_RED, MAIN_GREEN, WARNING_YELLOW } from './constants'
4+
import styles from './Report.module.css'
45

56
function 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

src/components/Report.module.css

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
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+
}

src/components/SplashScreen.jsx

+2-2
Original file line numberDiff line numberDiff 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

src/components/SplashScreen.module.css

+17-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
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 {
@@ -16,4 +24,12 @@
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
}

0 commit comments

Comments
 (0)