From 104a4e0674297da553b4bb25a64abec92b3eb9e0 Mon Sep 17 00:00:00 2001 From: Duck Quang Date: Sun, 12 Jul 2026 16:27:14 +0700 Subject: [PATCH] Researcher pages: token sweep, flat hairline surfaces, ProjectDetail declutter - Token/color sweep of unit-8 CSS ranges: raw golds/purples/teals/navies and gradients replaced with token-driven values (var(--accent/--gold/--card-bg/ --bg-muted/--accent-subtle) with legacy fallbacks); flattened comp-hero, seg "brand edition", bar/kpi golds, cal-day gradient, drive/fm/dm chrome. - Killed now-redundant explicit dark-mode rules in owned ranges (drive, fm, kpi, safety menu, danger zone, comp-hero) - tokens + alphas cover them. - Fixed .dm-modal background: var(--bg) had no fallback -> var(--card-bg, #fff). - ProjectDetail declutter: local OverflowMenu ("...", SafetyMenu pattern + styles) demotes per-row Remove (calendar events, resource links) and the role editor trigger; removed redundant side-tab accent borders. - Reachability: People header gains a "Find a mentor" ghost link; Apply page gains a quiet "Also in Grow: Programs - Competitions" link row. - Groups/GroupDetail banner placeholders flattened (.banner-ph); Community image-dismiss scrim moved to .img-dismiss class; comp-hero glow divs removed. - Motion polish: ease-out transitions, scale(0.97) presses, reduced-motion kept intact; removed .bar-fill width animation (layout-property transition). Note: shared/design-system.css (not owned by this unit) still overrides .comp-hero with a blue gradient via !important - the styles.css flatten takes effect once that override is removed by its owner. Co-Authored-By: Claude Fable 5 --- src/pages/researcher/ApplicationHub.jsx | 5 +- src/pages/researcher/Community.jsx | 3 +- src/pages/researcher/Competitions.jsx | 1 - src/pages/researcher/GroupDetail.jsx | 2 +- src/pages/researcher/Groups.jsx | 2 +- src/pages/researcher/Mentors.jsx | 1 - src/pages/researcher/People.jsx | 5 +- src/pages/researcher/ProjectDetail.jsx | 54 ++++++-- src/styles.css | 169 ++++++++++-------------- 9 files changed, 127 insertions(+), 115 deletions(-) diff --git a/src/pages/researcher/ApplicationHub.jsx b/src/pages/researcher/ApplicationHub.jsx index 03982fa..caa6d66 100644 --- a/src/pages/researcher/ApplicationHub.jsx +++ b/src/pages/researcher/ApplicationHub.jsx @@ -1,5 +1,5 @@ import { useEffect, useState } from 'react'; -import { useSearchParams } from 'react-router-dom'; +import { Link, useSearchParams } from 'react-router-dom'; import { api } from '../../api.js'; import { useAuth } from '../../auth.jsx'; import { Card, Badge, Button, Field, EmptyState } from '../../components/ui.jsx'; @@ -117,6 +117,9 @@ export default function ApplicationHub() { return (
+

+ Also in Grow: Programs · Competitions +

Apply for a role

Explore advanced roles and apply. A Moderator reviews each application — once approved, your role diff --git a/src/pages/researcher/Community.jsx b/src/pages/researcher/Community.jsx index 905955f..a127ea4 100644 --- a/src/pages/researcher/Community.jsx +++ b/src/pages/researcher/Community.jsx @@ -129,11 +129,10 @@ function Composer({ onPosted }) { diff --git a/src/pages/researcher/Competitions.jsx b/src/pages/researcher/Competitions.jsx index 7962f2f..bf1d7ff 100644 --- a/src/pages/researcher/Competitions.jsx +++ b/src/pages/researcher/Competitions.jsx @@ -70,7 +70,6 @@ function FeaturedComp({ c }) { const href = safeHref(c.url); return (

-