'use client'; import { motion } from 'framer-motion'; interface TrenchLayingAnimationProps { className?: string; invert?: boolean; } /** * TrenchLayingAnimation * * Visualizes open trench construction (Offene Bauweise / Graben). * 1. A trench is cut into the earth line. * 2. A thick orange conduit pipe (Leerrohr) is laid into the trench. * 3. The trench is backfilled with earth. * * This directly ties to E-TIB's core services, showing the process * of laying cables rather than just abstract geometry. */ export function TrenchLayingAnimation({ className = '', invert = false }: TrenchLayingAnimationProps) { const color = invert ? '#0a3d28' : '#0e7a5c'; const earthColor = invert ? 'rgba(10, 61, 40, 0.4)' : 'rgba(14, 122, 92, 0.4)'; const pipeColor = '#ff6b00'; // The trench profile: flat, 45-deg drop, flat bottom, 45-deg rise, flat const trenchPath = "M 50 100 L 300 100 L 350 200 L 850 200 L 900 100 L 1150 100"; // The dug out area (used for the backfill animation) const trenchFill = "M 300 100 L 350 200 L 850 200 L 900 100 Z"; // Length of the polyline is approx 1300 const pathLen = 1300; return ( ); }