Allow hiding footer via Layout prop and apply to home page
cgen-93405e41ce9e42288fc385b774f7b7df
This commit is contained in:
parent
cef8ccb5b5
commit
00c1722536
1 changed files with 4 additions and 1 deletions
|
|
@ -32,9 +32,10 @@ import {
|
||||||
|
|
||||||
interface LayoutProps {
|
interface LayoutProps {
|
||||||
children: React.ReactNode;
|
children: React.ReactNode;
|
||||||
|
hideFooter?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export default function CodeLayout({ children }: LayoutProps) {
|
export default function CodeLayout({ children, hideFooter }: LayoutProps) {
|
||||||
const location = useLocation();
|
const location = useLocation();
|
||||||
const { user, profile, roles, signOut, loading, profileComplete } = useAuth();
|
const { user, profile, roles, signOut, loading, profileComplete } = useAuth();
|
||||||
const isOwner = Array.isArray(roles) && roles.includes("owner");
|
const isOwner = Array.isArray(roles) && roles.includes("owner");
|
||||||
|
|
@ -371,6 +372,7 @@ export default function CodeLayout({ children }: LayoutProps) {
|
||||||
|
|
||||||
<main className="flex-1 w-full overflow-x-hidden">{children}</main>
|
<main className="flex-1 w-full overflow-x-hidden">{children}</main>
|
||||||
|
|
||||||
|
{!hideFooter && (
|
||||||
<footer className="border-t border-border/40 bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60 animate-slide-up">
|
<footer className="border-t border-border/40 bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60 animate-slide-up">
|
||||||
<div className="container mx-auto px-4 py-12">
|
<div className="container mx-auto px-4 py-12">
|
||||||
<div className="grid grid-cols-1 md:grid-cols-4 gap-8">
|
<div className="grid grid-cols-1 md:grid-cols-4 gap-8">
|
||||||
|
|
@ -591,6 +593,7 @@ export default function CodeLayout({ children }: LayoutProps) {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
)}
|
||||||
|
|
||||||
{/* Supabase Configuration Status */}
|
{/* Supabase Configuration Status */}
|
||||||
<SupabaseStatus />
|
<SupabaseStatus />
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue