From 8e256df30d0208ad80356d8bfb8f3f372f3c9abe Mon Sep 17 00:00:00 2001 From: alma Date: Sun, 4 May 2025 23:43:43 +0200 Subject: [PATCH] missions --- app/missions/layout.tsx | 41 ++++++++---------- app/missions/page.tsx | 96 ++++++++++++++++++----------------------- 2 files changed, 60 insertions(+), 77 deletions(-) diff --git a/app/missions/layout.tsx b/app/missions/layout.tsx index 9e208130..1c52723d 100644 --- a/app/missions/layout.tsx +++ b/app/missions/layout.tsx @@ -15,40 +15,33 @@ export default function MissionsLayout({ const pathname = usePathname(); return ( -
+
{/* Sidebar */} -
-
-

- - Missions -

-
- -
+
+ +
- +
+ Mes Missions +
- +
+ Nouvelle Mission +
{/* Main content */} -
+
{children}
diff --git a/app/missions/page.tsx b/app/missions/page.tsx index c810823d..601770a9 100644 --- a/app/missions/page.tsx +++ b/app/missions/page.tsx @@ -5,8 +5,6 @@ import { Plus, Search } from "lucide-react"; import { Button } from "@/components/ui/button"; import { Input } from "@/components/ui/input"; import Link from "next/link"; -import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "@/components/ui/card"; -import { Badge } from "@/components/ui/badge"; // Mock mission data until we implement the database const mockMissions = [ @@ -49,74 +47,66 @@ export default function MissionsPage() { ); return ( -
-
-
-

Mes Missions

-

Gérez vos missions et opportunités de bénévolat

-
- -
-
- +
+
+

Gérez vos missions et opportunités de bénévolat

+
+
+ setSearchTerm(e.target.value)} />
-
- {filteredMissions.length > 0 ? ( -
- {filteredMissions.map(mission => ( - - -
- {mission.category} - {mission.duration} -
- {mission.title} - - Location: {mission.location} - -
- -
- {mission.skills.map(skill => ( - - {skill} - - ))} -
-
- +
+ {filteredMissions.map(mission => ( +
+
+
+ + {mission.category} + + + {mission.duration} + +
+ +

{mission.title}

+

Location: {mission.location}

+ +
+ {mission.skills.map(skill => ( + + {skill} + + ))} +
+ +
- Créée le {new Date(mission.createdAt).toLocaleDateString('fr-FR')} + Créée le {mission.createdAt} - + + Voir détails + - - - ))} -
- ) : ( -
-

Aucune mission trouvée

-

- Utilisez le bouton "Nouvelle Mission" pour créer votre première mission. -

-
- )} +
+
+
+ ))} +
); } \ No newline at end of file