Skip to content

Commit 179cf19

Browse files
authored
make city clickable (#71)
Signed-off-by: kerthcet <kerthcet@gmail.com>
1 parent 2817f7a commit 179cf19

3 files changed

Lines changed: 67 additions & 7 deletions

File tree

‎assets/scss/common/_custom.scss‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -938,6 +938,17 @@ $map-pulse-offsets:
938938
transform: translate(-0.2em, -1em);
939939
}
940940

941+
// While its card is open — from the name or from the dot — the name takes the brand
942+
// colour, so it reads as the thing being pointed at rather than a caption beside it.
943+
// This copy is laid glyph-for-glyph over the svg label, so colouring it recolours the
944+
// name without touching the svg; `$primary` rather than the lighter `$map-mark`
945+
// because this is text and has to keep its contrast.
946+
.worldmap-hit:hover .worldmap-hit-label,
947+
.worldmap-hit:focus-within .worldmap-hit-label {
948+
color: $primary;
949+
cursor: pointer;
950+
}
951+
941952
.worldmap-hit-label-end {
942953
transform: translate(calc(-100% + 0.2em), -1em);
943954
}

‎data/contributors.json‎

Lines changed: 47 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"generated": "2026-11-15",
33
"total": 100,
4-
"located": 59,
4+
"located": 61,
55
"places": [
66
{
77
"label": "Shanghai, China",
@@ -632,6 +632,26 @@
632632
],
633633
"more": 0
634634
},
635+
{
636+
"label": "Sacramento, USA",
637+
"country": "United States",
638+
"lat": 38.58,
639+
"lng": -121.49,
640+
"short": "Sacramento",
641+
"offset": {
642+
"dx": 11,
643+
"dy": 4,
644+
"anchor": "start"
645+
},
646+
"count": 1,
647+
"people": [
648+
{
649+
"login": "OscarDoh",
650+
"avatar": "https://avatars.githubusercontent.com/u/125147287?v=4&s=64"
651+
}
652+
],
653+
"more": 0
654+
},
635655
{
636656
"label": "Bengaluru, India",
637657
"country": "India",
@@ -672,6 +692,26 @@
672692
],
673693
"more": 0
674694
},
695+
{
696+
"label": "Toronto, Canada",
697+
"country": "Canada",
698+
"lat": 43.65,
699+
"lng": -79.38,
700+
"short": "Toronto",
701+
"offset": {
702+
"dx": 11,
703+
"dy": 4,
704+
"anchor": "start"
705+
},
706+
"count": 1,
707+
"people": [
708+
{
709+
"login": "SammyTourani",
710+
"avatar": "https://avatars.githubusercontent.com/u/179739256?v=4&s=64"
711+
}
712+
],
713+
"more": 0
714+
},
675715
{
676716
"label": "Chicago, USA",
677717
"country": "United States",
@@ -873,8 +913,8 @@
873913
"more": 0
874914
}
875915
],
876-
"cities": 30,
877-
"countryCount": 24,
916+
"cities": 32,
917+
"countryCount": 25,
878918
"regions": [
879919
{
880920
"name": "Asia",
@@ -888,8 +928,8 @@
888928
},
889929
{
890930
"name": "North America",
891-
"count": 12,
892-
"percent": 12
931+
"count": 14,
932+
"percent": 14
893933
},
894934
{
895935
"name": "Oceania",
@@ -908,9 +948,9 @@
908948
},
909949
{
910950
"name": "Unlisted",
911-
"count": 41,
951+
"count": 39,
912952
"note": "Contributors whose GitHub profile does not say where they are.",
913-
"percent": 41
953+
"percent": 39
914954
}
915955
]
916956
}

‎tools/locations.json‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,12 @@
423423
"lat": 33.75,
424424
"lng": -84.39
425425
},
426+
"sacramento": {
427+
"label": "Sacramento, USA",
428+
"country": "United States",
429+
"lat": 38.58,
430+
"lng": -121.49
431+
},
426432
"tampa": {
427433
"label": "Tampa, USA",
428434
"country": "United States",
@@ -2044,6 +2050,8 @@
20442050
"mountain view, ca": "mountain view",
20452051
"san jose, ca": "san jose",
20462052
"los angeles, ca": "los angeles",
2053+
"sacramento, ca": "sacramento",
2054+
"sacramento, california": "sacramento",
20472055
"seattle, wa": "seattle",
20482056
"denver, co": "denver",
20492057
"austin, tx": "austin",
@@ -2065,6 +2073,7 @@
20652073
"tampa, florida": "tampa",
20662074
"toronto, canada": "toronto",
20672075
"toronto, on": "toronto",
2076+
"toronto, ontario": "toronto",
20682077
"montreal, canada": "montreal",
20692078
"vancouver, canada": "vancouver",
20702079
"vancouver, bc": "vancouver",

0 commit comments

Comments
 (0)