File tree Expand file tree Collapse file tree 3 files changed +39
-27
lines changed Expand file tree Collapse file tree 3 files changed +39
-27
lines changed Original file line number Diff line number Diff line change
1
+ "use client" ;
2
+
3
+ import { IoIosSettings } from "react-icons/io" ;
4
+ import {
5
+ Card ,
6
+ CardHeader ,
7
+ CardTitle ,
8
+ CardDescription ,
9
+ CardContent ,
10
+ } from "@/components/ui/card" ;
11
+ import { Button } from "@/components/ui/button" ;
12
+
13
+ export default function DifficultyComponent ( ) {
14
+ return (
15
+ < Card className = "w-[80%] flex-1 m-10" >
16
+ < div className = "flex w-full " >
17
+ < IoIosSettings className = "ml-3 mt-1 text-2xl" />
18
+ < CardHeader className = "ml-5 flex-1 ml-0 pl-3" >
19
+ < CardTitle className = "text-2xl font-bold" > Difficult Level</ CardTitle >
20
+ < CardDescription >
21
+ Select one of more difficulty levels that you would like to practice
22
+ </ CardDescription >
23
+ </ CardHeader >
24
+ </ div >
25
+
26
+ < CardContent className = "flex justify-evenly h-full items-center gap-3" >
27
+ < Button className = "flex-1 h-[50%] bg-green-200 text-black" > Easy</ Button >
28
+
29
+ < Button className = "flex-1 h-[50%] bg-yellow-200 text-black" >
30
+ Medium
31
+ </ Button >
32
+
33
+ < Button className = "flex-1 h-[50%] bg-red-200 text-black" > Hard</ Button >
34
+ </ CardContent >
35
+ </ Card >
36
+ ) ;
37
+ }
Original file line number Diff line number Diff line change 1
1
"use client" ;
2
2
3
- import { IoIosSettings } from "react-icons/io" ;
4
3
import { CiBookmark } from "react-icons/ci" ;
5
4
import {
6
5
Card ,
Original file line number Diff line number Diff line change 9
9
} from "@/components/ui/card" ;
10
10
import { Button } from "@/components/ui/button" ;
11
11
import TopicsComponent from "../components/match/TopicsComponent" ;
12
+ import DifficultyComponent from "../components/match/DifficultyComponent" ;
12
13
13
14
export default function MatchPage ( ) {
14
15
return (
@@ -20,32 +21,7 @@ export default function MatchPage() {
20
21
</ h1 >
21
22
</ div >
22
23
23
- < Card className = "w-[80%] flex-1 m-10" >
24
- < div className = "flex w-full " >
25
- < IoIosSettings className = "ml-3 mt-1 text-2xl" />
26
- < CardHeader className = "ml-5 flex-1 ml-0 pl-3" >
27
- < CardTitle className = "text-2xl font-bold" >
28
- Difficult Level
29
- </ CardTitle >
30
- < CardDescription >
31
- Select one of more difficulty levels that you would like to
32
- practice
33
- </ CardDescription >
34
- </ CardHeader >
35
- </ div >
36
-
37
- < CardContent className = "flex justify-evenly h-full items-center gap-3" >
38
- < Button className = "flex-1 h-[50%] bg-green-200 text-black" >
39
- Easy
40
- </ Button >
41
-
42
- < Button className = "flex-1 h-[50%] bg-yellow-200 text-black" >
43
- Medium
44
- </ Button >
45
-
46
- < Button className = "flex-1 h-[50%] bg-red-200 text-black" > Hard</ Button >
47
- </ CardContent >
48
- </ Card >
24
+ < DifficultyComponent />
49
25
50
26
< TopicsComponent />
51
27
You can’t perform that action at this time.
0 commit comments