diff --git a/components/cards/Sites.tsx b/components/cards/Sites.tsx index d9a7141..d61c938 100644 --- a/components/cards/Sites.tsx +++ b/components/cards/Sites.tsx @@ -1,21 +1,48 @@ "use client" import { useRouter } from "next/navigation"; import { Site } from "@/app/types"; +import { ChevronRight } from "lucide-react"; export default function Sites({ id, name, description, networks }: Site) { const router = useRouter(); return ( -
-
-

{name}

-

{description}

- { networks && networks.length > 0 && ( -

Networks: {networks.map((network) => network.name).join(", ")}

+
+ {/* Card content */} +
+

{name}

+ + {description ? ( +

{description}

+ ) : ( +

No description provided

)} -
- + +
+ {networks && networks.length > 0 ? ( +
+

Networks:

+
+ {networks.map((network, index) => ( + + {network.name} + + ))} +
+
+ ) : ( +
+

No networks configured

+
+ )}
+ +
router.push(`/dashboard/sites/${id}`)} + className="absolute top-0 right-0 bottom-0 h-full w-12 bg-primary hover:bg-primary-focus text-primary-content flex items-center justify-center cursor-pointer transition-colors" + > + +
- ) + ); }