File tree Expand file tree Collapse file tree 3 files changed +84
-7
lines changed
src/homepageExperience/components Expand file tree Collapse file tree 3 files changed +84
-7
lines changed Original file line number Diff line number Diff line change @@ -70,10 +70,10 @@ h1#first-mile--header {
7070.homepage-wizard-next-steps {
7171 display : flex ;
7272 max-width : 300px ;
73- margin-top : 0 !important ;
7473 h4 {
7574 background : linear-gradient (45deg , #fad9ff 0% , #f0fcff 100% );
7675 -webkit-background-clip : text ;
76+ background-clip : text ;
7777 -webkit-text-fill-color : transparent ;
7878
7979 display : flex ;
@@ -85,7 +85,12 @@ h1#first-mile--header {
8585 }
8686 }
8787
88+ .cf-icon {
89+ margin-right : $cf-space-2xs ;
90+ }
91+
8892 p {
93+ color : $cf-grey-95 ;
8994 font-size : 14px ;
9095 margin : 0 ;
9196 font-style : normal ;
Original file line number Diff line number Diff line change 1+ import React , { FC } from 'react'
2+
3+ // Components
4+ import {
5+ AlignItems ,
6+ ComponentSize ,
7+ FlexBox ,
8+ FlexDirection ,
9+ Icon ,
10+ IconFont ,
11+ ResourceCard ,
12+ } from '@influxdata/clockface'
13+
14+ // Utils
15+ import { SafeBlankLink } from 'src/utils/SafeBlankLink'
16+
17+ type Props = {
18+ wizardEventName : string
19+ handleNextStepEvent : ( wizardEventName : string , nextStepName : string ) => void
20+ }
21+
22+ const DashboardIntegrations : FC < Props > = ( {
23+ wizardEventName,
24+ handleNextStepEvent,
25+ } ) => {
26+ return (
27+ < FlexBox
28+ margin = { ComponentSize . Large }
29+ alignItems = { AlignItems . Stretch }
30+ direction = { FlexDirection . Row }
31+ >
32+ < ResourceCard className = "homepage-wizard-next-steps" >
33+ < SafeBlankLink
34+ href = "https://docs.influxdata.com/influxdb/cloud-iox/visualize-data/superset/"
35+ onClick = { ( ) =>
36+ handleNextStepEvent ( wizardEventName , 'supersetIntegration' )
37+ }
38+ >
39+ < h4 >
40+ < Icon glyph = { IconFont . DashH } />
41+ Integrate with Supserset
42+ </ h4 >
43+ </ SafeBlankLink >
44+ < p > Create dashboards and alerts with Apache Superset.</ p >
45+ </ ResourceCard >
46+ < ResourceCard className = "homepage-wizard-next-steps" >
47+ < SafeBlankLink
48+ href = "https://docs.influxdata.com/influxdb/cloud-iox/visualize-data/grafana/"
49+ onClick = { ( ) =>
50+ handleNextStepEvent ( wizardEventName , 'grafanaIntegration' )
51+ }
52+ >
53+ < h4 >
54+ < Icon glyph = { IconFont . DashH } />
55+ Integrate with Grafana
56+ </ h4 >
57+ </ SafeBlankLink >
58+ < p > Create dashboards and alerts with Grafana.</ p >
59+ </ ResourceCard >
60+ </ FlexBox >
61+ )
62+ }
63+
64+ export default DashboardIntegrations
Original file line number Diff line number Diff line change 11import React , { useEffect } from 'react'
2+ import confetti from 'canvas-confetti'
3+
4+ // Components
25import {
36 AlignItems ,
47 ComponentSize ,
58 FlexBox ,
69 FlexDirection ,
710 ResourceCard ,
811} from '@influxdata/clockface'
9-
10- import confetti from 'canvas-confetti'
11-
1212import {
1313 BookIcon ,
1414 CodeTerminalIcon ,
1515} from 'src/homepageExperience/components/HomepageIcons'
16- import { SafeBlankLink } from 'src/utils/SafeBlankLink'
17-
18- import { event } from 'src/cloud/utils/reporting'
1916import FeedbackBar from 'src/homepageExperience/components/FeedbackBar'
2017import SampleAppCard from 'src/homepageExperience/components/steps/SampleAppCard'
18+ import DashboardIntegrations from 'src/homepageExperience/components/steps/DashboardIntegrations'
19+
20+ // Utils
21+ import { event } from 'src/cloud/utils/reporting'
22+ import { SafeBlankLink } from 'src/utils/SafeBlankLink'
2123import { isFlagEnabled } from 'src/shared/utils/featureFlag'
2224
2325type OwnProps = {
@@ -162,6 +164,12 @@ export const Finish = (props: OwnProps) => {
162164 wizardEventName = { props . wizardEventName }
163165 />
164166 ) : null }
167+ { isFlagEnabled ( 'ioxOnboarding' ) && (
168+ < DashboardIntegrations
169+ handleNextStepEvent = { handleNextStepEvent }
170+ wizardEventName = { props . wizardEventName }
171+ />
172+ ) }
165173 </ FlexBox >
166174 </ >
167175 )
You can’t perform that action at this time.
0 commit comments