Skip to content

Commit 7e68252

Browse files
committed
Add questions page
1 parent 7d85ed8 commit 7e68252

File tree

1 file changed

+20
-15
lines changed

1 file changed

+20
-15
lines changed
Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,33 @@
11
import { Badge } from "@/components/ui/badge";
2+
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
23

34
export default function QuestionComponent() {
45
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",
69
};
710

811
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">
1013
{/* 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>
1720

18-
{/* Question Description */}
19-
<div className="flex-1"></div>
21+
<CardContent>
22+
{/* Question Description */}
23+
<div className="flex-1"></div>
2024

21-
{/* Examples Section */}
22-
<div className="flex-1"></div>
25+
{/* Examples Section */}
26+
<div className="flex-1"></div>
2327

24-
{/* Constraints Section */}
25-
<div className="flex-1"></div>
26-
</div>
28+
{/* Constraints Section */}
29+
<div className="flex-1"></div>
30+
</CardContent>
31+
</Card>
2732
);
2833
}

0 commit comments

Comments
 (0)