Skip to content

Commit 1491518

Browse files
committed
feat: Add font to map
1 parent c1a8b93 commit 1491518

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/app/components/PropertyMap.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ const PropertyMap: React.FC<PropertyMapProps> = ({
304304

305305
// map load
306306
return (
307-
<div className="relative h-full w-full">
307+
<div className="customized-map relative h-full w-full">
308308
<Map
309309
mapboxAccessToken={mapboxAccessToken}
310310
initialViewState={{

src/app/globals.css

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
url('/fonts/hkgrotesk-bold-webfont.woff') format('woff');
1111
font-weight: bold;
1212
font-style: normal;
13-
1413
}
1514

1615
@font-face {
@@ -19,7 +18,6 @@
1918
url('/fonts/hkgrotesk-extrabold-webfont.woff') format('woff');
2019
font-weight: 800;
2120
font-style: normal;
22-
2321
}
2422

2523
@font-face {
@@ -28,7 +26,6 @@
2826
url('/fonts/hkgrotesk-regular-webfont.woff') format('woff');
2927
font-weight: normal;
3028
font-style: normal;
31-
3229
}
3330

3431
:root {
@@ -47,10 +44,14 @@
4744

4845
@layer base {
4946
html {
50-
font-family: "HK Grotesk", system-ui, sans-serif;
47+
@apply font-body;
5148
}
5249
}
5350

51+
.customized-map * {
52+
@apply font-body;
53+
}
54+
5455
.mapboxgl-ctrl-legend {
5556
@apply p-5 w-full;
5657
padding: 2px;

0 commit comments

Comments
 (0)