Files
gamelog/resources/views/games/search.blade.php
T
MarkandClaude Sonnet 4.6 cdf17f92d7 SEO fixes: robots.txt, canonicals, noindex, og tags, breadcrumbs, similar games, review schema
- robots.txt: proper Disallow rules + sitemap URL
- Layout: robots meta tag, fix canonical syntax, og:site_name, full Twitter Card tags
- Game pages: canonical URLs, og:type website, breadcrumb nav + JSON-LD schema
- Screenshot alt text with game title and index
- VideoGame JSON-LD: review array with rating/author/body
- Similar Games section on game detail (by genre, ordered by rating)
- browse/index: noindex on paginated or multi-filter pages
- search results: noindex + improved title
- User library and lists: noindex
- Unique meta descriptions on browse, top-rated, new-releases pages

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-31 03:05:08 +03:00

38 lines
1.6 KiB
PHP

@extends('layouts.app')
@section('title', $q ? "Search Results for \"{$q}\" — GameLog" : 'Search Games — GameLog')
@section('robots', 'noindex,follow')
@section('content')
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-10">
<h1 class="text-2xl font-bold text-white mb-6">
@if($q)
Search results for "<span class="text-purple-400">{{ $q }}</span>"
@else
Search Games
@endif
</h1>
<form action="{{ route('games.search') }}" method="GET" class="mb-8 max-w-xl">
<div class="relative">
<svg class="absolute left-4 top-1/2 -translate-y-1/2 w-5 h-5 text-slate-500" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0"/>
</svg>
<input type="text" name="q" value="{{ $q }}" placeholder="Search for a game…" autofocus
class="w-full bg-[#16161d] border border-white/10 rounded-xl pl-12 pr-4 py-3 text-base text-slate-200 placeholder-slate-500 focus:outline-none focus:border-purple-500 focus:ring-1 focus:ring-purple-500 transition">
</div>
</form>
@if($q && $games->isEmpty())
<p class="text-slate-500">No games found for "{{ $q }}".</p>
@elseif($games->isNotEmpty())
<div class="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-6 gap-4">
@foreach($games as $game)
<x-game-card :game="$game" />
@endforeach
</div>
@endif
</div>
@endsection