From 43d99b4f412ec29e7ba69618652b28f3332a00f9 Mon Sep 17 00:00:00 2001
From: Priyaranjan <230701248@rajalakshmi.edu.in>
Date: Tue, 12 Aug 2025 20:55:09 +0530
Subject: [PATCH] projectpriyo
---
frontend/src/App.jsx | 4 +-
frontend/src/ProjectCard.jsx | 120 ++++++++++++++++++++++++-----------
2 files changed, 86 insertions(+), 38 deletions(-)
diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx
index 3c94462..c3db50d 100644
--- a/frontend/src/App.jsx
+++ b/frontend/src/App.jsx
@@ -17,7 +17,7 @@ import Notification from "./Notification";
import ProjectDashboard from "./ProjectDashboard/ProjectDashboard";
import TasksLead from "./ProjectDashboard/LeadTasksPage";
import TasksMember from "./ProjectDashboard/MemberTaskPage";
-
+import DocumentationPage from "./ProjectDashboard/DocumentationPage"; // ✅ Documentation page
function App() {
return (
@@ -40,7 +40,7 @@ function App() {
} />
} />
} />
-
+ } /> {/* ✅ Documentation page route */}
diff --git a/frontend/src/ProjectCard.jsx b/frontend/src/ProjectCard.jsx
index 4f18274..96a241e 100644
--- a/frontend/src/ProjectCard.jsx
+++ b/frontend/src/ProjectCard.jsx
@@ -753,42 +753,90 @@ export default function ProjectCard() {
{activeTab === "Projects" && (
- <>
-
PROJECTS
-
- Manage and track your development projects
-
-
- {projects.map((project) => (
-
(e.currentTarget.style.boxShadow = "0 0 10px #a259ff")}
- onMouseLeave={(e) => (e.currentTarget.style.boxShadow = "none")}
- >
-
- {project.title}
-
-
- {project.description.substring(0, 100)}...
-
-
-
Status: {project.status}
-
Updated: {project.updated}
-
-
- ))}
-
- >
- )}
+ <>
+
+ PROJECTS
+
+
+ Manage and track your development projects
+
+
+ {projects.map((project) => (
+
(e.currentTarget.style.boxShadow = "0 0 10px #a259ff")}
+ onMouseLeave={(e) => (e.currentTarget.style.boxShadow = "none")}
+ >
+
+ {project.title}
+
+
+ {project.description.substring(0, 100)}...
+
+
+
Status: {project.status}
+
Updated: {project.updated}
+
+
+ {/* ✅ Show Add to Profile Button if Completed */}
+ {project.status === "Completed" && !project.addedToProfile && (
+
+ )}
+
+ {/* ✅ Show Disabled Button after added */}
+ {project.status === "Completed" && project.addedToProfile && (
+
+ )}
+
+ ))}
+
+ >
+)}
+
{activeTab === "Host a project" && (