Redesign dashboard with weighted metrics, compact map, share bars and empty-state onboarding
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
de22f035dc
commit
31bb8b21c2
6 files changed
+333
-92
No files matched your search
@@ -1,35 +1,47 @@
|
||||
@using System.Globalization
|
||||
|
||||
<section class="card">
|
||||
<h2>Herkunft</h2>
|
||||
<svg class="world-map" viewBox="0 0 @Map.Width.ToString(CultureInfo.InvariantCulture) @Map.Height.ToString(CultureInfo.InvariantCulture)" role="img" aria-label="Weltkarte der Fänge nach Land">
|
||||
@foreach (var country in Map.Countries)
|
||||
<section class="card map-card">
|
||||
<div class="card-head">
|
||||
<h2>Herkunft</h2>
|
||||
@if (_max > 0)
|
||||
{
|
||||
var count = Count(country.Code);
|
||||
<path d="@country.Path" class="@($"level-{Level(count)}")"><title>@Title(CountryNames.Display(country.Code, country.Name)!, count)</title></path>
|
||||
<div class="map-legend" aria-label="Fänge pro Land">
|
||||
<span class="swatch level-0" title="keine"></span>
|
||||
<span>1</span>
|
||||
@for (var level = 1; level <= Levels; level++)
|
||||
{
|
||||
<span class="swatch @($"level-{level}")"></span>
|
||||
}
|
||||
<span>@_max.ToString("N0")</span>
|
||||
</div>
|
||||
}
|
||||
@foreach (var marker in Map.Markers)
|
||||
{
|
||||
var count = Count(marker.Code);
|
||||
if (count > 0)
|
||||
</div>
|
||||
<div class="map-wrap">
|
||||
<svg class="world-map" viewBox="0 0 @Map.Width.ToString(CultureInfo.InvariantCulture) @Map.Height.ToString(CultureInfo.InvariantCulture)" role="img" aria-label="Weltkarte der Fänge nach Land">
|
||||
@foreach (var country in Map.Countries)
|
||||
{
|
||||
var x = marker.X.ToString(CultureInfo.InvariantCulture);
|
||||
var y = marker.Y.ToString(CultureInfo.InvariantCulture);
|
||||
<g class="@($"marker level-{Level(count)}")">
|
||||
<title>@Title(CountryNames.Display(marker.Code, marker.Name)!, count)</title>
|
||||
<circle class="hit" cx="@x" cy="@y" r="14" />
|
||||
<circle class="dot" cx="@x" cy="@y" r="6" />
|
||||
</g>
|
||||
var count = Count(country.Code);
|
||||
<path d="@country.Path" class="@($"level-{Level(count)}")"><title>@Title(CountryNames.Display(country.Code, country.Name)!, count)</title></path>
|
||||
}
|
||||
}
|
||||
</svg>
|
||||
<div class="map-legend">
|
||||
<span>0</span>
|
||||
@for (var level = 0; level <= Levels; level++)
|
||||
@foreach (var marker in Map.Markers)
|
||||
{
|
||||
var count = Count(marker.Code);
|
||||
if (count > 0)
|
||||
{
|
||||
var x = marker.X.ToString(CultureInfo.InvariantCulture);
|
||||
var y = marker.Y.ToString(CultureInfo.InvariantCulture);
|
||||
<g class="@($"marker level-{Level(count)}")">
|
||||
<title>@Title(CountryNames.Display(marker.Code, marker.Name)!, count)</title>
|
||||
<circle class="hit" cx="@x" cy="@y" r="14" />
|
||||
<circle class="dot" cx="@x" cy="@y" r="6" />
|
||||
</g>
|
||||
}
|
||||
}
|
||||
</svg>
|
||||
@if (_max == 0)
|
||||
{
|
||||
<span class="swatch @($"level-{level}")"></span>
|
||||
<p class="map-empty">Sobald Bots anklopfen, färbt sich die Karte nach Herkunftsland.</p>
|
||||
}
|
||||
<span>@_max.ToString("N0")</span>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
Reference in new issue
Block a user