A player's card with figures and skills; shirts in the club's colour; table zones; reduced motion

The card shows age, strength, condition, technique and form as numerals, the seven
skills as marks and contract and status as a list. The line-up pitch draws shirts in
the club's colour with a condition dot instead of the data set's figures. League
tables carry the prediction's European places and the promotion and relegation
places. A display setting turns transitions off. The desk hangs from the top edge of
a taller screen.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
MichaelandClaude Fable 5.2 committed 2026-11-14 18:43:40 +01:00
1 parent 9b33e1f8c1
commit eec7f40a52
16 files changed
+160 -26

No files matched your search

+7 -1
View File
@@ -198,7 +198,13 @@ std::string App::engine_reports_detail() {
const auto &p=row->at("player");title=engine_text(p.at("name"));auto photo=p.at("photoAssetId").is_string()?p.at("photoAssetId").get<std::string>():"asset:player/"+(report_detail_player_.starts_with("player:")?report_detail_player_.substr(7):report_detail_player_)+"/photo";
actions=btn("report-detail-close","Schließen","report-detail-action","id=\"report-detail-close\"");
std::string term="—";if(row->at("contractRemaining").is_object())term=number(row->at("contractRemaining").at("value"))+" Monate";
body="<div class=\"report-detail-portrait\">"+img(photo,496,662.667,true,true,1024)+"</div><p class=\"report-detail-photo-caption\">Porträt</p>"+report_detail_fields({{"Position",report_detail_position(p)},{"Alter",row->at("age").is_number_integer()?report_number(row->at("age"))+" Jahre":"—"},{"Stärke",report_number(row->at("live_strength"))},{"Verein",engine_text(team.at("name"))},{"Vertrag",term}},73);
body=report_player_card(img(photo,496,662.667,true,true,1024),crest(world_->find("clubs",report_detail_club_),56),engine_text(team.at("name")),report_detail_role(p),
{{"Alter",report_number(row->at("age"))},{"Stärke",report_number(row->at("live_strength"))},{"Kondition",report_number(row->at("live_condition"))},{"Technik",report_number(row->at("live_technique"))},{"Form",report_number(row->at("live_form"))}},
{{"Status",row->at("availability")=="injured"?"Verletzt, noch "+number(row->at("injuryRemaining").at("value"))+" Wo.":row->at("availability")=="suspended"?"Gesperrt, noch "+number(row->at("suspensionRemaining").at("value"))+" Wo.":std::string("Einsatzbereit")},
{"Kader",row->at("role")=="starter"?"Startelf":row->at("role")=="bench"?"Ersatzbank":"Tribüne"},
{"Nation",p.at("nationIds").empty()?std::string("—"):world_->nation_name(p.at("nationIds")[0].get<std::string>())},
{"Vertrag",term},{"Monatsgehalt",row->at("salaryMonthly").is_null()?std::string("—"):engine_price(row->at("salaryMonthly"))}},
row->at("skills"));
}
return "<div id=\"report-detail-layer\" class=\"report-detail-layer\"><section id=\"report-detail-dialog\" class=\"report-detail-card report-detail-"+esc(report_detail_kind_)+"\" role=\"dialog\" aria-modal=\"true\" aria-labelledby=\"report-detail-title\"><h2 id=\"report-detail-title\">"+esc(title)+"</h2>"+body+"<nav class=\"report-detail-actions\">"+actions+"</nav></section></div>";
}