优化界面
This commit is contained in:
@@ -36,14 +36,38 @@
|
||||
</div>
|
||||
|
||||
<aside>
|
||||
<div class="surface-card p-3 p-lg-4">
|
||||
<section class="surface-card p-3 p-lg-4 mb-3">
|
||||
<h3 class="section-title mb-3">学习信息</h3>
|
||||
<ul class="list-unstyled small mb-0">
|
||||
<li class="mb-2">难度:<strong>{{ $item->difficulty }}</strong></li>
|
||||
<li class="mb-2">发布时间:<strong>{{ $item->published_at?->format('Y-m-d H:i') ?? '-' }}</strong></li>
|
||||
<li>最后更新:<strong>{{ $item->updated_at?->format('Y-m-d H:i') ?? '-' }}</strong></li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="surface-card p-3 mb-3">
|
||||
<h3 class="section-title mb-3">相关工具</h3>
|
||||
@forelse($sidebarTools as $tool)
|
||||
<article class="pb-2 mb-2 border-bottom" style="border-color:var(--line)!important;">
|
||||
<a class="fw-semibold text-decoration-none" href="{{ route('tools.show', $tool->slug) }}">{{ $tool->name }}</a>
|
||||
<div class="small text-muted-soft">{{ $tool->pricing_type }}</div>
|
||||
</article>
|
||||
@empty
|
||||
<p class="text-muted-soft small mb-0">暂无工具</p>
|
||||
@endforelse
|
||||
</section>
|
||||
|
||||
<section class="surface-card p-3">
|
||||
<h3 class="section-title mb-3">模型推荐</h3>
|
||||
@forelse($sidebarModels as $model)
|
||||
<article class="pb-2 mb-2 border-bottom" style="border-color:var(--line)!important;">
|
||||
<a class="fw-semibold text-decoration-none" href="{{ route('models.show', $model->slug) }}">{{ $model->name }}</a>
|
||||
<div class="small text-muted-soft">综合 {{ $model->total_score }} 分</div>
|
||||
</article>
|
||||
@empty
|
||||
<p class="text-muted-soft small mb-0">暂无模型</p>
|
||||
@endforelse
|
||||
</section>
|
||||
</aside>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
Reference in New Issue
Block a user