Create AIProgramSuggestion.jsx
Browse files
frontend/src/components/admin/AIProgramSuggestion.jsx
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// frontend/src/components/admin/AIProgramSuggestion.jsx
|
| 2 |
+
import React from "react";
|
| 3 |
+
import { Clock, Users, DollarSign, ArrowRight } from "lucide-react";
|
| 4 |
+
|
| 5 |
+
export default function AIProgramSuggestion({ program }) {
|
| 6 |
+
return (
|
| 7 |
+
<div className="bg-white border border-stone-200 rounded-xl p-4 shadow-sm hover:shadow-md transition-shadow">
|
| 8 |
+
<div className="flex gap-4">
|
| 9 |
+
{program.image && (
|
| 10 |
+
<img
|
| 11 |
+
src={program.image}
|
| 12 |
+
alt={program.name}
|
| 13 |
+
className="w-20 h-20 rounded-lg object-cover flex-shrink-0"
|
| 14 |
+
/>
|
| 15 |
+
)}
|
| 16 |
+
<div className="flex-1">
|
| 17 |
+
<h3 className="font-semibold text-stone-900 mb-1">{program.name}</h3>
|
| 18 |
+
<p className="text-sm text-stone-600 mb-3">{program.description}</p>
|
| 19 |
+
<div className="flex flex-wrap gap-3 text-xs text-stone-500 mb-3">
|
| 20 |
+
<div className="flex items-center gap-1">
|
| 21 |
+
<Users className="w-3 h-3" />
|
| 22 |
+
{program.targetAudience}
|
| 23 |
+
</div>
|
| 24 |
+
<div className="flex items-center gap-1">
|
| 25 |
+
<Clock className="w-3 h-3" />
|
| 26 |
+
{program.duration}
|
| 27 |
+
</div>
|
| 28 |
+
<div className="flex items-center gap-1 text-green-600 font-medium">
|
| 29 |
+
<DollarSign className="w-3 h-3" />
|
| 30 |
+
{program.potentialRevenue}
|
| 31 |
+
</div>
|
| 32 |
+
</div>
|
| 33 |
+
<button
|
| 34 |
+
type="button"
|
| 35 |
+
className="inline-flex items-center gap-1 text-sm font-medium text-purple-600 hover:text-purple-700"
|
| 36 |
+
>
|
| 37 |
+
Learn More <ArrowRight className="w-4 h-4" />
|
| 38 |
+
</button>
|
| 39 |
+
</div>
|
| 40 |
+
</div>
|
| 41 |
+
</div>
|
| 42 |
+
);
|
| 43 |
+
}
|
| 44 |
+
|