Skip to content

armgit / mapcn

Public Imported from GitHub
0

Beautiful map components. 100% Free, Zero config, one command setup.

TypeScript

fix blocks styling

anmolb674010cfcee
diff --git a/AGENTS.md b/AGENTS.md
index b3644be..e9bbbbb 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -77,7 +77,7 @@ src/
- Color palette is monochrome (grayscale oklch)
- Radius: `0.625rem` base with computed variants
-- Animations: `fade-up`, `fade-in`, `scale-in` with staggered delays (100ms intervals)
+- Animations: `fade-up`, `fade-in`, `scale-in` with staggered delays (85ms intervals)
- Header: sticky, backdrop-blur, gradient bottom border
- Footer: gradient top border matching header
diff --git a/src/app/(main)/blocks/page.tsx b/src/app/(main)/blocks/page.tsx
index f002191..2d2aa5d 100644
--- a/src/app/(main)/blocks/page.tsx
+++ b/src/app/(main)/blocks/page.tsx
@@ -33,7 +33,7 @@ export default async function Page() {
id="blocks"
style={
{
- "--stagger": 4,
+ "--stagger": 3.5,
} as CSSProperties
}
>
diff --git a/src/registry/blocks/analytics-map/page.tsx b/src/registry/blocks/analytics-map/page.tsx
index 94d4fcc..7796374 100644
--- a/src/registry/blocks/analytics-map/page.tsx
+++ b/src/registry/blocks/analytics-map/page.tsx
@@ -40,7 +40,7 @@ export default function Page() {
minZoom={1.5}
blank
>
- <MapGeoJSON data={WORLD_GEOJSON} />
+ <MapGeoJSON data={WORLD_GEOJSON} linePaint={false} />
<MapControls className="bottom-2" />
{locations.map((location) => (
<MapMarker
@@ -48,9 +48,9 @@ export default function Page() {
longitude={location.lng}
latitude={location.lat}
>
- <MarkerContent>
+ <MarkerContent className="group">
<div
- className="bg-muted-foreground/80 rounded-full"
+ className="bg-muted-foreground/80 group-hover:bg-muted-foreground/90 rounded-full transition-[transform,background-color] group-hover:scale-110"
style={{
width: location.size * 3,
height: location.size * 3,
diff --git a/src/registry/blocks/choropleth/data.ts b/src/registry/blocks/choropleth/data.ts
index c8117d4..df583a5 100644
--- a/src/registry/blocks/choropleth/data.ts
+++ b/src/registry/blocks/choropleth/data.ts
@@ -1,16 +1,30 @@
/** Visitor counts keyed by the feature `NAME_LONG`. */
export const visitorsByCountry: Record<string, number> = {
+ // High
Germany: 15,
"United States": 14,
+ China: 10,
"United Kingdom": 12,
- India: 9,
+ India: 12,
+ Japan: 12,
+ Canada: 10,
+ // Mid
France: 9,
- Australia: 8,
+ Brazil: 9,
Netherlands: 8,
- Spain: 7,
+ "Russian Federation": 8,
+ Australia: 7,
+ Indonesia: 7,
Italy: 6,
Sweden: 6,
+ "South Africa": 6,
+ Mexico: 5,
+ // Low
Poland: 4,
+ Argentina: 4,
+ Spain: 3,
+ Egypt: 3,
+ Greece: 2,
};
export const MAX_VISITORS = 15;
@@ -44,12 +58,12 @@ export const mapConfig = {
colors: {
light: {
base: "#eef0f3",
- ramp: ["#d4d4d4", "#a3a3a3", "#525252", "#262626"],
+ ramp: ["#d4d4d4", "#9e9e9e", "#6b6b6b", "#3d3d3d"],
hover: "#0a0a0a",
},
dark: {
- base: "#2e2e2e",
- ramp: ["#404040", "#7d7d7d", "#b8b8b8", "#ededed"],
+ base: "#2a2a2a",
+ ramp: ["#3d3d3d", "#6b6b6b", "#9e9e9e", "#d4d4d4"],
hover: "#ffffff",
},
} satisfies Record<Theme, ChoroplethColors>,