Skip to content

Commit 7a2bde7

Browse files
houssembaltiiclaude
andcommitted
feat: redesign map popup to align with project design system
Replaces hardcoded hex values with design tokens, fixes blurry text by removing backdrop-blur, adds visual hierarchy to the city/country header, and aligns typography and spacing with the site's EventCard patterns. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 4111a90 commit 7a2bde7

1 file changed

Lines changed: 12 additions & 9 deletions

File tree

src/components/GlobalMap/GlobalMap.tsx

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,15 @@ export function GlobalMap({
7676
latitude={selectedCity.coordinates[1]}
7777
onClose={() => setSelectedCity(null)}
7878
closeButton
79-
className="z-20 min-w-[200px] border-white/10 bg-black/80 bg-none backdrop-blur-md"
79+
className="z-20 min-w-[200px] border-white/10 bg-black/90"
8080
>
8181
<div className="flex flex-col gap-2">
8282
<div className="border-b border-white/10 pb-2">
83-
<h3 className="font-bold text-white">
84-
{selectedCity.cityName}, {selectedCity.countryName}
83+
<p className="font-heading text-2xs uppercase tracking-widest text-white/60">
84+
{selectedCity.countryName}
85+
</p>
86+
<h3 className="font-heading font-medium uppercase tracking-widest text-white">
87+
{selectedCity.cityName}
8588
</h3>
8689
</div>
8790
<div className="flex max-h-[160px] flex-col gap-1 overflow-y-auto pr-1">
@@ -99,19 +102,19 @@ export function GlobalMap({
99102
<div
100103
className={cn(
101104
"h-1.5 w-1.5 shrink-0 rounded-full",
102-
isMeetup ? "bg-white/60" : "bg-[#EBFF11]",
105+
isMeetup ? "bg-white/60" : "bg-primary",
103106
)}
104107
/>
105-
<span className="truncate text-sm font-medium text-white group-hover:text-[#EBFF11]">
108+
<span className="truncate font-heading font-medium text-white transition group-hover:text-primary">
106109
{event.name}
107110
</span>
108111
{!isPast && (
109-
<span className="shrink-0 rounded-full bg-[#EBFF11] px-1.5 py-0.5 text-[10px] font-semibold text-black">
110-
Upcoming
112+
<span className="shrink-0 font-heading text-2xs uppercase tracking-widest text-primary">
113+
Soon
111114
</span>
112115
)}
113-
<span className="ml-auto shrink-0 text-[10px] text-white/40">
114-
{dayjs(event.date).format("DD MMM YYYY")}
116+
<span className="ml-auto shrink-0 font-heading text-xs text-white/40">
117+
{dayjs(event.date).format("DD MMM YY")}
115118
</span>
116119
</a>
117120
);

0 commit comments

Comments
 (0)