sfdsf
All checks were successful
Deploy / deploy-staging (push) Successful in 5s
Deploy / deploy-production (push) Has been skipped

This commit is contained in:
2026-04-23 00:40:05 +02:00
parent 39bddf39e2
commit 0c90aa0b88
10 changed files with 240 additions and 204 deletions

View File

@@ -280,8 +280,8 @@ function module_shell_header(string $module, array $options = []): string
{
$design = module_design($module);
$requestPath = app()->request()->path();
$title = trim((string) ($options['title'] ?? $design['title'] ?? ucfirst($module)));
$description = trim((string) ($options['description'] ?? $design['description'] ?? ''));
$title = trim((string) ($options['title'] ?? ''));
$description = trim((string) ($options['description'] ?? ''));
$eyebrow = trim((string) ($options['eyebrow'] ?? $design['eyebrow'] ?? 'Modul'));
$actions = is_array($options['actions'] ?? null) ? $options['actions'] : (is_array($design['actions'] ?? null) ? $design['actions'] : []);
$tabs = is_array($options['tabs'] ?? null) ? $options['tabs'] : (is_array($design['tabs'] ?? null) ? $design['tabs'] : []);
@@ -289,13 +289,21 @@ function module_shell_header(string $module, array $options = []): string
$html = '<div class="module-shell"><div class="module-page-bg"><div class="module-page-stack">';
$html .= '<header class="module-hero">';
$html .= '<div class="module-hero-top">';
$html .= '<div class="module-hero-copy">';
$html .= '<div class="eyebrow">' . e($eyebrow) . '</div>';
$html .= '<h1 class="module-title">' . e($title) . '</h1>';
if ($description !== '') {
$html .= '<p class="module-lead">' . e($description) . '</p>';
if ($title !== '' || $description !== '' || !empty($options['show_eyebrow'])) {
$html .= '<div class="module-hero-copy">';
if (!empty($options['show_eyebrow'])) {
$html .= '<div class="eyebrow">' . e($eyebrow) . '</div>';
}
if ($title !== '') {
$html .= '<h1 class="module-title">' . e($title) . '</h1>';
}
if ($description !== '') {
$html .= '<p class="module-lead">' . e($description) . '</p>';
}
$html .= '</div>';
} else {
$html .= '<div class="module-hero-copy module-hero-copy--compact" aria-hidden="true"></div>';
}
$html .= '</div>';
if ($actions !== []) {
$html .= '<div class="module-hero-actions">';
@@ -309,7 +317,11 @@ function module_shell_header(string $module, array $options = []): string
continue;
}
$variant = trim((string) ($action['variant'] ?? 'secondary'));
$size = trim((string) ($action['size'] ?? 'sm'));
$class = $variant === 'ghost' ? 'module-button module-button--ghost' : 'module-button module-button--secondary';
if ($size === 'sm') {
$class .= ' module-button--small';
}
$html .= '<a class="' . e($class) . '" href="' . e($href) . '">' . e($label) . '</a>';
}
$html .= '</div>';