Loheide-eu-mitarbeiterplatt.../app/Filament/Pages/Appearance/AppearanceProfile.php
Friederich Loheide 4d855c8a74
Some checks failed
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 3m49s
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 3m54s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 5m27s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 5m29s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 6m38s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 6m40s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 6m7s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 6m13s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m24s
QM: Wiedervorlage und Lesebestätigung, Platzhalter für Profilbilder (0.21.0)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-27 07:36:47 +00:00

34 lines
1.7 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
namespace App\Filament\Pages\Appearance;
use App\Support\Theme\Theme;
use BackedEnum;
use Filament\Forms\Components\Radio;
use Filament\Support\Icons\Heroicon;
class AppearanceProfile extends AppearancePage
{
protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedUserCircle;
protected static ?int $navigationSort = 5;
protected static ?string $navigationLabel = 'Profile';
protected static ?string $title = 'Profile';
protected static ?string $slug = 'profile';
protected function fields(): array
{
return [
static::image('avatar_placeholder', 'Platzhalter für Profilbilder', 'Erscheint überall dort, wo eine Person kein eigenes Profilbild hat – z. B. ein Signet oder eine Silhouette. Quadratisch, mindestens 256 × 256 Pixel. Leer = Initialen in einer Farbe je Person.')
->image()->acceptedFileTypes(['image/png', 'image/jpeg', 'image/webp', 'image/svg+xml'])->columnSpanFull(),
static::image('profile_cover', 'Standard-Titelbild', 'Erscheint oben im Profil und in der Begrüßung auf der Startseite, wenn eine Person kein eigenes Titelbild hochgeladen hat. Querformat, mindestens 1600 Pixel breit. Leer = Fläche in der Markenfarbe.')
->image()->acceptedFileTypes(['image/jpeg', 'image/png', 'image/webp'])->maxSize(8192)->columnSpanFull(),
Radio::make('profile_cover_overlay')->label('Farbfläche über dem Titelbild')
->helperText('Titelbilder liegen immer unter einer leicht durchsichtigen Fläche in der Markenfarbe – so bleiben Name und Text gut lesbar und alle Profile wirken einheitlich.')
->options(Theme::COVER_OVERLAYS)->inline()->required()->columnSpanFull(),
];
}
}