mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-01-30 20:40:15 +00:00
Update page.tsx
This commit is contained in:
parent
8dc2e416a4
commit
37d16e43e7
@ -53,12 +53,26 @@ const CategoryView = () => {
|
|||||||
{selectedCategory.scripts
|
{selectedCategory.scripts
|
||||||
.sort((a, b) => a.name.localeCompare(b.name))
|
.sort((a, b) => a.name.localeCompare(b.name))
|
||||||
.map((script) => (
|
.map((script) => (
|
||||||
<Card key={script.name}>
|
<Card key={script.name} className="p-4">
|
||||||
<CardContent>
|
<CardContent className="flex flex-col gap-4">
|
||||||
<h3 className="text-lg font-medium">{script.name}</h3>
|
<div className="flex items-center gap-4">
|
||||||
<p className="text-sm text-gray-600">
|
<img
|
||||||
{script.date_created || "No date available"}
|
src={script.logo || defaultLogo}
|
||||||
</p>
|
alt={script.name}
|
||||||
|
className="h-12 w-12 object-contain"
|
||||||
|
/>
|
||||||
|
<div>
|
||||||
|
<h3 className="text-lg font-bold">{script.name}</h3>
|
||||||
|
<p className="text-sm text-gray-500">Created at: {script.date_created || "No date available"}</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<p className="text-sm text-gray-700">{script.description || "No description available."}</p>
|
||||||
|
<div className="text-right text-sm text-gray-600">
|
||||||
|
<b>Default settings</b>
|
||||||
|
<div><b>CPU:</b> {script.install_methods[0]?.resources.cpu || "N/A"}vCPU</div>
|
||||||
|
<div><b>RAM:</b> {script.install_methods[0]?.resources.ram || "N/A"}MB</div>
|
||||||
|
<div><b>HDD:</b> {script.install_methods[0]?.resources.hdd || "N/A"}GB</div>
|
||||||
|
</div>
|
||||||
</CardContent>
|
</CardContent>
|
||||||
</Card>
|
</Card>
|
||||||
))}
|
))}
|
||||||
|
Loading…
Reference in New Issue
Block a user