@@ -55,6 +55,7 @@ export default function HomePage() {
5555 const { user, loading } = useAuth ( ) ;
5656 const router = useRouter ( ) ;
5757 const [ hallOfFameOpen , setHallOfFameOpen ] = useState ( false ) ;
58+ const [ maintenanceVisible , setMaintenanceVisible ] = useState ( true ) ;
5859
5960 const docsUrl = ( process . env . NEXT_PUBLIC_API_URL || "https://param20h-pdf-assit-rag.hf.space" ) + "/docs" ;
6061
@@ -282,6 +283,28 @@ export default function HomePage() {
282283
283284 { /* Floating open-source badge */ }
284285 < OpenSourceBadge onOpenHallOfFame = { ( ) => setHallOfFameOpen ( true ) } />
286+
287+ { /* Maintenance Pop-up Banner */ }
288+ { maintenanceVisible && (
289+ < div className = "fixed bottom-6 right-6 z-50 max-w-sm p-4 rounded-xl border border-amber-500/30 bg-background/95 backdrop-blur-md shadow-2xl shadow-amber-500/5 flex flex-col gap-2.5 animate-fade-in-up" >
290+ < div className = "flex items-start justify-between gap-4" >
291+ < div className = "flex items-center gap-2" >
292+ < span className = "w-2.5 h-2.5 rounded-full bg-amber-500 animate-pulse" />
293+ < h4 className = "font-semibold text-sm text-foreground" > System Maintenance</ h4 >
294+ </ div >
295+ < button
296+ onClick = { ( ) => setMaintenanceVisible ( false ) }
297+ className = "text-muted-foreground hover:text-foreground text-xs p-1"
298+ aria-label = "Dismiss maintenance alert"
299+ >
300+ ✕
301+ </ button >
302+ </ div >
303+ < p className = "text-xs text-muted-foreground leading-relaxed" >
304+ We are currently running database updates. Some features may be temporarily offline, but the app will be fully live soon!
305+ </ p >
306+ </ div >
307+ ) }
285308 </ div >
286309 ) ;
287310}
0 commit comments