<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Earthquake Risk…
- User
Assistant
I'll create a modern React + Vite + Tailwind version of the Earthquake Risk Monitor with a sleek dashboard interface, real USGS data, and interactive visualizations.
Now I'll update the index.html title and build the dashboard. Let me create a comprehensive earthquake risk monitor with multiple components.
Now let me create the data utilities, types, and components.
Now let me create the main components: the world map visualization, region list, and stats.
Now let me create a magnitudes-over-time chart and the main App component.
Let me fix the unused variable in the MagnitudeTimeline:
Now let me create the main App component that ties everything together.
Now let me build the project to verify everything compiles.
The build succeeded. Here's a summary of what I built:
A modern, production-quality earthquake risk dashboard that turns the original prototype into a full real-time monitoring tool.
Architecture & data flow:
earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_month.geojsonKey components built:
Header – sticky top bar with animated radar sweep, live status indicator, refresh button, error bannerWorldMap – equirectangular SVG world map with hand-drawn continent outlines, colored grid cells colored by risk level, white dots for recent quakes (sized by magnitude), interactive selection, legendStatCard – 5 headline metrics (total, max M, avg M, danger zones, active regions)MagnitudeTimeline – 30-day daily frequency SVG area chartRegionList – top 12 regions ranked by risk/count/mag with sort tabs, color-coded bars, animated entriesRegionDetail – selected region with magnitude-distribution histogram and strongest eventsRecentQuakes – latest 30 events with magnitude color-coding, tsunami flag, "x ago" formattingLoadingState – spinner for the initial fetchDesign language: dark slate-950 background, mono accents for "operations console" feel, cyan/red/amber/emerald color system, sticky header, responsive grid that collapses to single column on mobile, custom scrollbar, fade-in-up animations on lists.
Files built: index.html, src/index.css, src/types.ts, src/utils/geo.ts, src/components/WorldMap.tsx, src/components/StatCard.tsx, src/components/RegionList.tsx, src/components/RecentQuakes.tsx, src/components/RegionDetail.tsx, src/components/Header.tsx, src/components/MagnitudeTimeline.tsx, src/components/LoadingState.tsx, src/App.tsx