|
1 | 1 | import { Badge } from "@/components/ui/badge";
|
| 2 | +import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"; |
2 | 3 |
|
3 | 4 | export default function QuestionComponent() {
|
4 | 5 | const difficultyMapping = {
|
5 |
| - Difficult: "bg-", |
| 6 | + Hard: "bg-red-900 text-black", |
| 7 | + Medium: "bg-yellow-900 text-black", |
| 8 | + Easy: "bg-green-900 text-black", |
6 | 9 | };
|
7 | 10 |
|
8 | 11 | return (
|
9 |
| - <div className="h-full flex flex-col bg-stone-900"> |
| 12 | + <Card className="h-full flex flex-col bg-stone-900 border-black"> |
10 | 13 | {/* Criteria */}
|
11 |
| - <div className="flex-1 pt-5 px-3"> |
12 |
| - <Badge variant="destructive">Difficult</Badge> |
13 |
| - <Badge variant="destructive">Difficult</Badge> |
14 |
| - <Badge variant="destructive">Difficult</Badge> |
15 |
| - <Badge variant="destructive">Difficult</Badge> |
16 |
| - </div> |
| 14 | + <CardHeader> |
| 15 | + <CardTitle className="text-white text-4xl">Two Sum</CardTitle> |
| 16 | + <div className="flex flex-1 pt-5 items-start gap-2"> |
| 17 | + <Badge className="bg-red-900 text-black">Difficult</Badge> |
| 18 | + </div> |
| 19 | + </CardHeader> |
17 | 20 |
|
18 |
| - {/* Question Description */} |
19 |
| - <div className="flex-1"></div> |
| 21 | + <CardContent> |
| 22 | + {/* Question Description */} |
| 23 | + <div className="flex-1"></div> |
20 | 24 |
|
21 |
| - {/* Examples Section */} |
22 |
| - <div className="flex-1"></div> |
| 25 | + {/* Examples Section */} |
| 26 | + <div className="flex-1"></div> |
23 | 27 |
|
24 |
| - {/* Constraints Section */} |
25 |
| - <div className="flex-1"></div> |
26 |
| - </div> |
| 28 | + {/* Constraints Section */} |
| 29 | + <div className="flex-1"></div> |
| 30 | + </CardContent> |
| 31 | + </Card> |
27 | 32 | );
|
28 | 33 | }
|
0 commit comments