@@ -329,7 +429,10 @@ export default function KYLHomePage() {
{/* Track Section */}
-
+
{/* Narrow text container */}
@@ -392,46 +495,68 @@ export default function KYLHomePage() {
icon: "☀️",
},
].map((item, index) => (
-
- {
- if (item.link) {
- handleNavigate(item.link, item.title);
- }
- }}
- className="cursor-pointer bg-white rounded-2xl shadow-md p-6 sm:p-8 h-full min-h-[220px] flex flex-col justify-start transform transition-all duration-300 hover:shadow-xl hover:-translate-y-1 hover:scale-[1.02]"
- >
+ {
+ if (item.link) {
+ handleNavigate(item.link, item.title);
+ }
+ }}
+ className={`w-full h-full text-left rounded-2xl border transition-all duration-300 transform focus:outline-none focus-visible:ring-2 focus-visible:ring-purple-500 ${
+ item.link
+ ? "bg-white border-gray-100 shadow-md hover:shadow-xl hover:-translate-y-1 hover:scale-[1.02]"
+ : "bg-gray-50 border-dashed border-gray-300 text-gray-400 cursor-default"
+ }`}
+ >
+
-
+
{item.icon}
-
-
+
+
{item.title}
-
+
{item.description}
{item.link ? (
-
+
Learn More →
) : (
-
- Coming soon...
+
+ Coming soon
)}
-
+
))}
-
-
-
+
+
+
);
}
diff --git a/src/pages/RWBDashboard.jsx b/src/pages/RWBDashboard.jsx
index c7fc115c..39b7d356 100644
--- a/src/pages/RWBDashboard.jsx
+++ b/src/pages/RWBDashboard.jsx
@@ -92,11 +92,11 @@ const RWBDashboard =()=>{
}, [location.search]);
const handleNavigate =()=>{
- if(!organization && !project) return;
+ if (!project?.value) return;
const params = new URLSearchParams(location.search);
params.set("type", "project");
params.set("projectId", project.value);
- params.set("project_name", project.label);
+ params.set("project_name", project.label ?? "");
navigate(
{
pathname:location.pathname,
@@ -178,8 +178,10 @@ const RWBDashboard =()=>{
handleItemSelect={(setState, e) => setState(e)}
/>
+
+
{item.title}
-
+
{item.description}
{item.link ? (
-
+
Learn More →
) : (
-
- Coming soon...
+
+ Coming soon
)}
{item.title}
-+
{item.description}
{item.link ? ( - + Learn More → ) : ( - - Coming soon... + + Coming soon )}