Skip to content

Commit a2c295d

Browse files
committed
Clean up styling by using flex
1 parent 068ec80 commit a2c295d

File tree

5 files changed

+36
-25
lines changed

5 files changed

+36
-25
lines changed

frontend/src/app/collab/page.tsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,16 @@ export default function CollabPage() {
1111
<div className="flex flex-1 w-full bg-stone-800 ">
1212

1313
<div className="flex-1">
14-
<QuestionComponent/>
14+
<QuestionComponent />
1515
</div>
16-
17-
<div className="flex-[2] h-full">
18-
<CodingComponent/>
16+
17+
<div className="flex-[2]">
18+
<CodingComponent />
1919
</div>
2020

2121
<div className="flex-1 p-5">
22-
<ChatComponent/>
22+
<ChatComponent />
2323
</div>
24-
2524
</div>
2625
</main>
2726
);

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

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,18 @@ import { Input } from "@/components/ui/input";
33
import { ChevronRightIcon } from "lucide-react";
44

55
export default function ChatComponent() {
6+
const chatMessages = ["HELLO", "HOW ARE YOU?"];
67

7-
const chatMessages = ["HELLO", "HOW ARE YOU?"]
8+
return (
9+
<div className="flex flex-col h-full bg-stone-900 p-10">
10+
<div className="flex bg-stone-500 h-full mb-5 rounded-lg"></div>
811

9-
return (
10-
<div className="flex flex-col h-full bg-stone-900 p-10">
11-
12-
<div className="flex bg-stone-500 h-full mb-5 rounded-lg">
13-
14-
</div>
15-
16-
<div className="flex w-full mt-auto gap-2">
17-
<Input className="bg-white" />
18-
<Button variant="secondary" size="icon" className="size-9">
19-
<ChevronRightIcon/>
20-
</Button>
21-
</div>
22-
</div>
23-
);
12+
<div className="flex w-full mt-auto gap-2">
13+
<Input className="bg-white" />
14+
<Button variant="secondary" size="icon" className="size-9">
15+
<ChevronRightIcon />
16+
</Button>
17+
</div>
18+
</div>
19+
);
2420
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export default function CodingComponent() {
2323
}
2424

2525
return (
26-
<div className="h-full mt-10">
26+
<div className="mt-5">
2727
<div className="mb-4">
2828
<DropdownMenu>
2929
<DropdownMenuTrigger asChild className="flex justify-between">
Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
11
export default function QuestionComponent() {
2-
return <div>Helo</div>;
2+
return (
3+
<div>
4+
5+
{/* Question Description */}
6+
<div>
7+
8+
</div>
9+
10+
{/* Examples Section */}
11+
<div className="bg-stone-900">
12+
13+
</div>
14+
15+
{/* Constraints Section */}
16+
17+
</div>
18+
);
319
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export default function SessionHeader() {
22
return (
3-
<header className="bg-stone-800 w-full h-[5%] text-white border-b-2 border-stone-700">
3+
<header className="bg-stone-800 w-full h-15 text-white border-b-2 border-stone-700">
44
Session Header
55
</header>
66
);

0 commit comments

Comments
 (0)