@@ -125,7 +125,7 @@ const ctaCards = [
125125 href : "#" ,
126126 } ,
127127 {
128- id : "4 " ,
128+ id : "update-profile " ,
129129 icon : "👤" ,
130130 title : "Update Your Profile" ,
131131 description : "Help others get to know you better" ,
@@ -161,16 +161,21 @@ function MiniAvatar({ image, name }: { image: string | null; name: string }) {
161161
162162export function DashboardClient ( { session, trendingResources } : DashboardClientProps ) {
163163 const user = session . user ;
164+ const userId = ( user as { id ?: string } ) . id ;
164165 const joinDate = "March 2024" ; // In production, comes from Slack API
165166
167+ const resolvedCtaCards = ctaCards . map ( ( card ) =>
168+ card . id === "update-profile" ? { ...card , href : userId ? `/profile/${ userId } ` : "#" } : card
169+ ) ;
170+
166171 return (
167- < div className = "min-h-screen text-white" style = { { background : "linear-gradient(to bottom , #0a0a0a , #000000 )" } } >
168- { /* Circuit pattern background */ }
172+ < div className = "min-h-screen text-white" style = { { background : "linear-gradient(160deg, #0f172a 0% , #0b1628 50% , #0f172a 100% )" } } >
173+ { /* Subtle background texture */ }
169174 < div
170- className = "fixed inset-0 opacity-30 pointer-events-none"
175+ className = "fixed inset-0 opacity-20 pointer-events-none"
171176 style = { {
172177 backgroundImage :
173- "radial-gradient(circle at 25px 25px, rgba(59,130,246,0.15 ) 1px, transparent 0), radial-gradient(circle at 75px 75px, rgba(139,92,246,0.15 ) 1px, transparent 0)" ,
178+ "radial-gradient(circle at 25px 25px, rgba(59,130,246,0.10 ) 1px, transparent 0), radial-gradient(circle at 75px 75px, rgba(139,92,246,0.08 ) 1px, transparent 0)" ,
174179 backgroundSize : "100px 100px" ,
175180 } }
176181 />
@@ -181,7 +186,7 @@ export function DashboardClient({ session, trendingResources }: DashboardClientP
181186 { /* Welcome card */ }
182187 < div
183188 className = "p-6 rounded-2xl border border-white/10"
184- style = { { background : "linear-gradient(to bottom right , rgba(255,255,255 ,0.05 ), rgba(255,255,255 ,0.10 ))" , backdropFilter : "blur(12px)" } }
189+ style = { { background : "linear-gradient(135deg , rgba(30,41,59 ,0.8 ), rgba(15,23,42 ,0.9 ))" , backdropFilter : "blur(12px)" } }
185190 >
186191 < h1 className = "text-3xl font-bold mb-1" >
187192 < span
@@ -200,8 +205,8 @@ export function DashboardClient({ session, trendingResources }: DashboardClientP
200205 < div
201206 className = "p-6 rounded-2xl"
202207 style = { {
203- background : "rgba(10,10,10 ,0.8 )" ,
204- border : "1px solid rgba(6,182,212,0.3 )" ,
208+ background : "rgba(30,41,59 ,0.7 )" ,
209+ border : "1px solid rgba(6,182,212,0.25 )" ,
205210 borderRadius : 16 ,
206211 } }
207212 >
@@ -259,7 +264,7 @@ export function DashboardClient({ session, trendingResources }: DashboardClientP
259264 < div
260265 key = { event . id }
261266 className = "p-4 rounded-xl border border-white/10 flex items-center gap-3"
262- style = { { background : "linear-gradient(to right, rgba(6,182,212 ,0.10), rgba(139,92,246,0.10) )" , backdropFilter : "blur(8px)" } }
267+ style = { { background : "rgba(30,41,59 ,0.6 )" , backdropFilter : "blur(8px)" } }
263268 >
264269 < span className = "text-2xl flex-shrink-0" > { event . icon } </ span >
265270 < div className = "flex-1 min-w-0" >
@@ -290,7 +295,7 @@ export function DashboardClient({ session, trendingResources }: DashboardClientP
290295 🏆 Top Members This Month
291296 </ h2 >
292297 </ div >
293- < div className = "rounded-2xl overflow-hidden border border-white/10" style = { { background : "rgba(255,255,255 ,0.03 )" } } >
298+ < div className = "rounded-2xl overflow-hidden border border-white/10" style = { { background : "rgba(30,41,59 ,0.5 )" } } >
294299 { topMembers . map ( ( member , idx ) => (
295300 < div
296301 key = { member . rank }
@@ -330,7 +335,7 @@ export function DashboardClient({ session, trendingResources }: DashboardClientP
330335 { /* Community Activity Feed */ }
331336 < section >
332337 < h2 className = "text-xl font-semibold text-white mb-4" > Community Activity</ h2 >
333- < div className = "rounded-2xl border border-white/10 overflow-hidden" style = { { background : "rgba(255,255,255 ,0.03 )" } } >
338+ < div className = "rounded-2xl border border-white/10 overflow-hidden" style = { { background : "rgba(30,41,59 ,0.5 )" } } >
334339 { communityFeed . map ( ( section , sIdx ) => (
335340 < div key = { section . id } >
336341 { /* Section divider */ }
@@ -371,12 +376,12 @@ export function DashboardClient({ session, trendingResources }: DashboardClientP
371376 < section >
372377 < h2 className = "text-xl font-semibold text-white mb-4" > Suggested Actions</ h2 >
373378 < div className = "grid grid-cols-1 sm:grid-cols-2 gap-4" >
374- { ctaCards . map ( ( card ) => (
379+ { resolvedCtaCards . map ( ( card ) => (
375380 < div
376381 key = { card . id }
377382 className = "p-5 rounded-2xl border border-white/10 flex flex-col gap-3"
378383 style = { {
379- background : "linear-gradient(to bottom right, rgba(6,182,212 ,0.10), rgba(139,92,246,0.10) )" ,
384+ background : "rgba(30,41,59 ,0.6 )" ,
380385 backdropFilter : "blur(8px)" ,
381386 borderLeftWidth : 3 ,
382387 borderLeftColor : card . accent ,
0 commit comments