Updated Sites & Site view

This commit is contained in:
headlesdev
2025-05-18 20:37:23 +02:00
parent 1f91402afd
commit 058405ba24
2 changed files with 4 additions and 5 deletions

View File

@@ -6,8 +6,7 @@ import { ChevronRight } from "lucide-react";
export default function Sites({ id, name, description, networks }: Site) {
const router = useRouter();
return (
<div className="relative group bg-base-200 rounded-xl shadow-lg overflow-hidden h-48" style={{ display: 'block' }}>
{/* Card content */}
<div className="relative group bg-base-100 border border-base-200 rounded-xl shadow-xl overflow-hidden h-48" style={{ display: 'block' }}>
<div className="p-6 pr-20 h-full flex flex-col">
<h2 className="text-xl font-bold">{name}</h2>
@@ -21,7 +20,7 @@ export default function Sites({ id, name, description, networks }: Site) {
{networks && networks.length > 0 ? (
<div className="mt-3">
<p className="text-sm font-medium mb-1">Networks:</p>
<div className="bg-base-100 p-2 rounded-lg overflow-y-auto max-h-16">
<div className="bg-base-200 p-2 rounded-lg overflow-y-auto max-h-16">
{networks.map((network, index) => (
<span key={network.id || index} className="inline-block bg-base-300 rounded px-2 py-1 text-xs mr-2 mb-1">
{network.name}