A React web application for converting area measurements into "Saarlands" - the ultimate German unit of comparison!
- Metric Units: mm², cm², m², km², hectares, football fields, Saarland
- Imperial Units: square inches, square feet, square yards, acres, square miles
- Real-time Conversion: Instant calculation to Saarland units
- Responsive Design: Works on desktop, tablet, and mobile devices
- Fractions: Precisely displays fractions of Saarlands with clipping mask
- Dual Visualization: Toggle between Saarland shapes and football fields
- Smooth Animations: Animated appearance of shapes with staggered timing
- GeoJSON Based: Uses real geographic data for authentic Saarland shape
Clone the repository and install dependencies:
# With pnpm (recommended)
pnpm install
# Or with npm
npm installStart the development server:
pnpm startThe app will automatically open at http://localhost:3000.
Create a production-ready build:
pnpm buildOptimized files will be in the build/ folder.
Area of Saarland: 2,569.69 km²
(Source: Statistical Office of Saarland)
GeoJSON Data: Saarland shape coordinates from deutschlandGeoJSON
- React 18 with TypeScript
- Create React App as build tool
- Tailwind CSS for styling
- pnpm as package manager
- GeoJSON for authentic geographic shapes
SaarVerter/
├── public/
│ └── index.html
├── src/
│ ├── components/
│ │ ├── AreaConverter.tsx # Main component
│ │ ├── SaarlandIcon.tsx # Saarland shape (from GeoJSON)
│ │ └── FussballfeldIcon.tsx # Football field visualization
│ ├── data/
│ │ └── saarland-coords.ts # GeoJSON coordinates
│ ├── App.tsx # Root component
│ ├── index.tsx # Entry point
│ └── index.css # Global styles + animations
├── package.json
└── tsconfig.json
- Choose between Metric or Imperial units
- Enter an area value (max 15 digits)
- Select the appropriate unit from the dropdown
- The result in "Saarlands" is automatically calculated and displayed
- Click on the label to toggle between Saarlands and football fields
- Saarland Mode: Shows actual Saarland shapes based on GeoJSON data
- Football Field Mode: Shows football fields (1 Saarland ≈ 359,875 fields)
- Partial units are displayed with a clipping mask from bottom to top
- Maximum display: 30 shapes on desktop, 20 on mobile
- Fully responsive design with Tailwind breakpoints
- Touch-optimized interface
- Adaptive font sizes and spacing
- Vertical layout on mobile, horizontal split on desktop
Made with ❤️ in Mecklenburg-Vorpommern