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

+9 -1
View File
@@ -139,7 +139,7 @@ std::string App::render_reports(const std::string &mode) {
body += report_club_button(row.at(column == 0 ? "home" : "away").get<std::string>(), column == 0);
else if (!matches && column == 0) {
if (!strengths) {
const auto zone = engine_mode_?std::string():report_zone(row.value("rank", 0), int(rows.size()), tier);
const auto zone = engine_mode_?row.value("zone", std::string()):report_zone(row.value("rank", 0), int(rows.size()), tier);
body += "<span class=\"report-zone " + zone + "\"></span><span class=\"report-rank\"><span>" +
std::to_string(row.value("rank", 0)) + ".</span></span>";
}
@@ -179,6 +179,14 @@ std::string App::render_reports(const std::string &mode) {
body += "</div>";
if(real_other&&rows.empty())body+="<p class=\"report-detail-empty\">"+std::string(!fixture.at("available").get<bool>()?"Diese Runde ist noch nicht ausgelost oder die vorherige Phase ist noch nicht abgeschlossen.":"Keine Paarungen vorhanden.")+"</p>";
body+="</div>";
if (!matches && !strengths && engine_mode_) {
// only the zones this league has
std::string items;
for (const auto &[kind, label] : std::array<std::pair<const char *, const char *>, 3>{{{"europe", "Europapokal"}, {"promotion", "Aufstieg"}, {"relegation", "Abstieg"}}})
if (std::any_of(rows.begin(), rows.end(), [&](const Json &row) { return row.value("zone", "") == kind; }))
items += "<span class=\"report-legend-item\"><span class=\"report-zone " + std::string(kind) + "\"></span><span>" + label + "</span></span>";
if (!items.empty()) body += "<div class=\"report-legend\">" + items + "</div>";
}
if (!matches && !strengths && !engine_mode_) {
const auto legend = tier == 1
? std::vector<std::pair<std::string, std::string>>{