diff --git a/src/components/sections/CriminalLawServicesSection.tsx b/src/components/sections/CriminalLawServicesSection.tsx new file mode 100644 index 0000000..8affa22 --- /dev/null +++ b/src/components/sections/CriminalLawServicesSection.tsx @@ -0,0 +1,103 @@ +'use client' + +import Link from "next/link" +import { useMedusaProducts } from "@/hooks/useMedusaProducts" +import { Card, CardHeader, CardTitle, CardDescription, CardContent, CardFooter } from "@/components/ui/Card" +import Button from "@/components/ui/Button" +import { BookOpen, Clock, FileText, Gavel, Handshake, Scale, Shield, UserCheck } from 'lucide-react' + +const serviceIcons = [ + Scale, Shield, FileText, Handshake, + Clock, BookOpen, UserCheck, Gavel +] + +export default function CriminalLawServicesSection() { + const { products: services, isLoading } = useMedusaProducts(8) + + if (isLoading) { + return ( +
+
+
+
+
+
+ {[...Array(6)].map((_, i) => ( +
+ ))} +
+
+
+
+ ) + } + + return ( +
+
+
+

+ Criminal Defence Services +

+

+ Comprehensive criminal law expertise covering every stage of the case — from arrest to appeal. +

+
+
+ {(services ?? []).map((service, index) => { + const Icon = serviceIcons[index % serviceIcons.length] + const price = service.variants?.[0]?.prices?.[0] + const formattedPrice = price + ? `R${(price.amount / 100).toFixed(2)}` + : "Contact us for pricing" + + return ( + + +
+
+ +
+ + {service.title} + +
+
+ + + {service.description ?? "Professional criminal defence representation tailored to your case."} + +

+ {formattedPrice} +

+
+ + + + + +
+ ) + })} +
+
+ + + +
+
+
+ ) +}