Upload integral_react_dashboard.jsx
Browse files- integral_react_dashboard.jsx +46 -0
integral_react_dashboard.jsx
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import React from "react";
|
| 2 |
+
import { Card, CardContent } from "@/components/ui/card";
|
| 3 |
+
import { Button } from "@/components/ui/button";
|
| 4 |
+
import { motion } from "framer-motion";
|
| 5 |
+
|
| 6 |
+
export default function Dashboard() {
|
| 7 |
+
return (
|
| 8 |
+
<div className="p-6 grid grid-cols-1 md:grid-cols-2 gap-6">
|
| 9 |
+
<motion.h1
|
| 10 |
+
initial={{ opacity: 0, y: -20 }}
|
| 11 |
+
animate={{ opacity: 1, y: 0 }}
|
| 12 |
+
className="text-3xl font-bold col-span-full"
|
| 13 |
+
>
|
| 14 |
+
Integral Infrastructure Dashboard
|
| 15 |
+
</motion.h1>
|
| 16 |
+
|
| 17 |
+
<Card className="rounded-2xl shadow-md">
|
| 18 |
+
<CardContent className="p-4">
|
| 19 |
+
<h2 className="text-xl font-semibold mb-2">Infrastructure Status</h2>
|
| 20 |
+
<p>Live road condition, pothole detection, and alerts.</p>
|
| 21 |
+
</CardContent>
|
| 22 |
+
</Card>
|
| 23 |
+
|
| 24 |
+
<Card className="rounded-2xl shadow-md">
|
| 25 |
+
<CardContent className="p-4">
|
| 26 |
+
<h2 className="text-xl font-semibold mb-2">AI Verification</h2>
|
| 27 |
+
<p>Model outputs for pothole validation and cost optimization.</p>
|
| 28 |
+
</CardContent>
|
| 29 |
+
</Card>
|
| 30 |
+
|
| 31 |
+
<Card className="rounded-2xl shadow-md">
|
| 32 |
+
<CardContent className="p-4">
|
| 33 |
+
<h2 className="text-xl font-semibold mb-2">Event Stream</h2>
|
| 34 |
+
<p>Live subscriptions showing infrastructureFaults and updates.</p>
|
| 35 |
+
</CardContent>
|
| 36 |
+
</Card>
|
| 37 |
+
|
| 38 |
+
<Card className="rounded-2xl shadow-md">
|
| 39 |
+
<CardContent className="p-4">
|
| 40 |
+
<h2 className="text-xl font-semibold mb-2">Trigger Action</h2>
|
| 41 |
+
<Button>Simulate Repair</Button>
|
| 42 |
+
</CardContent>
|
| 43 |
+
</Card>
|
| 44 |
+
</div>
|
| 45 |
+
);
|
| 46 |
+
}
|