Skip to content

Commit 08cf416

Browse files
committed
changes
1 parent 6b678dc commit 08cf416

File tree

3 files changed

+25
-9
lines changed

3 files changed

+25
-9
lines changed

app/dashboard/layout.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export default function RootLayout({
1111
}: {
1212
children: React.ReactNode;
1313
}) {
14+
1415
return (
1516
<body>
1617
<main className="flex min-h-screen overflow-hidden md:gap-3 gap-1 md:p-3 p-1 h-full">

app/dashboard/profile/page.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export default function Dashboard() {
7575
<>
7676
<DashboardContent authUser={authUser} />
7777
{leetcodeStats && (
78-
<div className="container mx-auto mt-6">
78+
<div className="container mx-auto bg-neutral-800 rounded-lg p-3 mt-6">
7979
<h2 className="text-xl font-semibold mb-4">Your LeetCode Progress</h2>
8080
<div className="max-w-xl">
8181
<Bar data={chartData} />

components/dashboardComponents/AppSidebar.tsx

+23-8
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
11
"use client";
22

33
import * as React from "react";
4-
import { Moon, Sun, LogOut, User, Settings, BookA, FileQuestion, ChevronRight, ChevronLeft } from 'lucide-react';
4+
import {
5+
Moon,
6+
Sun,
7+
LogOut,
8+
User,
9+
Settings,
10+
BookA,
11+
FileQuestion,
12+
ChevronRight,
13+
ChevronLeft,
14+
} from "lucide-react";
515
import { useTheme } from "next-themes";
616
import { usePathname } from "next/navigation";
717
import Link from "next/link";
@@ -45,9 +55,7 @@ export function AppSidebar() {
4555
)}
4656
>
4757
<div className="p-4 border-b flex items-center justify-between">
48-
{!isCollapsed && (
49-
<h2 className="text-lg font-semibold">Leetcode Journal</h2>
50-
)}
58+
{!isCollapsed && <h2 className="text-lg font-semibold">Dashboard</h2>}
5159
<Button
5260
variant="ghost"
5361
size="icon"
@@ -77,7 +85,9 @@ export function AppSidebar() {
7785
isCollapsed ? "justify-center" : "justify-start"
7886
)}
7987
>
80-
<item.icon className={cn("h-6 w-6", isCollapsed ? "" : "mr-4")} />
88+
<item.icon
89+
className={cn("h-6 w-6", isCollapsed ? "" : "mr-2")}
90+
/>
8191
{!isCollapsed && <span>{item.title}</span>}
8292
</Link>
8393
</li>
@@ -86,9 +96,14 @@ export function AppSidebar() {
8696
</ul>
8797
</nav>
8898
<div className={cn("p-3 border-t")}>
89-
<div className={cn("flex", isCollapsed ? "flex-col space-y-2" : "justify-between")}>
99+
<div
100+
className={cn(
101+
"flex",
102+
isCollapsed ? "flex-col space-y-2" : "justify-between"
103+
)}
104+
>
90105
<Button
91-
className="rounded-full"
106+
className="rounded-full"
92107
size="icon"
93108
onClick={() => setTheme(theme === "dark" ? "light" : "dark")}
94109
>
@@ -104,4 +119,4 @@ export function AppSidebar() {
104119
</div>
105120
</aside>
106121
);
107-
}
122+
}

0 commit comments

Comments
 (0)