mirror of
https://github.com/crocofied/CoreControl.git
synced 2025-12-22 09:56:58 +00:00
Sites Display test
This commit is contained in:
parent
668faa840f
commit
53c18d1fea
@ -2,6 +2,7 @@
|
|||||||
import Sidebar from "@/components/Sidebar";
|
import Sidebar from "@/components/Sidebar";
|
||||||
import { Plus } from "lucide-react";
|
import { Plus } from "lucide-react";
|
||||||
import AddSite from "@/components/dialogues/AddSite";
|
import AddSite from "@/components/dialogues/AddSite";
|
||||||
|
import Sites from "@/components/cards/Sites";
|
||||||
|
|
||||||
interface SitesPageProps {
|
interface SitesPageProps {
|
||||||
username: string;
|
username: string;
|
||||||
@ -29,6 +30,7 @@ export default function SitesPage({ username, name }: SitesPageProps) {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<AddSite />
|
<AddSite />
|
||||||
|
<Sites id="" name="test" description="test" networks={[]} />
|
||||||
</main>
|
</main>
|
||||||
</Sidebar>
|
</Sidebar>
|
||||||
)
|
)
|
||||||
|
|||||||
18
components/cards/Sites.tsx
Normal file
18
components/cards/Sites.tsx
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
interface SitesProps {
|
||||||
|
id: string;
|
||||||
|
name: string;
|
||||||
|
description: string;
|
||||||
|
networks: string[];
|
||||||
|
}
|
||||||
|
|
||||||
|
export default function Sites({ id, name, description, networks }: SitesProps) {
|
||||||
|
return (
|
||||||
|
<div className="card bg-base-200 shadow-xl">
|
||||||
|
<div className="card-body">
|
||||||
|
<h2 className="card-title">{name}</h2>
|
||||||
|
<p>{description}</p>
|
||||||
|
<p>Networks: {networks.join(', ')}</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user