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"
}
export default async function SectionPage({ params }: { params: { section: string } }) {
const section = params?.section ? String(params.section) : '';
export default async function SectionPage({ params }: { params: Promise<{ section: string }> }) {
const { section } = await params;
const iframeUrl = menuItems[section as keyof typeof menuItems];

View File

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

View File

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