mirror of
https://github.com/andwati/telecom-platform.git
synced 2026-11-23 12:28:48 +00:00
feat: Add sidebar navigation and update dashboard layout with branding
- Add Sidebar component import and render in root layout - Update layout structure: replace flex-col with flex, add sidebar and main content areas - Update metadata title from "Create Next App" to "Telecom Admin Dashboard" - Update metadata description to "Sovereign Telecom-as-a-Service Platform Admin Dashboard" - Format Inter font configuration for consistency - Add overflow-auto to main content area for scrollable content
This commit is contained in:
@@ -2,8 +2,9 @@ import type { Metadata } from "next";
|
|||||||
import { Geist, Geist_Mono, Inter } from "next/font/google";
|
import { Geist, Geist_Mono, Inter } from "next/font/google";
|
||||||
import "./globals.css";
|
import "./globals.css";
|
||||||
import { cn } from "@/lib/utils";
|
import { cn } from "@/lib/utils";
|
||||||
|
import { Sidebar } from "@/components/sidebar";
|
||||||
|
|
||||||
const inter = Inter({subsets:['latin'],variable:'--font-sans'});
|
const inter = Inter({ subsets: ["latin"], variable: "--font-sans" });
|
||||||
|
|
||||||
const geistSans = Geist({
|
const geistSans = Geist({
|
||||||
variable: "--font-geist-sans",
|
variable: "--font-geist-sans",
|
||||||
@@ -16,8 +17,8 @@ const geistMono = Geist_Mono({
|
|||||||
});
|
});
|
||||||
|
|
||||||
export const metadata: Metadata = {
|
export const metadata: Metadata = {
|
||||||
title: "Create Next App",
|
title: "Telecom Admin Dashboard",
|
||||||
description: "Generated by create next app",
|
description: "Sovereign Telecom-as-a-Service Platform Admin Dashboard",
|
||||||
};
|
};
|
||||||
|
|
||||||
export default function RootLayout({
|
export default function RootLayout({
|
||||||
@@ -30,7 +31,10 @@ export default function RootLayout({
|
|||||||
lang="en"
|
lang="en"
|
||||||
className={cn("h-full", "antialiased", geistSans.variable, geistMono.variable, "font-sans", inter.variable)}
|
className={cn("h-full", "antialiased", geistSans.variable, geistMono.variable, "font-sans", inter.variable)}
|
||||||
>
|
>
|
||||||
<body className="min-h-full flex flex-col">{children}</body>
|
<body className="min-h-full flex">
|
||||||
|
<Sidebar />
|
||||||
|
<main className="flex-1 overflow-auto">{children}</main>
|
||||||
|
</body>
|
||||||
</html>
|
</html>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user