feat: 插件/主题管理卡片改用 Filament 原生组件+中文页面标题;注入点分三组管理(页面/侧边栏/文章);前台 sablog 主题全面语义化(header/nav/main/aside/section/footer)
This commit is contained in:
@@ -2,9 +2,10 @@
|
||||
<x-filament::section heading="主题列表">
|
||||
<div class="grid gap-5 sm:grid-cols-2 lg:grid-cols-3">
|
||||
@forelse($this->themes as $theme)
|
||||
<div class="flex flex-col overflow-hidden rounded-xl border border-gray-200 bg-white shadow-sm dark:border-white/10 dark:bg-white/5">
|
||||
<x-filament::section :compact="true" class="!p-0">
|
||||
<div class="flex flex-col">
|
||||
{{-- 主题预览图 --}}
|
||||
<div class="relative aspect-[4/3] overflow-hidden bg-gray-100 dark:bg-white/5">
|
||||
<div class="relative aspect-[4/3] overflow-hidden rounded-t-lg bg-gray-100 dark:bg-white/5">
|
||||
@if($theme['screenshot'])
|
||||
<img src="{{ theme('asset', $theme['screenshot'], $theme['name']) }}"
|
||||
alt="{{ $theme['title'] }} 预览"
|
||||
@@ -44,7 +45,8 @@
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</x-filament::section>
|
||||
@empty
|
||||
<p class="text-sm text-gray-500">暂无主题</p>
|
||||
@endforelse
|
||||
|
||||
Reference in New Issue
Block a user