diff --git a/frontend/src/Components/Features.jsx b/frontend/src/Components/Features.jsx index 4846db2..477d45e 100644 --- a/frontend/src/Components/Features.jsx +++ b/frontend/src/Components/Features.jsx @@ -9,49 +9,69 @@ import { MessageCircle, TimerReset, BarChart3, + ArrowRight, } from "lucide-react"; +import { useNavigate } from "react-router-dom"; export function FeaturesSection() { + const navigate = useNavigate(); + const features = [ { title: "Unified Developer Dashboard", description: "Track GitHub, LeetCode, Codeforces, and more from a single dashboard.", icon: , + route: "/dashboard", + isClickable: true, }, { title: "Smart Productivity Logs", description: "Log tasks, wins, blockers, and progress with daily summaries.", icon: , + route: "/dashboard", + isClickable: true, }, { title: "Live Pomodoro Timer", description: "Focus with an integrated Pomodoro and break cycle tracker.", icon: , + route: "/pomodoro", + isClickable: true, }, { title: "Auto GitHub Sync", description: "Sync contributions, commits, and streaks automatically.", icon: , + route: "/profile", + isClickable: true, }, { title: "DSA Progress Tracking", description: "Keep tabs on your problem-solving journey across platforms.", icon: , + route: "/profile", + isClickable: true, }, { title: "Interactive Visualizations", description: "Understand your productivity via dynamic graphs and charts.", icon: , + route: "/dashboard", + isClickable: true, }, { title: "Community Collaboration", description: "Connect, share logs, and grow together with other developers.", icon: , + route: "/contributors", + isClickable: true, }, { title: "Time Management Tools", description: "Track how you spend your dev hours with real insights.", icon: , + route: "/dashboard", + isClickable: true, }, ]; @@ -59,7 +79,7 @@ export function FeaturesSection() {
{features.map((feature, index) => ( - + ))}
@@ -71,18 +91,28 @@ const Feature = ({ description, icon, index, + route, + isClickable, + navigate, }) => { + const handleClick = () => { + if (isClickable && route) { + navigate(route); + } + }; + return (
- {/* Absolute positioned overlay for a subtle highlight effect */}
@@ -97,6 +127,12 @@ const Feature = ({

{description}

+ + {isClickable && ( +
+ +
+ )}
); }; \ No newline at end of file