From 8dcc2d8ba17f6117f76a9f19226031736943ab91 Mon Sep 17 00:00:00 2001 From: alma Date: Sun, 4 May 2025 23:58:15 +0200 Subject: [PATCH] missions --- app/missions/layout.tsx | 17 +++++--- app/missions/page.tsx | 93 ++++++++++++++++++----------------------- 2 files changed, 51 insertions(+), 59 deletions(-) diff --git a/app/missions/layout.tsx b/app/missions/layout.tsx index f7ab68f5..9ee151b1 100644 --- a/app/missions/layout.tsx +++ b/app/missions/layout.tsx @@ -12,21 +12,26 @@ export default function MissionsLayout({ const pathname = usePathname(); return ( -
+
- {/* Sidebar */} -
+ {/* Sidebar with light pink background */} +
- {/* Main content - matches artlab spacing */} -
+ {/* Main content - white background */} +
{children}
diff --git a/app/missions/page.tsx b/app/missions/page.tsx index bbe090c8..964ac153 100644 --- a/app/missions/page.tsx +++ b/app/missions/page.tsx @@ -1,10 +1,10 @@ "use client"; import { useState } from "react"; -import { Plus, Search } from "lucide-react"; -import { Button } from "@/components/ui/button"; +import { Search } from "lucide-react"; import { Input } from "@/components/ui/input"; import Link from "next/link"; +import { Button } from "@/components/ui/button"; // Mock mission data until we implement the database const mockMissions = [ @@ -47,72 +47,59 @@ export default function MissionsPage() { ); return ( -
-
-

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.map((mission, index) => ( -
-
-
-
- - {mission.category} - - - {mission.duration} - -
+
+
+
+ + {mission.category} + + + {mission.duration} + +
+ +
+

{mission.title}

+

Location: {mission.location}

-
-

{mission.title}

-

Location: {mission.location}

- -
- {mission.skills.map(skill => ( - - {skill} - - ))} -
-
- -
- - Créée le {mission.createdAt.replace('2023-', '')} - - - - +
+ {mission.skills.map(skill => ( + + {skill} + + ))}
+ +
+ + Créée le {mission.createdAt.replace('2023-', '')} + + + + +
))}