feat: maintenance banner as full-screen overlay
Browse files- 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
|
| 52 |
{MAINTENANCE_MODE && (
|
| 53 |
-
<div className="
|
| 54 |
-
<
|
| 55 |
-
<
|
| 56 |
-
|
| 57 |
-
|
|
|
|
|
|
|
|
|
|
| 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 |
|