-
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
133 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
"use client" | ||
|
||
import * as React from "react" | ||
|
||
import { AppSidebar } from "@/app/blocks/sidebar/app-sidebar" | ||
import { | ||
IconChevronLgDown, | ||
IconCirclePerson, | ||
IconLogout, | ||
IconSearch, | ||
IconSettings, | ||
IconShield | ||
} from "justd-icons" | ||
import { Avatar, Breadcrumbs, Button, Menu, Separator, Sidebar } from "ui" | ||
|
||
export default function Layout({ children }: { children: React.ReactNode }) { | ||
return ( | ||
<Sidebar.Provider> | ||
<AppSidebar /> | ||
<Sidebar.Inset> | ||
<header className="sticky justify-between sm:justify-start top-0 h-[3.57rem] px-4 flex items-center gap-x-2"> | ||
<span className="flex items-center gap-x-4"> | ||
<Sidebar.Trigger className="-mx-2" /> | ||
<Separator className="h-6 md:block hidden" orientation="vertical" /> | ||
<Breadcrumbs className="md:flex hidden"> | ||
<Breadcrumbs.Item href="/blocks/sidebar/sidebar-01">Dashboard</Breadcrumbs.Item> | ||
|
||
<Breadcrumbs.Item>Newsletter</Breadcrumbs.Item> | ||
</Breadcrumbs> | ||
</span> | ||
|
||
<div className="flex sm:hidden items-center gap-x-2"> | ||
<Button appearance="plain" aria-label="Search..." size="square-petite"> | ||
<IconSearch /> | ||
</Button> | ||
<Menu> | ||
<Menu.Trigger aria-label="Profile" className="flex items-center gap-x-2 group"> | ||
<Avatar size="small" shape="circle" src="/images/sidebar/profile-slash.jpg" /> | ||
<IconChevronLgDown className="size-4 group-pressed:rotate-180 transition-transform" /> | ||
</Menu.Trigger> | ||
<Menu.Content className="min-w-[--trigger-width]"> | ||
<Menu.Item href="#"> | ||
<IconCirclePerson /> | ||
Profile | ||
</Menu.Item> | ||
<Menu.Item href="#"> | ||
<IconSettings /> | ||
Settings | ||
</Menu.Item> | ||
<Menu.Item href="#"> | ||
<IconShield /> | ||
Security | ||
</Menu.Item> | ||
<Menu.Item href="#"> | ||
<IconLogout /> | ||
Log out | ||
</Menu.Item> | ||
</Menu.Content> | ||
</Menu> | ||
</div> | ||
</header> | ||
<div className="p-4 lg:p-6">{children}</div> | ||
</Sidebar.Inset> | ||
</Sidebar.Provider> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import React from "react" | ||
|
||
import type { Metadata } from "next" | ||
import { Heading } from "ui" | ||
|
||
export const metadata: Metadata = { | ||
title: "Sidebar With Modal" | ||
} | ||
|
||
export default function Page() { | ||
return <Heading>Messages</Heading> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters