Frontend-Umbau (Kevin, 06.07.2026), Ergebnis des businessportal24-Audits: - Fake-Anzeigen und Mock-/Fallback-Daten entfernt (focus-ad, feed-ad, highlight-card, press-release-card, featured-releases, press-releases-grid); Sektionen rendern nur noch mit echten Daten oder gar nicht - Newsletter-Strip und Newsletter-Box zurueckgebaut (Feature nachgelagert, vor Reaktivierung DOI-Flow noetig) - Echte Boersendaten: MarketDataService (Yahoo-Finance-Quotes, config/market.php, Cache) + market:refresh alle 15 Min. im Scheduler; live-ticker blendet sich ohne Daten aus - EN-Lokalisierung der Kern-Seiten via lang/de/web.php + lang/en/web.php; Carbon-Locale folgt app()->getLocale() - Web-Tests auf den neuen Frontend-Stand nachgezogen (Suite: 993 gruen) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
62 lines
2.9 KiB
PHP
62 lines
2.9 KiB
PHP
@props([
|
|
'industries' => null,
|
|
])
|
|
|
|
@php
|
|
$industries = $industries ?? \App\Support\CategoryNavigation::items(8)
|
|
->map(fn (array $category): array => [
|
|
'name' => $category['label'],
|
|
'count' => 0,
|
|
'delta' => 0,
|
|
'href' => $category['href'],
|
|
])
|
|
->all();
|
|
|
|
$maxCount = max(1, collect($industries)->max('count'));
|
|
$industries = array_slice($industries, 0, 8);
|
|
@endphp
|
|
|
|
@if (! empty($industries))
|
|
<section class="max-w-layout mx-auto px-8 mt-16">
|
|
<header class="flex items-baseline justify-between mb-4 flex-wrap gap-3">
|
|
<h2 class="font-serif text-[28px] font-semibold m-0 tracking-[-0.3px] text-ink">{{ __('web.industry_index.title') }}</h2>
|
|
<span class="eyebrow muted">{{ __('web.industry_index.window') }}</span>
|
|
</header>
|
|
<hr class="rule-strong">
|
|
|
|
<div class="grid border-b border-bg-rule grid-cols-2 md:grid-cols-4">
|
|
@foreach ($industries as $idx => $industry)
|
|
@php
|
|
$delta = (int) ($industry['delta'] ?? 0);
|
|
$direction = $delta > 0 ? 'gain' : ($delta < 0 ? 'loss' : 'flat');
|
|
$percent = max(20, (int) round(($industry['count'] ?? 0) / $maxCount * 100));
|
|
$isTopRow = $idx < 4;
|
|
$isLastInRow = ($idx + 1) % 4 === 0;
|
|
$barClass = $delta < 0 ? 'bg-brand' : 'bg-gain';
|
|
@endphp
|
|
<a href="{{ $industry['href'] ?? route('web.home') }}"
|
|
class="block px-5 py-[18px] {{ $isLastInRow ? '' : 'md:border-r border-bg-rule' }} {{ $isTopRow ? '' : 'border-t border-bg-rule' }} cursor-pointer hover:bg-bg-elev transition-colors group">
|
|
<div class="flex justify-between items-baseline mb-2 gap-2">
|
|
<span class="text-[14px] font-semibold text-ink group-hover:text-brand transition-colors">{{ $industry['name'] }}</span>
|
|
<span class="font-mono text-[12px] font-semibold
|
|
@if ($direction === 'gain') text-gain
|
|
@elseif ($direction === 'loss') text-loss
|
|
@else text-ink-3 @endif">
|
|
@if ($delta > 0) +{{ $delta }}
|
|
@elseif ($delta < 0) {{ $delta }}
|
|
@else ±0
|
|
@endif
|
|
</span>
|
|
</div>
|
|
<div class="flex items-baseline gap-2 mb-2">
|
|
<span class="font-serif text-[22px] font-semibold tracking-[-0.3px] text-ink">{{ $industry['count'] }}</span>
|
|
<span class="text-[11px] text-ink-3">{{ __('web.industry_index.releases') }}</span>
|
|
</div>
|
|
<div class="h-[3px] bg-bg-rule">
|
|
<div class="h-full {{ $barClass }}" style="width: {{ $percent }}%;"></div>
|
|
</div>
|
|
</a>
|
|
@endforeach
|
|
</div>
|
|
</section>
|
|
@endif
|