From fac7c0f8f24b3fe25de4ab81331a80c0fabc4fdc Mon Sep 17 00:00:00 2001 From: Zoe <19900057+vpsx@users.noreply.github.com> Date: Thu, 30 Nov 2023 15:56:37 -0500 Subject: [PATCH 1/4] Add mouseovers to bottom arrows in Scope of CF diagram --- .../src/components/ScopeOfClinicalFocus.jsx | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/packages/client/src/components/ScopeOfClinicalFocus.jsx b/packages/client/src/components/ScopeOfClinicalFocus.jsx index 5789c71..09116c7 100644 --- a/packages/client/src/components/ScopeOfClinicalFocus.jsx +++ b/packages/client/src/components/ScopeOfClinicalFocus.jsx @@ -69,6 +69,9 @@ export function ScopeOfClinicalFocus() {
  • Coping Skills Training
  • ); + const culturallyResponsiveText =

    Placeholder text for culturally responsive treatments

    ; + const culturallyAdaptedText =

    Placeholder text for culturally adapted treatments

    ; + const culturallySpecificText =

    Placeholder text for culturally specific and emergent supports

    ; return ( @@ -165,6 +168,27 @@ export function ScopeOfClinicalFocus() { Emergent Supports + + {/* For the mouseover/mouseout on the bottom arrows, use transparent overlays, + bc otherwise moving cursor over the text triggers a mouseOut*/} + + + {popperText} From a681083b278821d128b531bdb29df510ca303b71 Mon Sep 17 00:00:00 2001 From: Zoe <19900057+vpsx@users.noreply.github.com> Date: Thu, 30 Nov 2023 16:14:44 -0500 Subject: [PATCH 2/4] Change Scope of Focus diagram colors --- .../src/components/ScopeOfClinicalFocus.jsx | 41 ++++++++++++++++--- 1 file changed, 36 insertions(+), 5 deletions(-) diff --git a/packages/client/src/components/ScopeOfClinicalFocus.jsx b/packages/client/src/components/ScopeOfClinicalFocus.jsx index 09116c7..0b02e69 100644 --- a/packages/client/src/components/ScopeOfClinicalFocus.jsx +++ b/packages/client/src/components/ScopeOfClinicalFocus.jsx @@ -1,6 +1,9 @@ import { useEffect, useRef, useState } from 'react'; import { Box, Paper, Popper } from '@mui/material'; +import { theme } from '../theme.jsx'; +import { alpha } from '@mui/material/styles'; + export function ScopeOfClinicalFocus() { // The interactive venn diagram as currently designed/requested // does not make it very obvious that one can hover over the diagram text @@ -77,8 +80,24 @@ export function ScopeOfClinicalFocus() { - - + + Posttraumatic Stress Disorder @@ -144,9 +163,21 @@ export function ScopeOfClinicalFocus() { Techniques - - - + + + Culturally Responsive From 30b076d150e1450cc8c00300d0182239b8081017 Mon Sep 17 00:00:00 2001 From: Zoe <19900057+vpsx@users.noreply.github.com> Date: Thu, 30 Nov 2023 16:32:15 -0500 Subject: [PATCH 3/4] Add SectionedHeader for Scope of Focus diagram --- packages/client/src/pages/TreatmentsServices.jsx | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/packages/client/src/pages/TreatmentsServices.jsx b/packages/client/src/pages/TreatmentsServices.jsx index d7f5f97..c0f2c7c 100644 --- a/packages/client/src/pages/TreatmentsServices.jsx +++ b/packages/client/src/pages/TreatmentsServices.jsx @@ -574,6 +574,20 @@ function TreatmentsAndServices() { ); } +function ScopeOfClinicalFocusPanel() { + return ( + <> + + + + + + ); +} + function HowToBecomeARestorePatient() { const { loading, error, data } = useQuery(GET_HOWTOBECOME); if (loading) return

    Loading...

    ; @@ -673,7 +687,7 @@ export default function Services() {
    - +
    From d4fea02501bb145aa6b96493dbf218c8633efa05 Mon Sep 17 00:00:00 2001 From: Zoe <19900057+vpsx@users.noreply.github.com> Date: Thu, 30 Nov 2023 16:33:55 -0500 Subject: [PATCH 4/4] Resize How to Become header to match Scope of Focus --- packages/client/src/pages/TreatmentsServices.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/client/src/pages/TreatmentsServices.jsx b/packages/client/src/pages/TreatmentsServices.jsx index c0f2c7c..a8f821d 100644 --- a/packages/client/src/pages/TreatmentsServices.jsx +++ b/packages/client/src/pages/TreatmentsServices.jsx @@ -595,7 +595,7 @@ function HowToBecomeARestorePatient() { return ( <> - How to Become a RESTORE Patient + How to Become a RESTORE Patient {data.howToBecomeARestorePatient.data.attributes.Body}