Add dynamic breadcrumb navigation and update kanzlei routes under /demo
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
export default function Home() {
|
||||
return (
|
||||
<div>
|
||||
Bilanzbuchhalter
|
||||
</div>
|
||||
);
|
||||
}
|
||||
7
internal_frontend/app/demo/kanzlei/rechtsanwalt/page.tsx
Normal file
7
internal_frontend/app/demo/kanzlei/rechtsanwalt/page.tsx
Normal file
@@ -0,0 +1,7 @@
|
||||
export default function Home() {
|
||||
return (
|
||||
<div>
|
||||
Rechtsanwalt
|
||||
</div>
|
||||
);
|
||||
}
|
||||
7
internal_frontend/app/demo/kanzlei/steuer/page.tsx
Normal file
7
internal_frontend/app/demo/kanzlei/steuer/page.tsx
Normal file
@@ -0,0 +1,7 @@
|
||||
export default function Home() {
|
||||
return (
|
||||
<div>
|
||||
Steuer
|
||||
</div>
|
||||
);
|
||||
}
|
||||
10
internal_frontend/app/demo/settings/page.tsx
Normal file
10
internal_frontend/app/demo/settings/page.tsx
Normal file
@@ -0,0 +1,10 @@
|
||||
import {SidebarGroupLabel} from "@/components/ui/sidebar";
|
||||
|
||||
export default function Home() {
|
||||
return (
|
||||
<div>
|
||||
<SidebarGroupLabel>Documents</SidebarGroupLabel>
|
||||
Settings
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -1,9 +1,11 @@
|
||||
import type {Metadata} from "next";
|
||||
import "./globals.css";
|
||||
import {ThemeProvider} from "@/components/theme-provider";
|
||||
import {SidebarProvider, SidebarTrigger} from "@/components/ui/sidebar"
|
||||
import {SidebarInset, SidebarProvider, SidebarTrigger} from "@/components/ui/sidebar"
|
||||
import {AppSidebar} from "@/components/app-sidebar"
|
||||
import React from "react";
|
||||
import {Separator} from "@/components/ui/separator";
|
||||
import {DynamicBreadcrumb} from "@/components/dynamic-breadcrumb";
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Internal | Rhein Software",
|
||||
@@ -16,7 +18,6 @@ export default function RootLayout({
|
||||
children: React.ReactNode;
|
||||
}>) {
|
||||
return (
|
||||
|
||||
<html lang="de" suppressHydrationWarning>
|
||||
<body>
|
||||
<ThemeProvider
|
||||
@@ -25,10 +26,29 @@ export default function RootLayout({
|
||||
enableSystem
|
||||
disableTransitionOnChange
|
||||
>
|
||||
<SidebarProvider>
|
||||
<SidebarProvider
|
||||
style={
|
||||
{
|
||||
"--sidebar-width": "calc(var(--spacing) * 72)",
|
||||
"--header-height": "calc(var(--spacing) * 12)",
|
||||
} as React.CSSProperties
|
||||
}
|
||||
>
|
||||
<AppSidebar/>
|
||||
<main>
|
||||
<SidebarTrigger/>
|
||||
<SidebarInset>
|
||||
<header
|
||||
className="flex h-16 shrink-0 items-center gap-2 transition-[width,height] ease-linear group-has-data-[collapsible=icon]/sidebar-wrapper:h-12">
|
||||
<div className="flex items-center gap-2 px-4">
|
||||
<SidebarTrigger className="-ml-1"/>
|
||||
<Separator
|
||||
orientation="vertical"
|
||||
className="mr-2 data-[orientation=vertical]:h-4"
|
||||
/>
|
||||
<DynamicBreadcrumb/>
|
||||
</div>
|
||||
</header>
|
||||
</SidebarInset>
|
||||
{children}
|
||||
</main>
|
||||
</SidebarProvider>
|
||||
@@ -36,4 +56,4 @@ export default function RootLayout({
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user