Skip to content

Commit ebf9ab8

Browse files
committed
added flag
1 parent 4a824de commit ebf9ab8

File tree

1 file changed

+18
-9
lines changed

1 file changed

+18
-9
lines changed

src/pages/Homepage.jsx

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,54 +12,61 @@ const sections = [
1212
phase: "Phase 1 (MVP)",
1313
img: "https://tamimehsan.github.io/AlgorithmVisualizer/images/sort.png?height=200&width=300",
1414
link: "/sorting",
15+
flag: false
1516
},
1617
{
1718
title: "Searching Algorithms",
1819
description:
1920
"Understand linear and binary search methods through live visualization.",
2021
phase: "Phase 1 (MVP)",
2122
img: "",
22-
link: "/searching"
23+
link: "/searching",
24+
flag: true
2325
},
2426
{
2527
title: "Pathfinding Algorithms",
2628
description:
2729
"Watch how A*, Dijkstra and BFS explore grids to find the optimal path.",
2830
phase: "Phase 1 (MVP)",
2931
img: "",
30-
link: "/pathfinding"
32+
link: "/pathfinding",
33+
flag: true
3134
},
3235
{
3336
title: "Graph Algorithms",
3437
description:
3538
"Explore BFS, DFS, Kruskal’s, Prim’s, and more — all brought to life interactively.",
3639
phase: "Phase 2",
3740
img: "",
38-
link: "/graphs"
41+
link: "/graphs",
42+
flag: true
3943
},
4044
{
4145
title: "Recursion & Backtracking",
4246
description:
4347
"Visualize recursive calls and backtracking patterns like N-Queens or Sudoku.",
4448
phase: "Phase 2",
4549
img: "",
46-
link: "/recursion"
50+
link: "/recursion",
51+
flag: true
4752
},
4853
{
4954
title: "Data Structures Visualization",
5055
description:
5156
"Interactively understand stacks, queues, linked lists, trees, and heaps.",
5257
phase: "Phase 2",
5358
img: "",
54-
link: "/data-structures"
59+
link: "/data-structures",
60+
flag: true
5561
},
5662
{
5763
title: "Dynamic Programming",
5864
description:
5965
"Step through state transitions and table updates to grasp DP intuitively.",
6066
phase: "Phase 3",
6167
img: "",
62-
link: "/dynamic-programming"
68+
link: "/dynamic-programming",
69+
flag: true
6370
},
6471
];
6572

@@ -131,9 +138,11 @@ const Homepage = () => {
131138
</div>
132139

133140
{/* SaaS-style “Coming Soon” Overlay */}
134-
<div className="absolute inset-0 flex items-center justify-center text-white text-lg font-semibold bg-gradient-to-br from-indigo-700/70 to-purple-900/70 backdrop-blur-md opacity-0 group-hover:opacity-100 transition-opacity duration-300">
135-
Coming Soon 🚀
136-
</div>
141+
{section.flag && (
142+
<div className="absolute inset-0 flex items-center justify-center text-white text-lg font-semibold bg-gradient-to-br from-indigo-700/70 to-purple-900/70 backdrop-blur-md opacity-0 group-hover:opacity-100 transition-opacity duration-300">
143+
Coming Soon 🚀
144+
</div>
145+
)}
137146
</div>
138147
))}
139148
</section>

0 commit comments

Comments
 (0)