5452da67251ecdf6b89bda7a76ba53cd59124c82
Enhanced the visual comparison chart for better readability: 📊 Logarithmic Scale: - Use log10 scale instead of linear for better visualization - Handles units with vastly different magnitudes (mm vs km) - Minimum bar width of 5% for visibility - Normalizes across the full range (minLog to maxLog) - Prevents tiny bars that are hard to see ✨ Visual Improvements: - Taller bars (h-3 instead of h-2) for better visibility - Larger, bolder value display (text-lg font-bold) - Better spacing (space-y-1.5) - Percentage indicator on each bar - White text on bars >50% filled - Shadow on bars for depth - Improved typography hierarchy - Better gap spacing between label and value 🎨 Layout Enhancements: - Unit name on left, value on right - Value with unit abbreviation in muted color - Flex layout with proper wrapping - Tabular numbers for alignment - Relative positioning for percentage labels This makes the chart view much more useful for comparing units with different orders of magnitude (e.g., nanometers to kilometers). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Unit Converter
A spectacular, innovative unit conversion application built with modern web technologies to provide the best user experience for converting between various measurement units.
Tech Stack
- Next.js 16 - React framework with App Router and static export
- TypeScript - Type-safe development
- Tailwind CSS 4 - Modern utility-first CSS framework
- convert-units - Comprehensive unit conversion library
Features
Supported Units
23 measurement categories with 187 individual units:
- Angle, Apparent Power, Area, Current, Digital
- Each, Energy, Frequency, Illuminance, Length
- Mass, Pace, Parts Per, Power, Pressure
- Reactive Energy, Reactive Power, Speed, Temperature
- Time, Voltage, Volume, Volume Flow Rate
Innovative UX Features
- Real-time bidirectional conversion
- Smart context-aware interface with fuzzy search
- Visual comparison with color-coded categories
- Keyboard shortcuts for power users
- Mobile-first responsive design
- Conversion history with localStorage
- Dark mode support
Getting Started
Prerequisites
- Node.js 18+ or 20+
- pnpm (recommended) or npm
Installation
# Install dependencies
pnpm install
# Run development server
pnpm dev
# Build for production
pnpm build
# Start production server
pnpm start
Open http://localhost:3000 to see the app.
Project Structure
units-ui/
├── app/ # Next.js App Router
│ ├── layout.tsx # Root layout
│ ├── page.tsx # Home page
│ └── globals.css # Global styles
├── components/ # React components (coming soon)
├── lib/ # Utility functions (coming soon)
├── public/ # Static assets
└── IMPLEMENTATION_PLAN.md # Detailed implementation plan
Development
See IMPLEMENTATION_PLAN.md for the complete development roadmap.
License
MIT
Built with Next.js 16, Tailwind CSS 4, and convert-units
Description
Languages
TypeScript
90.3%
CSS
8.2%
Dockerfile
1.4%