diff --git a/src/components/Connection.tsx b/src/components/Connection.tsx index ad58365..4a64a65 100644 --- a/src/components/Connection.tsx +++ b/src/components/Connection.tsx @@ -7,33 +7,18 @@ interface ConnectionProps { toColor?: string; } -export const Connection: React.FC = ({ from, to, fromColor = '#a855f7', toColor = '#a855f7' }) => { - // Create a safe gradient ID by removing special characters - const gradientId = `gradient-${fromColor.replace(/[^a-zA-Z0-9]/g, '')}-${toColor.replace(/[^a-zA-Z0-9]/g, '')}`; - +export const Connection: React.FC = ({ from, to, fromColor, toColor }) => { return ( - - - - - - - - - - - {/* Glow effect */} {/* Main line */} @@ -42,7 +27,7 @@ export const Connection: React.FC = ({ from, to, fromColor = '# y1={from.y} x2={to.x} y2={to.y} - stroke={`url(#${gradientId})`} + stroke="#a855f7" strokeWidth="1" opacity="0.7" className="transition-all duration-300"