Skip to content

Commit 9ffe9bb

Browse files
authored
feat(HelpBar): add content to free account support overlay (#4391)
* feat: add logos for overlay * feat: fill in content for free support overlay * chore: clean up * feat: use shareable class for logos
1 parent d2a103b commit 9ffe9bb

File tree

5 files changed

+77
-4
lines changed

5 files changed

+77
-4
lines changed

assets/images/Forum.svg

Lines changed: 3 additions & 0 deletions
Loading

assets/images/feedback-fill.svg

Lines changed: 1 addition & 0 deletions
Loading

assets/images/slack-fill.svg

Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
.help-logo {
2+
background-size: 100% 100%;
3+
background-repeat: no-repeat;
4+
height: 25px;
5+
width: 25px;
6+
margin-right: 5px;
7+
}
8+
.help-logo.forum {
9+
background-image: url('../../../assets/images/Forum.svg');
10+
}
11+
.help-logo.slack {
12+
background-image: url('../../../assets/images/slack-fill.svg');
13+
filter: invert(59%) sepia(51%) saturate(7472%) hue-rotate(180deg)
14+
brightness(107%) contrast(110%);
15+
}
16+
17+
.help-logo.feedback {
18+
background-image: url('../../../assets/images/feedback-fill.svg');
19+
filter: invert(59%) sepia(51%) saturate(7472%) hue-rotate(180deg)
20+
brightness(107%) contrast(110%);
21+
}
22+
23+
.cf-list--contents {
24+
padding: 0px;
25+
}
26+
27+
.status-page-text {
28+
font-weight: lighter;
29+
margin-left: 25px;
30+
margin-top: 0px;
31+
margin-bottom: 25px;
32+
}

src/support/components/FreeAccountSupportOverlay.tsx

Lines changed: 40 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
import React, {FC, useContext} from 'react'
22

33
// Components
4-
import {Overlay} from '@influxdata/clockface'
4+
import {Icon, IconFont, List, Overlay} from '@influxdata/clockface'
5+
import CloudUpgradeButton from 'src/shared/components/CloudUpgradeButton'
6+
import {SafeBlankLink} from 'src/utils/SafeBlankLink'
57

68
// Contexts
79
import {OverlayContext} from 'src/overlays/components/OverlayController'
810

9-
// Components
10-
import CloudUpgradeButton from 'src/shared/components/CloudUpgradeButton'
11+
import './ContactSupport.scss'
1112

1213
interface OwnProps {
1314
onClose: () => void
@@ -24,7 +25,42 @@ const FreeAccountSupportOverlay: FC<OwnProps> = () => {
2425
onDismiss={onClose}
2526
/>
2627

27-
<Overlay.Body></Overlay.Body>
28+
<p className="status-page-text">
29+
<span>
30+
{' '}
31+
<Icon glyph={IconFont.Info_New} />{' '}
32+
</span>
33+
Check our{' '}
34+
<SafeBlankLink href="https://status.influxdata.com">
35+
status page
36+
</SafeBlankLink>{' '}
37+
to see if there is an outage impacting your region.
38+
</p>
39+
<Overlay.Body>
40+
<p>
41+
Contact support is currently only available for Usage-Based Plan and
42+
Annual customers. Please try our community resources below to recieve
43+
help or file a feedback & questions form.
44+
</p>
45+
<List className="support-links">
46+
<List.Item>
47+
<div className="help-logo forum" />
48+
<SafeBlankLink href="https://community.influxdata.com">
49+
InfluxDB Community Forums
50+
</SafeBlankLink>
51+
</List.Item>
52+
<List.Item>
53+
<div className="help-logo slack" />
54+
<SafeBlankLink href="https://influxcommunity.slack.com/join/shared_invite/zt-156zm7ult-LcIW2T4TwLYeS8rZbCP1mw#/shared-invite/email">
55+
InfluxDB Slack
56+
</SafeBlankLink>
57+
</List.Item>
58+
<List.Item>
59+
<div className="help-logo feedback" />
60+
<SafeBlankLink href="">Feedback & Questions Form</SafeBlankLink>
61+
</List.Item>
62+
</List>
63+
</Overlay.Body>
2864
<Overlay.Footer>
2965
<CloudUpgradeButton />
3066
</Overlay.Footer>

0 commit comments

Comments
 (0)