Spaces:
Configuration error
Configuration error
Create component/ActivityPack.jsx
Browse files- component/ActivityPack.jsx +39 -0
component/ActivityPack.jsx
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
export default function ActivityPack({ data }) {
|
| 2 |
+
if (!data) return null;
|
| 3 |
+
return (
|
| 4 |
+
<div className="card mt-4">
|
| 5 |
+
<h3 className="text-lg font-semibold">{data.activity_name}</h3>
|
| 6 |
+
<p className="text-sm text-slate-600">{data.objective}</p>
|
| 7 |
+
|
| 8 |
+
<details className="mt-3">
|
| 9 |
+
<summary className="font-medium">Scenario & Characters</summary>
|
| 10 |
+
<p className="mt-2 text-sm">{data.scenario}</p>
|
| 11 |
+
{data.character_sketches?.map((c,i)=>(
|
| 12 |
+
<div key={i} className="mt-2">
|
| 13 |
+
<div className="font-semibold">{c.role}</div>
|
| 14 |
+
<div className="text-sm text-slate-600">{c.description}</div>
|
| 15 |
+
</div>
|
| 16 |
+
))}
|
| 17 |
+
</details>
|
| 18 |
+
|
| 19 |
+
<details className="mt-3">
|
| 20 |
+
<summary className="font-medium">Trainer Notes (Run-sheet)</summary>
|
| 21 |
+
<ol className="mt-2 list-decimal pl-5">
|
| 22 |
+
{data.trainer_notes?.map((n,i)=>(<li key={i} className="text-sm">{n}</li>))}
|
| 23 |
+
</ol>
|
| 24 |
+
</details>
|
| 25 |
+
|
| 26 |
+
<details className="mt-3">
|
| 27 |
+
<summary className="font-medium">Debrief Questions</summary>
|
| 28 |
+
<ul className="mt-2 list-disc pl-5">
|
| 29 |
+
{data.debrief_questions?.map((q,i)=>(<li key={i} className="text-sm">{q}</li>))}
|
| 30 |
+
</ul>
|
| 31 |
+
</details>
|
| 32 |
+
|
| 33 |
+
<div className="mt-4 flex gap-2">
|
| 34 |
+
<button className="flex-1 border p-2 rounded">Export PDF</button>
|
| 35 |
+
<button className="flex-1 border p-2 rounded">Copy Text</button>
|
| 36 |
+
</div>
|
| 37 |
+
</div>
|
| 38 |
+
);
|
| 39 |
+
}
|