Skip to content

Commit b395c77

Browse files
committed
Update contents of components for Home Page
1 parent c3c1169 commit b395c77

File tree

3 files changed

+42
-0
lines changed

3 files changed

+42
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
"use client";
2+
3+
import { Card, CardHeader, CardTitle, CardContent } from "@/components/ui/card";
4+
5+
export default function HistoryPage() {
6+
return (
7+
<Card className="w-[60%] mr-3">
8+
<CardHeader>
9+
<CardTitle className="text-2xl font-bold">
10+
Recent Sessions
11+
</CardTitle>
12+
</CardHeader>
13+
14+
<CardContent>
15+
{/* TODO Add scrollable area of sessions */}
16+
17+
</CardContent>
18+
</Card>
19+
)
20+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
"use client";
2+
3+
import { Card, CardHeader, CardTitle } from "@/components/ui/card";
4+
5+
export default function QuickActionsPage() {
6+
return (
7+
<Card className="ml-3 w-[40%]">
8+
<CardHeader>
9+
<CardTitle className="text-2xl font-bold">
10+
Quick Actions
11+
</CardTitle>
12+
</CardHeader>
13+
</Card>
14+
)
15+
}

frontend/src/app/home/page.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import HistoryPage from "../components/home/HistoryPage";
2+
import QuickActionsPage from "../components/home/QuickActionsPage";
13
import StatisticPage from "../components/home/StatisticPage";
24
import WelcomePage from "../components/home/WelcomePage";
35

@@ -23,6 +25,11 @@ export default function HomePage() {
2325

2426
<StatisticPage/>
2527

28+
<div className="flex flex-1 m-10">
29+
<HistoryPage/>
30+
<QuickActionsPage/>
31+
</div>
32+
2633

2734
</div>
2835
)

0 commit comments

Comments
 (0)