@@ -9,20 +9,20 @@ gsap.registerPlugin(ScrollTrigger);
99
1010const phases = [
1111 {
12- cx : 220 ,
13- cy : 520 ,
12+ cx : 540 ,
13+ cy : 530 ,
1414 color : "#9333ea" ,
15- textX : 40 ,
15+ textX : 280 ,
1616 textY : 340 ,
1717 title : "Phase 1: Intern (0-100 pts)" ,
1818 steps : [ "Learn The Basics" , "Hands-On Practice" , "Version Control" ] ,
1919 icon : < Lightbulb className = "h-6 w-6 text-white" strokeWidth = { 1.5 } /> ,
2020 } ,
2121 {
22- cx : 700 , // nudged closer to road curve
22+ cx : 960 ,
2323 cy : 430 ,
2424 color : "#db2777" ,
25- textX : 750 ,
25+ textX : 1010 ,
2626 textY : 480 ,
2727 title : "Phase 2: Codev (100-200 pts)" ,
2828 steps : [
@@ -34,11 +34,11 @@ const phases = [
3434 icon : < BarChart3 className = "h-6 w-6 text-white" strokeWidth = { 1.5 } /> ,
3535 } ,
3636 {
37- cx : 1200 , // shifted onto road curve
38- cy : 420 ,
37+ cx : 1550 ,
38+ cy : 360 ,
3939 color : "#f59e0b" ,
40- textX : 980 ,
41- textY : 250 ,
40+ textX : 1280 ,
41+ textY : 220 ,
4242 title : "Phase 3: Mentor (200+ pts)" ,
4343 steps : [ "Specialize" , "Advanced Concepts" , "Collaborate" ] ,
4444 icon : < Code2 className = "h-6 w-6 text-white" strokeWidth = { 1.5 } /> ,
@@ -96,16 +96,16 @@ export default function AnimatedRoadmapSvg() {
9696 ref = { svgRef }
9797 id = "roadmap-svg"
9898 xmlns = "http://www.w3.org/2000/svg"
99- viewBox = "0 0 1450 700"
99+ viewBox = "0 0 1900 700"
100100 className = "hidden h-auto w-full lg:block"
101101 >
102- { /* Road Base (smooth S-shape, extended to end) */ }
102+ { /* Road Base (smooth S-shape, extended to end with more spacing ) */ }
103103 < path
104104 id = "main-path"
105- d = "M 100 550
106- C 300 450, 400 650, 600 500
107- S 900 300, 1100 400
108- S 1250 250, 1400 200 "
105+ d = "M 360 550
106+ C 560 450, 660 650, 860 500
107+ S 1160 300, 1360 400
108+ S 1600 230, 1650 180 "
109109 stroke = "#272728"
110110 strokeWidth = "28"
111111 fill = "none"
@@ -115,10 +115,10 @@ export default function AnimatedRoadmapSvg() {
115115 { /* Yellow center line (animated, goes full length) */ }
116116 < path
117117 id = "center-line"
118- d = "M 100 550
119- C 300 450, 400 650, 600 500
120- S 900 300, 1100 400
121- S 1250 250, 1400 200 "
118+ d = "M 360 550
119+ C 560 450, 660 650, 860 500
120+ S 1160 300, 1360 400
121+ S 1600 230, 1650 180 "
122122 stroke = "#fde047"
123123 strokeWidth = "4"
124124 fill = "none"
@@ -127,8 +127,8 @@ export default function AnimatedRoadmapSvg() {
127127 />
128128
129129 { /* Start marker */ }
130- < circle cx = "100 " cy = "550" r = "18" fill = "#22c55e" stroke = "#fff" strokeWidth = "3" />
131- < text x = "75 " y = "590" fontSize = "12" fill = "#374151" fontWeight = "bold" >
130+ < circle cx = "360 " cy = "550" r = "18" fill = "#22c55e" stroke = "#fff" strokeWidth = "3" />
131+ < text x = "335 " y = "590" fontSize = "12" fill = "#374151" fontWeight = "bold" >
132132 Start
133133 </ text >
134134
0 commit comments