feat: initialize monorepo structure with Bun and Turborepo
- Add package.json for the root with workspace configuration and scripts - Create @gruperly/config package with TypeScript configuration - Establish shared package @gruperly/shared with Zod schemas for validation - Implement group, student, and payment schemas using Zod - Set up TypeScript configuration for shared package - Document stack architecture and technical specifications in stack.md - Configure Turborepo with build, dev, lint, and typecheck tasks
This commit is contained in:
44
apps/web/src/components/layout/RootLayout.tsx
Normal file
44
apps/web/src/components/layout/RootLayout.tsx
Normal file
@@ -0,0 +1,44 @@
|
||||
import { Outlet } from '@tanstack/react-router'
|
||||
import { Bell } from 'lucide-react'
|
||||
import { Logo, LogoIcon } from '../brand'
|
||||
import { Avatar, Button } from '../ui'
|
||||
import { Sidebar } from './Sidebar'
|
||||
import { BottomNav } from './BottomNav'
|
||||
|
||||
export function RootLayout() {
|
||||
return (
|
||||
<div className="mx-auto flex min-h-dvh w-full max-w-6xl gap-6 lg:px-6">
|
||||
<Sidebar />
|
||||
|
||||
<div className="flex min-h-dvh w-full flex-col lg:min-w-0">
|
||||
<header className="sticky top-0 z-30 border-b border-border bg-background/90 backdrop-blur">
|
||||
<div className="mx-auto flex h-14 w-full max-w-md items-center justify-between px-4 lg:max-w-none lg:px-0">
|
||||
<a
|
||||
href="/"
|
||||
className="flex items-center gap-2 lg:hidden"
|
||||
aria-label="Gruperly inicio"
|
||||
>
|
||||
<LogoIcon className="size-8" />
|
||||
<Logo className="text-lg tracking-tight" />
|
||||
</a>
|
||||
<div className="ml-auto flex items-center gap-1 lg:ml-0">
|
||||
<Button size="icon" variant="ghost" aria-label="Notificaciones" className="relative">
|
||||
<Bell className="size-5" />
|
||||
<span className="absolute right-1.5 top-1.5 size-2 rounded-full bg-accent" />
|
||||
</Button>
|
||||
<Button size="icon" variant="ghost" aria-label="Perfil">
|
||||
<Avatar name="Gruperly User" />
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main className="mx-auto w-full max-w-md flex-1 px-4 pb-24 pt-4 lg:max-w-none lg:px-0 lg:pb-8 lg:pt-6">
|
||||
<Outlet />
|
||||
</main>
|
||||
|
||||
<BottomNav />
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user