Nav Bar correction

This commit is contained in:
Alma 2025-04-08 18:24:36 +02:00
parent af23cc7c10
commit 9822ae1a92
2 changed files with 38 additions and 24 deletions

View File

@ -2,12 +2,13 @@
export function FlowFrame() { export function FlowFrame() {
return ( return (
<div className="w-full h-[calc(100vh-8rem)]"> <div className="h-full w-full">
<iframe <iframe
src="https://agilite.slm-lab.net/oidc/login" src="https://lab.slm-lab.net/flow"
className="w-full h-full border-none" className="w-full h-full border-0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allow="fullscreen"
allowFullScreen title="Flow Dashboard"
style={{ display: 'block' }}
/> />
</div> </div>
); );

View File

@ -12,28 +12,41 @@ interface LayoutWrapperProps {
isAuthenticated: boolean; isAuthenticated: boolean;
} }
export function LayoutWrapper({ children, isSignInPage, isAuthenticated }: LayoutWrapperProps) { export function LayoutWrapper({
children,
isSignInPage,
isAuthenticated,
}: LayoutWrapperProps) {
const { currentBackground, changeBackground } = useBackgroundImage(); const { currentBackground, changeBackground } = useBackgroundImage();
if (isSignInPage) {
return <>{children}</>;
}
return ( return (
<AuthCheck> <AuthCheck>
{!isSignInPage && isAuthenticated && <MainNav />} <div className="min-h-screen bg-black">
<div <nav className="h-20 bg-black/20 px-4">
className={isSignInPage ? "" : "min-h-screen"} {!isSignInPage && isAuthenticated && <MainNav />}
style={ </nav>
!isSignInPage ? { <main className="h-[calc(100vh-5rem)]">
backgroundImage: `url('${currentBackground}')`, <div
backgroundSize: 'cover', style={
backgroundPosition: 'center', {
backgroundRepeat: 'no-repeat', backgroundImage: `url('${currentBackground}')`,
backgroundAttachment: 'fixed', backgroundSize: 'cover',
cursor: 'pointer', backgroundPosition: 'center',
transition: 'background-image 0.5s ease-in-out' backgroundRepeat: 'no-repeat',
} : {} backgroundAttachment: 'fixed',
} cursor: 'pointer',
onClick={!isSignInPage ? changeBackground : undefined} transition: 'background-image 0.5s ease-in-out'
> }
<main>{children}</main> }
onClick={!isSignInPage ? changeBackground : undefined}
>
{children}
</div>
</main>
</div> </div>
{!isSignInPage && isAuthenticated && <Footer />} {!isSignInPage && isAuthenticated && <Footer />}
<Toaster /> <Toaster />