build fix

This commit is contained in:
alma 2025-05-05 12:49:04 +02:00
parent 659808985b
commit 656b74f9d5
3 changed files with 15 additions and 13 deletions

View File

@ -10,8 +10,8 @@ const menuItems = {
missions: "https://example.com/missions" missions: "https://example.com/missions"
} }
export default async function SectionPage({ params }: { params: { section: string } }) { export default async function SectionPage({ params }: { params: Promise<{ section: string }> }) {
const section = params?.section ? String(params.section) : ''; const { section } = await params;
const iframeUrl = menuItems[section as keyof typeof menuItems]; const iframeUrl = menuItems[section as keyof typeof menuItems];

View File

@ -50,7 +50,7 @@ export default function SignIn() {
<div <div
className="min-h-screen flex items-center justify-center" className="min-h-screen flex items-center justify-center"
style={{ style={{
backgroundImage: "url('/signin.jpg')", backgroundImage: "url('/SignIn.jpg')",
backgroundSize: 'cover', backgroundSize: 'cover',
backgroundPosition: 'center', backgroundPosition: 'center',
backgroundRepeat: 'no-repeat' backgroundRepeat: 'no-repeat'

View File

@ -19,17 +19,19 @@ export function LayoutWrapper({ children, isSignInPage, isAuthenticated }: Layou
<AuthCheck> <AuthCheck>
{!isSignInPage && isAuthenticated && <MainNav />} {!isSignInPage && isAuthenticated && <MainNav />}
<div <div
className={isSignInPage ? "" : "min-h-screen"} className={isSignInPage ? "min-h-screen" : "min-h-screen"}
style={ style={
!isSignInPage ? { isSignInPage
backgroundImage: `url('${currentBackground}')`, ? {} // No background style for signin page - let the page component handle it
backgroundSize: 'cover', : {
backgroundPosition: 'center', backgroundImage: `url('${currentBackground}')`,
backgroundRepeat: 'no-repeat', backgroundSize: 'cover',
backgroundAttachment: 'fixed', backgroundPosition: 'center',
cursor: 'pointer', backgroundRepeat: 'no-repeat',
transition: 'background-image 0.5s ease-in-out' backgroundAttachment: 'fixed',
} : {} cursor: 'pointer',
transition: 'background-image 0.5s ease-in-out'
}
} }
onClick={!isSignInPage ? changeBackground : undefined} onClick={!isSignInPage ? changeBackground : undefined}
> >