diff --git a/src/assets/images/help/help-duck.png b/src/assets/images/help/help-duck.png new file mode 100644 index 0000000..855a48e Binary files /dev/null and b/src/assets/images/help/help-duck.png differ diff --git a/src/components/help/HelpView.tsx b/src/components/help/HelpView.tsx index 87ec07d..01701be 100644 --- a/src/components/help/HelpView.tsx +++ b/src/components/help/HelpView.tsx @@ -12,6 +12,22 @@ import { SelectReportedUserView } from './views/SelectReportedUserView'; import { SelectTopicView } from './views/SelectTopicView'; import { NameChangeView } from './views/name-change/NameChangeView'; +// Scoped colour override for the Aiuto window: classic blue header + light grey +// body (the shared 'primary-slim' theme is teal + cream). Higher specificity +// (.nitro-card.nitro-help ...) than the theme so it wins. The body element +// renders `.nitro-card-content-shell`, NOT `.content-area`. +const HELP_STYLES = ` + .nitro-card.nitro-help .nitro-card-header { + background: linear-gradient(180deg, #5a80b8 0%, #3f63a0 100%); + border-color: #34548a; + } + .nitro-card.nitro-help, + .nitro-card.nitro-help .content-area, + .nitro-card.nitro-help .nitro-card-content-shell { + background: #ebebe3 !important; + } +`; + export const HelpView: FC<{}> = props => { const [ isVisible, setIsVisible ] = useState(false); @@ -96,17 +112,20 @@ export const HelpView: FC<{}> = props => return ( <> { isVisible && - + - - -
- - - - - + + { activeReport + ? + +
+ + + + + + : } } diff --git a/src/components/help/views/HelpIndexView.tsx b/src/components/help/views/HelpIndexView.tsx index ceaa1ad..36bfe85 100644 --- a/src/components/help/views/HelpIndexView.tsx +++ b/src/components/help/views/HelpIndexView.tsx @@ -1,9 +1,11 @@ import { GetCfhStatusMessageComposer } from '@nitrots/nitro-renderer'; import { FC } from 'react'; -import { DispatchUiEvent, GetConfigurationValue, LocalizeText, ReportState, ReportType, SendMessageComposer } from '../../../api'; +import { FaArrowCircleRight } from 'react-icons/fa'; +import { CreateLinkEvent, DispatchUiEvent, GetConfigurationValue, LocalizeText, ReportState, ReportType, SendMessageComposer } from '../../../api'; import { Button, Text } from '../../../common'; import { GuideToolEvent } from '../../../events'; import { useHelp } from '../../../hooks'; +import helpDuck from '../../../assets/images/help/help-duck.png'; export const HelpIndexView: FC<{}> = props => { @@ -21,16 +23,30 @@ export const HelpIndexView: FC<{}> = props => }; return ( - <> -
- { LocalizeText('help.main.frame.title') } - { LocalizeText('help.main.self.description') } +
+ { LocalizeText('help.main.frame.title') } + { LocalizeText('help.main.frame.description') } +
+
-
+
- - +
+ + + +
+
); };