Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | import { PropsWithChildren } from 'react';
interface GuestLayoutProps extends PropsWithChildren {
header?: string;
subheader?: string;
}
export default function GuestLayout({ children, header, subheader }: GuestLayoutProps) {
return (
<div className="min-h-screen bg-background text-foreground flex flex-col">
{/* Header */}
<header className="flex items-center justify-between p-6 border-b border-border">
<div className="flex items-center space-x-2">
<div className="w-6 h-6 bg-primary rounded-sm flex items-center justify-center">
<span className="text-primary-foreground text-xs font-bold">L</span>
</div>
<span className="text-foreground font-semibold">Laravel SaaS</span>
</div>
</header>
{/* Main Content */}
<div className="flex-1 flex items-center justify-center px-6 py-12">
<div className="w-full max-w-sm">
{header && (
<div className="text-center mb-8">
<h1 className="text-2xl font-semibold text-foreground mb-2">
{header}
</h1>
{subheader && (
<p className="text-muted-foreground text-sm">
{subheader}
</p>
)}
</div>
)}
<div className="bg-card border border-border rounded-lg p-6 shadow-sm">
{children}
</div>
</div>
</div>
</div>
);
} |