mirror of
https://github.com/lukevella/rallly.git
synced 2025-07-12 05:57:26 +02:00
✨ Add instance settings and option to disable user registration (#1745)
This commit is contained in:
parent
9e1f3c616e
commit
3c2e008579
31 changed files with 552 additions and 153 deletions
31
apps/web/src/components/full-width-layout.tsx
Normal file
31
apps/web/src/components/full-width-layout.tsx
Normal file
|
@ -0,0 +1,31 @@
|
|||
export function FullWidthLayout({ children }: { children: React.ReactNode }) {
|
||||
return <div>{children}</div>;
|
||||
}
|
||||
|
||||
export function FullWidthLayoutHeader({
|
||||
children,
|
||||
}: { children: React.ReactNode }) {
|
||||
return (
|
||||
<header className="py-4 rounded-t-lg bg-background/90 backdrop-blur-sm sticky top-0 z-10 px-6 border-b">
|
||||
{children}
|
||||
</header>
|
||||
);
|
||||
}
|
||||
|
||||
export function FullWidthLayoutContent({
|
||||
children,
|
||||
}: { children: React.ReactNode }) {
|
||||
return <main className="p-6">{children}</main>;
|
||||
}
|
||||
|
||||
export function FullWidthLayoutTitle({
|
||||
children,
|
||||
icon,
|
||||
}: { children: React.ReactNode; icon?: React.ReactNode }) {
|
||||
return (
|
||||
<div className="flex items-center gap-2">
|
||||
{icon}
|
||||
<h1 className="text-xl font-semibold">{children}</h1>
|
||||
</div>
|
||||
);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue