前端修改
This commit is contained in:
@@ -73,16 +73,35 @@ $bannerItems = collect(data_get($bannerModule, 'items', []))->take((int) data_ge
|
||||
|
||||
<section class="tool-main">
|
||||
<section class="tool-hero">
|
||||
<span class="tool-chip">AI-BOT.CN</span>
|
||||
<h1 class="tool-title">{{ data_get($hotModule, 'extra.side_title', 'AI工具集') }}</h1>
|
||||
<p class="tool-sub">{{ data_get($hotModule, 'subtitle', '左侧菜单点击后可直接定位到对应工具区块。') }}</p>
|
||||
<span class="tool-chip">AIBASE.CN</span>
|
||||
<h1 class="tool-title">AI工具集</h1>
|
||||
<p class="tool-sub">10000+精选AI工具集合,涵盖写作、图像、视频、编程等多个领域</p>
|
||||
|
||||
<form class="tool-search" method="get" action="{{ route('tools.list') }}" role="search" aria-label="站内 AI 工具搜索">
|
||||
<input type="hidden" name="tab" value="{{ $activeTab }}">
|
||||
<input type="search" name="q" value="{{ $filters['q'] ?? '' }}" placeholder="站内 AI 工具搜索,如:写作、图像、自动化" autocomplete="off" spellcheck="false">
|
||||
<input type="search" name="q" value="{{ $filters['q'] ?? '' }}" placeholder="输入关键词搜索AI工具,如:写作、图像、自动化" autocomplete="off" spellcheck="false">
|
||||
<button class="btn btn-primary" type="submit"><i class="bi bi-search"></i> 搜索</button>
|
||||
</form>
|
||||
|
||||
<div class="tool-kpis">
|
||||
<div class="tool-kpi">
|
||||
<span class="label">工具总数</span>
|
||||
<span class="value">{{ $toolStats['total'] }}</span>
|
||||
</div>
|
||||
<div class="tool-kpi">
|
||||
<span class="label">API支持</span>
|
||||
<span class="value">{{ $toolStats['api'] }}</span>
|
||||
</div>
|
||||
<div class="tool-kpi">
|
||||
<span class="label">免费工具</span>
|
||||
<span class="value">{{ $toolStats['free'] }}</span>
|
||||
</div>
|
||||
<div class="tool-kpi">
|
||||
<span class="label">7日更新</span>
|
||||
<span class="value">{{ $toolStats['updated_7d'] }}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<nav class="channel-tabs justify-content-center" aria-label="筛选模式">
|
||||
@foreach($tabOptions as $tab)
|
||||
<a class="channel-tab @if($activeTab === $tab['key']) active @endif" href="{{ route('tools.index', array_filter(array_merge($filters, ['tab' => $tab['key']]))) }}">{{ $tab['label'] }}</a>
|
||||
@@ -90,6 +109,31 @@ $bannerItems = collect(data_get($bannerModule, 'items', []))->take((int) data_ge
|
||||
</nav>
|
||||
</section>
|
||||
|
||||
@if(data_get($channelModule, 'enabled', true) === true)
|
||||
<section id="section-channel" class="tool-section" aria-label="频道卡片">
|
||||
<header class="tool-section-head">
|
||||
<h2><i class="bi bi-grid text-primary"></i> {{ data_get($channelModule, 'title', '频道卡片') }}</h2>
|
||||
</header>
|
||||
|
||||
<div class="tool-channel">
|
||||
<div class="tool-channel-mini">
|
||||
<a href="{{ route('home') }}"><i class="bi bi-house"></i><br>首页</a>
|
||||
<a href="{{ route('tools.list') }}"><i class="bi bi-tools"></i><br>工具</a>
|
||||
<a href="{{ route('models.index') }}"><i class="bi bi-cpu"></i><br>模型</a>
|
||||
<a href="{{ route('news.index') }}"><i class="bi bi-newspaper"></i><br>资讯</a>
|
||||
<a href="{{ route('guides.index') }}"><i class="bi bi-journal-code"></i><br>教程</a>
|
||||
</div>
|
||||
@forelse($channelItems as $channel)
|
||||
<a class="tool-channel-card" href="{{ $channel['url'] ?: 'javascript:void(0)' }}" @if(!empty($channel['image_path'])) style="background-image:url('{{ $channel['image_path'] }}');" @endif>
|
||||
<span>{{ $channel['title'] ?: '频道入口' }}</span>
|
||||
</a>
|
||||
@empty
|
||||
<div class="tool-channel-card"><span>频道入口</span></div>
|
||||
@endforelse
|
||||
</div>
|
||||
</section>
|
||||
@endif
|
||||
|
||||
@foreach($moduleOrder as $moduleKey)
|
||||
@if($moduleKey === 'promo_banners' && data_get($bannerModule, 'enabled', true) === true)
|
||||
<section id="section-banner" class="tool-section" aria-label="横幅推荐">
|
||||
|
||||
Reference in New Issue
Block a user