@@ -21,34 +21,34 @@ export const ProfileColumn: React.FC<Props> = ({ icon, name, data }: Props) => {
21
21
22
22
return (
23
23
< div className = "flex w-full flex-col overflow-hidden rounded border border-white border-opacity-10" >
24
- < div className = "flex flex-row items-center justify-start gap-4 bg-background-1 px-6 py-4 md:px-6 " >
25
- < div className = "h-[28px ] w-[28px ] md:h-[28px ] md:w-[28px ]" > { icon } </ div >
26
- < p className = "text-2xl font-bold md:text-3xl " > { name } </ p >
24
+ < div className = "flex flex-row items-center justify-start gap-3 bg-background-1 px-4 py-3 " >
25
+ < div className = "h-[20px ] w-[20px ] md:h-[24px ] md:w-[24px ]" > { icon } </ div >
26
+ < p className = "text-xl font-bold md:text-2xl " > { name } </ p >
27
27
</ div >
28
- < div className = "flex flex-col gap-6 bg-background-1/40 px-6 py-5 md:px-8 " >
28
+ < div className = "flex flex-col gap-4 bg-background-1/40 p-4 " >
29
29
< div className = "flex items-center justify-between" >
30
30
< div className = "flex flex-col items-center justify-center gap-1 text-human-1" >
31
31
< p className = "text-sm xl:text-base" > Rating</ p >
32
- < b className = "text-3xl xl:text-4xl " > { data . rating } </ b >
32
+ < b className = "text-xl xl:text-2xl " > { data . rating } </ b >
33
33
</ div >
34
34
< div className = "flex flex-col items-center justify-center gap-1" >
35
35
< p className = "text-sm xl:text-base" > Highest</ p >
36
- < b className = "text-3xl xl:text-4xl " > { data . highest } </ b >
36
+ < b className = "text-xl xl:text-2xl " > { data . highest } </ b >
37
37
</ div >
38
38
< div className = "flex flex-col items-center justify-center gap-1" >
39
39
< p className = "text-sm xl:text-base" > Games</ p >
40
- < b className = "text-3xl xl:text-4xl " > { data . games } </ b >
40
+ < b className = "text-xl xl:text-2xl " > { data . games } </ b >
41
41
</ div >
42
- < div className = "flex flex-col items-center justify-center gap-1" >
42
+ { /* <div className="flex flex-col items-center justify-center gap-1">
43
43
<p className="text-sm xl:text-base">Hours</p>
44
- < b className = "text-3xl xl:text-4xl " > { data . hours } </ b >
45
- </ div >
44
+ <b className="text-xl xl:text-2xl ">{data.hours}</b>
45
+ </div> */ }
46
46
</ div >
47
47
< div className = "flex flex-col items-center gap-2" >
48
48
< div className = "flex w-full items-center justify-between" >
49
49
< div className = "flex items-center gap-1" >
50
- < div className = "h-4 w-4 border border-black bg-green-500/70" />
51
- < p className = "text-xs xl:text-sm " >
50
+ < div className = "h-3 w-3 border border-black bg-green-500/70" />
51
+ < p className = "text-xs" >
52
52
Wins: { wins } { ' ' }
53
53
< span className = "text-secondary" >
54
54
({ Math . round ( ( wins * 100 ) / data . games ) || 0 } %)
@@ -57,8 +57,8 @@ export const ProfileColumn: React.FC<Props> = ({ icon, name, data }: Props) => {
57
57
</ div >
58
58
{ draws > 0 ? (
59
59
< div className = "flex items-center gap-1" >
60
- < div className = "h-4 w-4 border border-black bg-yellow-500/70" />
61
- < p className = "text-xs xl:text-sm " >
60
+ < div className = "h-3 w-3 border border-black bg-yellow-500/70" />
61
+ < p className = "text-xs" >
62
62
Draws: { draws } { ' ' }
63
63
< span className = "text-secondary" >
64
64
({ Math . round ( ( draws * 100 ) / data . games ) || 0 } %)
@@ -69,26 +69,26 @@ export const ProfileColumn: React.FC<Props> = ({ icon, name, data }: Props) => {
69
69
< > </ >
70
70
) }
71
71
< div className = "flex items-center gap-1" >
72
- < div className = "h-4 w-4 border border-black bg-red-500/70" />
73
- < p className = "text-xs xl:text-sm " >
72
+ < div className = "h-3 w-3 border border-black bg-red-500/70" />
73
+ < p className = "text-xs" >
74
74
Losses: { losses } { ' ' }
75
75
< span className = "text-secondary" >
76
76
({ Math . round ( ( losses * 100 ) / data . games ) || 0 } %)
77
77
</ span >
78
78
</ p >
79
79
</ div >
80
80
</ div >
81
- < div className = "flex h-10 w-full border-2 border-black" >
81
+ < div className = "flex h-6 w-full border border-black" >
82
82
{ wins > 0 && (
83
83
< div
84
- className = "h-full border-r-2 border-black bg-green-500/70"
84
+ className = "h-full border-r border-black bg-green-500/70"
85
85
style = { { width : `${ ( wins / data . games ) * 100 } %` } }
86
86
/>
87
87
) }
88
88
89
89
{ draws > 0 && (
90
90
< div
91
- className = "h-full border-r-2 border-black bg-yellow-500/70"
91
+ className = "h-full border-r border-black bg-yellow-500/70"
92
92
style = { { width : `${ ( draws / data . games ) * 100 } %` } }
93
93
/>
94
94
) }
0 commit comments