Add SEO support with configuration and traits

- Introduced `config/seo.php` to centralize SEO settings.
- Implemented `SeoTrait` for dynamic SEO management.
- Added `SeoDataAttribute` to set SEO metadata at the class level.
- Updated various views to integrate dynamic SEO handling.
- Included fallback settings for titles, descriptions, images, and more.
This commit is contained in:
HolgerHatGarKeineNode
2025-11-22 22:12:45 +01:00
parent eb089f670c
commit 25843db5a9
9 changed files with 244 additions and 17 deletions

View File

@@ -1,10 +1,13 @@
<?php
use App\Traits\SeoTrait;
use Livewire\Volt\Component;
use Livewire\Attributes\Layout;
new #[Layout('components.layouts.auth')]
class extends Component {
use SeoTrait;
public function goToMeetups(): void
{
$this->redirect(route_with_country('meetups.index'), navigate: true);
@@ -23,7 +26,8 @@ class extends Component {
<div class="flex justify-center">
<a href="/" class="group flex items-center gap-3">
<div>
<flux:avatar class="[:where(&)]:size-32 [:where(&)]:text-base" size="xl" src="{{ asset('img/einundzwanzig-square.svg') }}" />
<flux:avatar class="[:where(&)]:size-32 [:where(&)]:text-base" size="xl"
src="{{ asset('img/einundzwanzig-square.svg') }}"/>
</div>
</a>
</div>
@@ -53,7 +57,8 @@ class extends Component {
{{ __('Kartenansicht öffnen') }}
</flux:button>
<flux:button :href="route('dashboard', ['country' => 'de'])" class="cursor-pointer w-full" icon="arrow-right-start-on-rectangle">
<flux:button :href="route('dashboard', ['country' => 'de'])" class="cursor-pointer w-full"
icon="arrow-right-start-on-rectangle">
{{ __('Login') }}
</flux:button>
</div>