Skip to content

Commit 318b13c

Browse files
authored
Merge pull request #30 from acmutsa/feature/admin-dashboard-layout
Feature/admin dashboard layout
2 parents 0a03ca2 + 5fdf527 commit 318b13c

File tree

5 files changed

+517
-10
lines changed

5 files changed

+517
-10
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,14 @@
1919
],
2020
"dependencies": {
2121
"@libsql/client": "^0.15.15",
22+
"@radix-ui/react-navigation-menu": "^1.2.14",
2223
"@radix-ui/react-progress": "^1.1.7",
2324
"@radix-ui/react-slot": "^1.2.3",
2425
"better-auth": "^1.3.26",
2526
"class-variance-authority": "^0.7.1",
2627
"clsx": "^2.1.1",
2728
"drizzle-orm": "^0.44.6",
28-
"lucide-react": "^0.546.0",
29+
"lucide-react": "^0.548.0",
2930
"next": "15.5.4",
3031
"next-safe-action": "8.0.11",
3132
"react": "19.1.0",

pnpm-lock.yaml

Lines changed: 243 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/app/admin/layout.tsx

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import React from "react";
2+
import AdminNavbar from "@/components/AdminNavbar";
3+
4+
export default function AdminLayout({
5+
children,
6+
}: Readonly<{
7+
children: React.ReactNode;
8+
}>) {
9+
return (
10+
<section className="min-h-screen flex flex-col bg-neutral-50 text-neutral-900 dark:bg-neutral-950 dark:text-neutral-100">
11+
{/* Top nav bar */}
12+
<AdminNavbar />
13+
14+
{/* Page content */}
15+
<main className="flex-1 p-6">
16+
{children}
17+
</main>
18+
19+
{/* Footer */}
20+
</section>
21+
);
22+
}

0 commit comments

Comments
 (0)