From 2f8ccc28c873f878e26a2bac9ea1009284f2d484 Mon Sep 17 00:00:00 2001 From: Kenan KARAER Date: Wed, 3 Dec 2025 22:00:16 +0300 Subject: [PATCH] Fix: Responsive design for Halls page (switched to Card grid) --- src/app/dashboard/halls/page.tsx | 96 +++++++++++++++++--------------- 1 file changed, 51 insertions(+), 45 deletions(-) diff --git a/src/app/dashboard/halls/page.tsx b/src/app/dashboard/halls/page.tsx index 8bec28e..0c5ebb7 100644 --- a/src/app/dashboard/halls/page.tsx +++ b/src/app/dashboard/halls/page.tsx @@ -1,63 +1,69 @@ import { createClient } from "@/lib/supabase/server" -import { - Table, - TableBody, - TableCell, - TableHead, - TableHeader, - TableRow, -} from "@/components/ui/table" import { Button } from "@/components/ui/button" -import { Plus } from "lucide-react" +import { Plus, Users, Edit } from "lucide-react" import Link from "next/link" +import { Card, CardContent, CardFooter, CardHeader, CardTitle } from "@/components/ui/card" +import { Badge } from "@/components/ui/badge" export default async function HallsPage() { const supabase = await createClient() const { data: halls } = await supabase.from('halls').select('*').order('created_at', { ascending: false }) return ( -
-
-

Salonlar

+
+
+
+

Salonlar

+

Düğün salonlarınızı ve kapasitelerini yönetin.

+
-
-
- - - - İsim - Kapasite - Açıklama - İşlemler - - - - {halls?.length === 0 ? ( - - - Henüz salon eklenmemiş. - - - ) : ( - halls?.map((hall) => ( - - {hall.name} - {hall.capacity} Kişi - {hall.description} - - - - - )) - )} - -
-
+ {halls?.length === 0 ? ( +
+

Henüz salon eklenmemiş.

+ + + +
+ ) : ( +
+ {halls?.map((hall) => ( + + +
+ {hall.name} + +
+
+ +
+ + {hall.capacity} + Kişi Kapasiteli +
+ {hall.description && ( +

+ {hall.description} +

+ )} +
+ +
+ ID: {hall.id.slice(0, 8)}... + Aktif +
+
+
+ ))} +
+ )}
) }