build fix
This commit is contained in:
parent
659808985b
commit
656b74f9d5
@ -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];
|
||||
|
||||
|
||||
@ -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'
|
||||
|
||||
@ -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}
|
||||
>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user