benroshan commited on
Commit
cbead73
·
1 Parent(s): 9307240

feat: maintenance banner as full-screen overlay

Browse files
Files changed (1) hide show
  1. frontend/src/App.jsx +9 -6
frontend/src/App.jsx CHANGED
@@ -48,13 +48,16 @@ function App() {
48
 
49
  return (
50
  <div className="min-h-screen bg-gray-50 flex flex-col">
51
- {/* Maintenance banner — controlled by src/config.js */}
52
  {MAINTENANCE_MODE && (
53
- <div className="bg-amber-50 border-b border-amber-200 px-4 py-2 flex items-center justify-center gap-2 text-xs text-amber-800">
54
- <svg className="w-3.5 h-3.5 shrink-0 text-amber-500" fill="none" stroke="currentColor" viewBox="0 0 24 24">
55
- <path strokeLinecap="round" strokeLinejoin="round" strokeWidth="2" d="M12 9v2m0 4h.01M10.29 3.86L1.82 18a2 2 0 001.71 3h16.94a2 2 0 001.71-3L13.71 3.86a2 2 0 00-3.42 0z" />
56
- </svg>
57
- <span><strong>Under maintenance</strong> — {MAINTENANCE_MESSAGE}</span>
 
 
 
58
  </div>
59
  )}
60
 
 
48
 
49
  return (
50
  <div className="min-h-screen bg-gray-50 flex flex-col">
51
+ {/* Maintenance overlay — controlled by src/config.js */}
52
  {MAINTENANCE_MODE && (
53
+ <div className="fixed inset-0 z-50 flex flex-col items-center justify-center bg-gray-950/90 backdrop-blur-sm">
54
+ <div className="bg-white rounded-2xl shadow-2xl px-10 py-10 max-w-md w-full mx-4 flex flex-col items-center text-center gap-4">
55
+ <svg className="w-14 h-14 text-amber-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
56
+ <path strokeLinecap="round" strokeLinejoin="round" strokeWidth="1.5" d="M12 9v2m0 4h.01M10.29 3.86L1.82 18a2 2 0 001.71 3h16.94a2 2 0 001.71-3L13.71 3.86a2 2 0 00-3.42 0z" />
57
+ </svg>
58
+ <h2 className="text-2xl font-bold text-gray-900">Under Maintenance</h2>
59
+ <p className="text-gray-500 text-sm leading-relaxed">{MAINTENANCE_MESSAGE}</p>
60
+ </div>
61
  </div>
62
  )}
63