This commit is contained in:
2023-11-28 04:39:36 +08:00
parent a9ac0e48b3
commit dc37274b6c
86 changed files with 2106 additions and 191 deletions

View File

@@ -8,42 +8,43 @@ class="bg-highlighter-pink fw-bold px-2">Any Task</span>
</h1>
<h2 class="lead h4 mb-4">Curating over 750+ AI tools and growing 🛠️</h2>
<div class="col-12 col-md-9 col-lg-8 col-xl-7 mx-auto mb-4">
<div class="row justify-content-center">
<div class="col-12 col-md-9 col-lg-8 col-xl-7 mx-auto mb-4">
@include('front.partials.search')
</div>
<form class="form-inline d-flex justify-content-center border rounded-pill p-2">
<input class="form-control form-control-lg border-0 rounded-pill" type="search" placeholder="Search AI Tools"
aria-label="Search">
<button class="btn btn-lg btn-primary bg-gradient text-white rounded-pill ms-2 text-nowrap px-4 fw-bold"
type="submit">Search with AI </button>
</form>
</div>
<div class="col-12 col-md-9 col-lg-9 col-xl-9 mx-auto">
Filter by
@foreach ($top_parent_categories as $category)
<a href="{{ route('front.discover.category', ['category_slug' => $category->slug]) }}"
class="btn btn-outline-dark text-decoration-none border-2 fw-bold mb-1 rounded-pill px-3">{{ $category->name }}
{{ $category->emoji }}</a>
@endforeach
<a href="{{ route('front.discover.home') }}"
class="btn btn-outline-dark text-decoration-none border-2 fw-bold mb-1 rounded-pill px-3">and
{{ $non_top_parent_categories->count() }} more top categories!</a>
</div>
</div>
<div class="container-lg">
<p class="text-center h3 fw-bold mb-3">Featured AI Tools</p>
<div class="row justify-content-center g-3">
@for ($i = 1; $i <= 18; $i++)
<div class="col-6 col-lg-4">
@include('front.partials.ai-tool-card')
<div class="col-12 col-md-9 col-lg-9 col-xl-9 mx-auto">
<div class="d-inline-flex justify-content-center flex-wrap gap-1">
<span class="align-self-center">Filter by</span>
@foreach ($top_parent_categories as $category)
<a href="{{ route('front.discover.category', ['category_slug' => $category->slug]) }}"
class="btn btn-outline-dark text-decoration-none border-2 fw-bold rounded-pill px-3">{{ $category->name }}
{{ $category->emoji }}</a>
@endforeach
<a href="{{ route('front.discover.home') }}"
class="btn btn-outline-dark text-decoration-none border-2 fw-bold rounded-pill px-3">and
{{ $non_top_parent_categories->count() }} more top categories!</a>
</div>
@endfor
</div>
</div>
</div>
@if ($latest_ai_tools->count() > 0)
<div class="container-lg">
<p class="text-center h3 fw-bold mb-3">Featured AI Tools</p>
<div class="row justify-content-center g-3">
@foreach ($latest_ai_tools as $ai_tool)
<div class="col-6 col-lg-4">
@include('front.partials.ai-tool-card', ['ai_tool' => $ai_tool])
</div>
@endforeach
</div>
</div>
@endif
<div class="container-lg mt-3 mb-3 text-center">
<a class="btn btn-primary rounded-pill px-4 breathing-effect btn-lg text-decoration-none bg-gradient"
href="{{ route('front.discover.home') }}">Discover {{ $tools_count }} More AI Tools</a>