3
3
import { useQuery } from "@tanstack/react-query" ;
4
4
import type { NextPage } from "next" ;
5
5
6
- const thStyles = "whitespace-nowrap px-3 py-3.5" ;
7
- const tdStyles = "whitespace-nowrap px-3 py-4" ;
6
+ const thStyles = "whitespace-nowrap px-3 py-3.5 text-center " ;
7
+ const tdStyles = "whitespace-nowrap px-3 py-4 text-center " ;
8
8
9
9
type ChallengeStat = {
10
10
challenge : number ;
@@ -71,21 +71,21 @@ const Stats: NextPage = () => {
71
71
</ dl >
72
72
< div className = "mt-8 overflow-hidden bg-base-100 border-2 border-t-4 border-l-4 border-green-700 border-t-green-600 border-l-green-500" >
73
73
< table className = "w-full divide-y divide-green-600" >
74
- < thead className = "bg-green-600/30 font-dotGothic tracking-wide text-left text-gray-50 md:text-xl" >
74
+ < thead className = "bg-green-600/30 font-dotGothic tracking-wide text-center text-gray-50 md:text-xl" >
75
75
< tr >
76
- < th scope = "col" className = { thStyles } >
76
+ < th scope = "col" className = { ` ${ thStyles } w-1/2` } >
77
77
Flag
78
78
</ th >
79
- < th scope = "col" className = { thStyles } >
79
+ < th scope = "col" className = { ` ${ thStyles } w-1/2` } >
80
80
Total Minted
81
81
</ th >
82
82
</ tr >
83
83
</ thead >
84
- < tbody className = "divide-y divide-gray-700 bg-base-100 md:text-xl" >
84
+ < tbody className = "divide-y divide-x divide- gray-700 bg-base-100 md:text-xl" >
85
85
{ stats . challenges . stats
86
86
. sort ( ( a : ChallengeStat , b : ChallengeStat ) => a . challenge - b . challenge )
87
87
. map ( ( stat : ChallengeStat ) => (
88
- < tr key = { stat . challenge } >
88
+ < tr key = { stat . challenge } className = "divide-x divide-gray-700" >
89
89
< td className = { tdStyles } > #{ stat . challenge } </ td >
90
90
< td className = { tdStyles } > { stat . count } </ td >
91
91
</ tr >
@@ -111,21 +111,21 @@ const Stats: NextPage = () => {
111
111
</ dl >
112
112
< div className = "mt-8 overflow-hidden bg-base-100 border-2 border-t-4 border-l-4 border-green-700 border-t-green-600 border-l-green-500" >
113
113
< table className = "w-full divide-y divide-green-600" >
114
- < thead className = "bg-green-600/30 font-dotGothic tracking-wide text-left text-gray-50 md:text-xl" >
114
+ < thead className = "bg-green-600/30 font-dotGothic tracking-wide text-center text-gray-50 md:text-xl" >
115
115
< tr >
116
- < th scope = "col" className = { thStyles } >
116
+ < th scope = "col" className = { ` ${ thStyles } w-1/2` } >
117
117
Flags captured
118
118
</ th >
119
- < th scope = "col" className = { thStyles } >
119
+ < th scope = "col" className = { ` ${ thStyles } w-1/2` } >
120
120
Users
121
121
</ th >
122
122
</ tr >
123
123
</ thead >
124
- < tbody className = "divide-y divide-gray-700 bg-base-100 md:text-xl" >
124
+ < tbody className = "divide-y divide-x divide- gray-700 bg-base-100 md:text-xl" >
125
125
{ stats . users . stats
126
126
. sort ( ( a : UserStat , b : UserStat ) => a . challengesCount - b . challengesCount )
127
127
. map ( ( stat : UserStat ) => (
128
- < tr key = { stat . challengesCount } >
128
+ < tr key = { stat . challengesCount } className = "divide-x divide-gray-700" >
129
129
< td className = { tdStyles } > { stat . challengesCount } </ td >
130
130
< td className = { tdStyles } > { stat . count } </ td >
131
131
</ tr >
0 commit comments