Skip to content

Commit 15f3f24

Browse files
Merge pull request #514 from CodebilityDev/onboarding-roadmap/adjustmentsimargins
2 parents bd0e385 + 7e813c8 commit 15f3f24

3 files changed

Lines changed: 26 additions & 28 deletions

File tree

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
import { RefObject } from "react";
2-
32
import IsRoadMap from "./_components/RoadMap/IsRoadMap";
43
import RoadMapIntro from "./_components/RoadMap/RoadMapIntro";
5-
64
export default function RoadMapWrapper({
75
roadmapRef,
86
}: {
9-
roadmapRef: RefObject<HTMLDivElement | null>;
7+
roadmapRef: RefObject<HTMLDivElement>;
108
}) {
119
// ✅ Works because IsRoadMap is forwardRef
1210
return (
@@ -15,4 +13,4 @@ export default function RoadMapWrapper({
1513
<IsRoadMap ref={roadmapRef} />
1614
</>
1715
);
18-
}
16+
}

‎apps/codebility/app/auth/onboarding/_components/RoadMap/AnimatedRoadmapSvg.tsx‎

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,20 @@ gsap.registerPlugin(ScrollTrigger);
99

1010
const 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

‎apps/codebility/app/auth/onboarding/_components/RoadMap/RoadMapIntro.tsx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export default function RoadMapIntro() {
6363
</div>
6464

6565
{/* Main Content */}
66-
<div className="relative z-10 flex flex-col items-center justify-center py-20 text-center lg:min-h-screen lg:pb-32">
66+
<div className="relative z-10 flex flex-col items-center justify-center py-20 text-center lg:min-h-screen">
6767
{/* Background overlay for better text readability */}
6868
<div className="absolute inset-0 bg-gradient-to-b from-black/40 via-black/60 to-transparent"></div>
6969

@@ -74,13 +74,13 @@ export default function RoadMapIntro() {
7474
transition={{ duration: 0.8, ease: "easeOut" }}
7575
className="mb-8"
7676
>
77-
<div className="flex items-center justify-center space-x-3 mb-4">
77+
<div className="flex items-center justify-center space-x-3">
7878
<div className="h-8 w-8 rounded-lg bg-gradient-to-br from-teal-400 to-cyan-500 flex items-center justify-center">
7979
<span className="text-white font-bold text-sm">C</span>
8080
</div>
8181
<span className="text-teal-300 font-semibold text-lg">Codebility</span>
8282
</div>
83-
<span className="inline-block rounded-full bg-gradient-to-r from-teal-400/20 to-cyan-400/20 px-6 py-2 text-sm font-semibold text-teal-300 backdrop-blur-sm border border-teal-400/30">
83+
<span className="inline-block rounded-full bg-gradient-to-r from-teal-400/20 to-cyan-400/20 px-6 py-2 text-sm font-semibold text-teal-300 backdrop-blur-sm border border-teal-400/30 mt-6">
8484
Welcome to Your Journey
8585
</span>
8686
</motion.div>

0 commit comments

Comments
 (0)