File tree 3 files changed +7
-41
lines changed
3 files changed +7
-41
lines changed Original file line number Diff line number Diff line change @@ -11,14 +11,14 @@ import {
11
11
WindowSizeContextProvider ,
12
12
AnalysisListContextProvider ,
13
13
} from 'src/providers'
14
- import { Compose , ErrorBoundary , Header } from 'src/components/'
15
14
import 'src/styles/globals.scss'
16
15
import 'src/styles/tailwind.css'
17
16
import 'react-tooltip/dist/react-tooltip.css'
18
17
import 'chessground/assets/chessground.base.css'
19
18
import 'chessground/assets/chessground.brown.css'
20
19
import 'chessground/assets/chessground.cburnett.css'
21
20
import { Footer } from 'src/components/Footer/Footer'
21
+ import { Compose , ErrorBoundary , Header } from 'src/components/'
22
22
23
23
function MaiaPlatform ( { Component, pageProps } : AppProps ) {
24
24
const router = useRouter ( )
Original file line number Diff line number Diff line change 1
- import styles from 'src/styles/App.module.scss '
2
- import { LeaderboardColumn } from 'src/components/LeaderboardColumn/LeaderboardColumn'
1
+ import { useCallback , useEffect , useState } from 'react '
2
+
3
3
import {
4
4
BrainIcon ,
5
5
HandIcon ,
6
6
RegularPlayIcon ,
7
7
TrainIcon ,
8
8
TuringIcon ,
9
9
} from 'src/components/Icons/icons'
10
- import { useCallback , useEffect , useState } from 'react'
11
10
import { getLeaderboard } from 'src/api'
11
+ import { LeaderboardColumn } from 'src/components/LeaderboardColumn/LeaderboardColumn'
12
12
13
13
const Leaderboard : React . FC = ( ) => {
14
14
const [ lastUpdated , setLastUpdated ] = useState < Date | null > ( null )
@@ -57,8 +57,8 @@ const Leaderboard: React.FC = () => {
57
57
} , [ fetchLeaderboard ] )
58
58
59
59
return (
60
- < div className = { styles . leaderboardPage } >
61
- < div className = { styles . leaderboardHeader } >
60
+ < div className = "flex h-full w-full flex-col items-start justify-center gap-8 px-[4%] py-[2%]" >
61
+ < div className = "flex flex-col" >
62
62
< h1 className = "text-4xl font-bold" > Rating Leaderboards</ h1 >
63
63
< p >
64
64
Last Updated:{ ' ' }
@@ -74,7 +74,7 @@ const Leaderboard: React.FC = () => {
74
74
: '...' }
75
75
</ p >
76
76
</ div >
77
- < div className = { styles . leaderboardContainer } >
77
+ < div className = "flex h-full w-full flex-row flex-wrap justify-start gap-4" >
78
78
{ leaderboard ?. map ( ( column , index ) => (
79
79
< LeaderboardColumn key = { index } { ...column } />
80
80
) ) }
Original file line number Diff line number Diff line change 536
536
}
537
537
}
538
538
}
539
-
540
- .leaderboardPage {
541
- display : flex ;
542
- flex-direction : column ;
543
- align-items : start ;
544
- justify-content : center ;
545
- gap : 20px ;
546
- width : 100% ;
547
- padding : 2% 4% ;
548
- height : 100% ;
549
-
550
- @include mobile {
551
- padding : 15% 4% ;
552
- }
553
-
554
- .leaderboardHeader {
555
- display : flex ;
556
- flex-direction : column ;
557
-
558
- p {
559
- margin : 0px ;
560
- }
561
- }
562
-
563
- .leaderboardContainer {
564
- display : flex ;
565
- flex-direction : row ;
566
- flex-wrap : wrap ;
567
- justify-content : start ;
568
- gap : 25px ;
569
- width : 100% ;
570
- height : 100% ;
571
- }
572
- }
You can’t perform that action at this time.
0 commit comments