From 3550dc2242c16ea6efcad5bedfbb235671cd89fb Mon Sep 17 00:00:00 2001 From: kerthcet Date: Sun, 15 Nov 2026 18:31:11 +0000 Subject: [PATCH] make city clickable Signed-off-by: kerthcet --- assets/scss/common/_custom.scss | 11 +++++++ data/contributors.json | 54 ++++++++++++++++++++++++++++----- tools/locations.json | 9 ++++++ 3 files changed, 67 insertions(+), 7 deletions(-) diff --git a/assets/scss/common/_custom.scss b/assets/scss/common/_custom.scss index 4e34e41..96ca8ae 100644 --- a/assets/scss/common/_custom.scss +++ b/assets/scss/common/_custom.scss @@ -938,6 +938,17 @@ $map-pulse-offsets: transform: translate(-0.2em, -1em); } +// While its card is open — from the name or from the dot — the name takes the brand +// colour, so it reads as the thing being pointed at rather than a caption beside it. +// This copy is laid glyph-for-glyph over the svg label, so colouring it recolours the +// name without touching the svg; `$primary` rather than the lighter `$map-mark` +// because this is text and has to keep its contrast. +.worldmap-hit:hover .worldmap-hit-label, +.worldmap-hit:focus-within .worldmap-hit-label { + color: $primary; + cursor: pointer; +} + .worldmap-hit-label-end { transform: translate(calc(-100% + 0.2em), -1em); } diff --git a/data/contributors.json b/data/contributors.json index a0dd08c..21be092 100644 --- a/data/contributors.json +++ b/data/contributors.json @@ -1,7 +1,7 @@ { "generated": "2026-11-15", "total": 100, - "located": 59, + "located": 61, "places": [ { "label": "Shanghai, China", @@ -632,6 +632,26 @@ ], "more": 0 }, + { + "label": "Sacramento, USA", + "country": "United States", + "lat": 38.58, + "lng": -121.49, + "short": "Sacramento", + "offset": { + "dx": 11, + "dy": 4, + "anchor": "start" + }, + "count": 1, + "people": [ + { + "login": "OscarDoh", + "avatar": "https://avatars.githubusercontent.com/u/125147287?v=4&s=64" + } + ], + "more": 0 + }, { "label": "Bengaluru, India", "country": "India", @@ -672,6 +692,26 @@ ], "more": 0 }, + { + "label": "Toronto, Canada", + "country": "Canada", + "lat": 43.65, + "lng": -79.38, + "short": "Toronto", + "offset": { + "dx": 11, + "dy": 4, + "anchor": "start" + }, + "count": 1, + "people": [ + { + "login": "SammyTourani", + "avatar": "https://avatars.githubusercontent.com/u/179739256?v=4&s=64" + } + ], + "more": 0 + }, { "label": "Chicago, USA", "country": "United States", @@ -873,8 +913,8 @@ "more": 0 } ], - "cities": 30, - "countryCount": 24, + "cities": 32, + "countryCount": 25, "regions": [ { "name": "Asia", @@ -888,8 +928,8 @@ }, { "name": "North America", - "count": 12, - "percent": 12 + "count": 14, + "percent": 14 }, { "name": "Oceania", @@ -908,9 +948,9 @@ }, { "name": "Unlisted", - "count": 41, + "count": 39, "note": "Contributors whose GitHub profile does not say where they are.", - "percent": 41 + "percent": 39 } ] } diff --git a/tools/locations.json b/tools/locations.json index 5e00552..7c1324e 100644 --- a/tools/locations.json +++ b/tools/locations.json @@ -423,6 +423,12 @@ "lat": 33.75, "lng": -84.39 }, + "sacramento": { + "label": "Sacramento, USA", + "country": "United States", + "lat": 38.58, + "lng": -121.49 + }, "tampa": { "label": "Tampa, USA", "country": "United States", @@ -2044,6 +2050,8 @@ "mountain view, ca": "mountain view", "san jose, ca": "san jose", "los angeles, ca": "los angeles", + "sacramento, ca": "sacramento", + "sacramento, california": "sacramento", "seattle, wa": "seattle", "denver, co": "denver", "austin, tx": "austin", @@ -2065,6 +2073,7 @@ "tampa, florida": "tampa", "toronto, canada": "toronto", "toronto, on": "toronto", + "toronto, ontario": "toronto", "montreal, canada": "montreal", "vancouver, canada": "vancouver", "vancouver, bc": "vancouver",