diff --git a/src/components/Visualisation/HeroAlgorithmMockup.jsx b/src/components/Visualisation/HeroAlgorithmMockup.jsx new file mode 100644 index 0000000..60e79d4 --- /dev/null +++ b/src/components/Visualisation/HeroAlgorithmMockup.jsx @@ -0,0 +1,52 @@ +export default function HeroAlgorithmMockup() { + const values = [ + 12, 21, 43, 23, 17, 32, 29, 16, + 45, 5, 18, 22, 28, 35, 42, 45, + 19, 21, 48, 39, 37, 24, 29, 26, + ]; + + // Calculate SVG path for line graph + const maxValue = Math.max(...values); + const barWidth = 100 / values.length; + const points = values.map((value, index) => { + const x = (index + 0.5) * barWidth; + const y = 100 - (value / maxValue) * 65; + return `${x},${y}`; + }).join(" "); + + return ( +
- Understand data structures and algorithms through interactive visualizations - with beautiful animations and step-by-step execution -
-+ Understand data structures and algorithms through interactive visualizations + with beautiful animations and step-by-step execution +
+