feat: implement responsive PortalShell layout with sidebar navigation and user profile management

This commit is contained in:
Poyraz Avsever
2026-06-08 14:57:02 +03:00
parent 6ef5597744
commit 60f40773cb
+21 -2
View File
@@ -73,7 +73,7 @@ export function PortalShell({ children, user, progress }: PortalShellProps) {
) : null} ) : null}
<div className="flex flex-1 flex-col min-w-0"> <div className="flex flex-1 flex-col min-w-0">
<header className="sticky top-0 z-30 flex h-14 items-center justify-between border-b border-border bg-background/95 px-4 backdrop-blur"> <header className="sticky top-0 z-30 flex h-14 items-center justify-between border-b border-border bg-background/95 px-4 backdrop-blur lg:hidden">
<Link href="/portal" className="flex items-center gap-2 font-semibold"> <Link href="/portal" className="flex items-center gap-2 font-semibold">
<Image <Image
src="/logo/LogoWithBg.png" src="/logo/LogoWithBg.png"
@@ -120,7 +120,26 @@ function AppSidebar({
variant="bordered" variant="bordered"
className="flex h-dvh max-h-dvh flex-col overflow-hidden rounded-none border-0" className="flex h-dvh max-h-dvh flex-col overflow-hidden rounded-none border-0"
> >
<SidebarContent className="tiny-scrollbar min-h-0 flex-1 overflow-y-auto px-6 py-6 mt-4"> <SidebarHeader className="shrink-0 border-b-0 px-6 py-6">
<SidebarBranding
title="Cognis"
subtitle="Freelancer OS"
logo={
<Image
src="/logo/LogoWithBg.png"
alt="Cognis"
width={36}
height={36}
className="h-9 w-9 rounded-sm object-cover"
priority
/>
}
/>
</SidebarHeader>
<SidebarSeparator className="mx-0 my-0 w-full" />
<SidebarContent className="tiny-scrollbar min-h-0 flex-1 overflow-y-auto px-6 py-6">
{portalSidebarData.map((group, groupIndex) => ( {portalSidebarData.map((group, groupIndex) => (
<div key={group.title}> <div key={group.title}>
<SidebarSection title={group.title} defaultOpen className="mb-0"> <SidebarSection title={group.title} defaultOpen className="mb-0">