Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 3m47s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 3m41s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 4m8s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 4m6s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 5m25s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 5m23s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 4m39s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 4m40s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m8s
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
32 lines
1.3 KiB
PHP
32 lines
1.3 KiB
PHP
<?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('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(),
|
||
];
|
||
}
|
||
}
|