feat: optional fixed viewport background on public pages

Adds background_fixed column, admin checkbox, fixed-position layers on the public layout, Dutch strings, and store tests.

Made-with: Cursor
This commit is contained in:
2026-04-04 13:36:26 +02:00
parent 2603288881
commit 5a67827c23
7 changed files with 72 additions and 4 deletions

View File

@@ -23,6 +23,7 @@ trait ValidatesPreregistrationPageInput
'post_submit_redirect_url' => ['nullable', 'string', 'url:http,https', 'max:500'],
'background_overlay_color' => ['nullable', 'string', 'regex:/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/'],
'background_overlay_opacity' => ['nullable', 'integer', 'min:0', 'max:100'],
'background_fixed' => ['sometimes', 'boolean'],
'page_background' => ['nullable', 'file', 'image', 'mimes:jpeg,png,jpg,webp', 'max:5120'],
'remove_page_background' => ['sometimes', 'boolean'],
'start_date' => ['required', 'date'],
@@ -69,6 +70,7 @@ trait ValidatesPreregistrationPageInput
$this->merge([
'is_active' => $this->boolean('is_active'),
'background_fixed' => $this->boolean('background_fixed'),
'remove_page_background' => $this->boolean('remove_page_background'),
'ticketshop_url' => $ticketshopNormalized,
'post_submit_redirect_url' => $redirectNormalized,

View File

@@ -32,6 +32,7 @@ class PreregistrationPage extends Model
'background_image',
'background_overlay_color',
'background_overlay_opacity',
'background_fixed',
'logo_image',
'is_active',
];
@@ -42,6 +43,7 @@ class PreregistrationPage extends Model
'start_date' => 'datetime',
'end_date' => 'datetime',
'phone_enabled' => 'boolean',
'background_fixed' => 'boolean',
'is_active' => 'boolean',
];
}