Skip to content

Commit 7d85ed8

Browse files
committed
Fix styling
1 parent c9f7619 commit 7d85ed8

File tree

4 files changed

+30
-22
lines changed

4 files changed

+30
-22
lines changed

frontend/src/app/collab/page.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ export default function CollabPage() {
99
<SessionHeader />
1010

1111
<div className="flex flex-1 w-full bg-stone-800 ">
12-
1312
<div className="flex-1 p-5">
1413
<QuestionComponent />
1514
</div>

frontend/src/app/components/collab/ChatComponent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default function ChatComponent() {
66
const chatMessages = ["HELLO", "HOW ARE YOU?"];
77

88
return (
9-
<div className="flex flex-col h-full bg-stone-900 p-10">
9+
<div className="flex flex-col h-full bg-stone-900 p-1">
1010
<div className="flex bg-stone-500 h-full mb-5 rounded-lg"></div>
1111

1212
<div className="flex w-full mt-auto gap-2">
Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,28 @@
1+
import { Badge } from "@/components/ui/badge";
2+
13
export default function QuestionComponent() {
2-
return (
3-
<div className="h-full flex flex-col">
4+
const difficultyMapping = {
5+
Difficult: "bg-",
6+
};
47

5-
{/* Question Description */}
6-
<div className="flex-1">
8+
return (
9+
<div className="h-full flex flex-col bg-stone-900">
10+
{/* 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>
717

8-
</div>
18+
{/* Question Description */}
19+
<div className="flex-1"></div>
920

10-
{/* Examples Section */}
11-
<div className="flex-1 bg-stone-900">
21+
{/* Examples Section */}
22+
<div className="flex-1"></div>
1223

24+
{/* Constraints Section */}
25+
<div className="flex-1"></div>
1326
</div>
14-
15-
{/* Constraints Section */}
16-
17-
</div>
1827
);
1928
}

frontend/src/components/ui/badge.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import * as React from "react"
2-
import { Slot } from "@radix-ui/react-slot"
3-
import { cva, type VariantProps } from "class-variance-authority"
1+
import * as React from "react";
2+
import { Slot } from "@radix-ui/react-slot";
3+
import { cva, type VariantProps } from "class-variance-authority";
44

5-
import { cn } from "@/lib/utils"
5+
import { cn } from "@/lib/utils";
66

77
const badgeVariants = cva(
88
"inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",
@@ -22,8 +22,8 @@ const badgeVariants = cva(
2222
defaultVariants: {
2323
variant: "default",
2424
},
25-
}
26-
)
25+
},
26+
);
2727

2828
function Badge({
2929
className,
@@ -32,15 +32,15 @@ function Badge({
3232
...props
3333
}: React.ComponentProps<"span"> &
3434
VariantProps<typeof badgeVariants> & { asChild?: boolean }) {
35-
const Comp = asChild ? Slot : "span"
35+
const Comp = asChild ? Slot : "span";
3636

3737
return (
3838
<Comp
3939
data-slot="badge"
4040
className={cn(badgeVariants({ variant }), className)}
4141
{...props}
4242
/>
43-
)
43+
);
4444
}
4545

46-
export { Badge, badgeVariants }
46+
export { Badge, badgeVariants };

0 commit comments

Comments
 (0)