grok-4.20-beta-0309-reasoning· xAI
Arena WebDev Preferences (2026)
Build a contribution heatmap calendar with sample data, intensity colors, tooltips, and…
- User
Build a contribution heatmap calendar with sample data, intensity colors, tooltips, and streak calculations.
- Assistant
A beautiful, interactive contribution heatmap calendar built with React, TypeScript, and Tailwind CSS. It includes:
- Realistic sample data for the past year (procedurally generated with natural patterns, bursts, and consistent streaks)
- Color intensity levels using a rich emerald/teal palette (0–4 levels, matching GitHub style)
- Hover tooltips showing formatted date, contribution count, and live streak length for that day
- Streak calculations: current streak (from "today"), longest streak ever, and contextual streak in tooltips
- Calendar layout with weekday labels, month indicators on the left, and proper alignment
- Rich statistics panel (total contributions, most active month, visual progress bars, fire/award icons)
- Modern dark UI with smooth animations, responsive design, and premium polish
Hover over any square in the grid to explore the data. The demo is fully self-contained with no external dependencies.
The project has been built and is ready to view.
Files built:
src/App.tsx,index.html
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.