Files
Virtnet.bond/extensions/Servers/Proxmox/views/components/ui/empty-state.blade.php
Joseph.Rawlings b4e2923a2c refactor: update Proxmox UI components to use TailAdmin styling
- Changed component styles and classes to align with TailAdmin design patterns.
- Updated color schemes, typography, and layout for consistency across components.
- Refactored Info Row, Network Address Card, Notice Banner, Progress Bar, Resource Gauge, Section Header, Server Status, Spinner, Stat Card, and Tab Panel components.
- Enhanced responsiveness and accessibility features in various components.
2025-12-17 12:33:10 -05:00

71 lines
1.8 KiB
PHP

{{--
Empty State Component - TailAdmin style
Usage:
<x-proxmox::ui.empty-state title="No servers found" />
<x-proxmox::ui.empty-state
title="No servers"
description="Get started by creating your first server."
icon="ri-server-line"
>
<x-proxmox::ui.button variant="primary">Create Server</x-proxmox::ui.button>
</x-proxmox::ui.empty-state>
--}}
@props([
'title' => 'No data',
'description' => null,
'icon' => 'ri-inbox-line',
'iconClass' => null,
'compact' => false,
])
<div
{{ $attributes->class([
'flex flex-col items-center justify-center text-center',
'px-6 py-12' => !$compact,
'px-4 py-6' => $compact,
]) }}
>
@if($icon)
<div @class([
'flex items-center justify-center rounded-full bg-gray-100 dark:bg-gray-800',
'mb-5 size-16' => !$compact,
'mb-3 size-11' => $compact,
])>
<x-dynamic-component
:component="$icon"
@class([
$iconClass ?? 'text-gray-400 dark:text-gray-500',
'size-8' => !$compact,
'size-5' => $compact,
])
/>
</div>
@endif
<h3 @class([
'font-semibold text-gray-800 dark:text-white/90',
'text-lg' => !$compact,
'text-theme-sm' => $compact,
])>
{{ $title }}
</h3>
@if($description)
<p @class([
'max-w-sm text-gray-500 dark:text-gray-400',
'mt-2 text-theme-sm' => !$compact,
'mt-1 text-theme-xs' => $compact,
])>
{{ $description }}
</p>
@endif
@if($slot->isNotEmpty())
<div @class(['mt-5' => !$compact, 'mt-3' => $compact])>
{{ $slot }}
</div>
@endif
</div>