1+ import {
2+ AlignItems ,
3+ AppWrapper ,
4+ ComponentSize ,
5+ FlexBox ,
6+ FunnelPage ,
7+ Icon ,
8+ IconFont ,
9+ InfluxColors ,
10+ JustifyContent ,
11+ Panel ,
12+ } from '@influxdata/clockface'
113import React , { FC } from 'react'
14+ import LogoWithCubo from 'src/checkout/LogoWithCubo'
15+ import { isFlagEnabled } from 'src/shared/utils/featureFlag'
216
3- const NotFound : FC = ( ) => (
17+ const NotFoundNew : FC = ( ) => (
18+ < AppWrapper type = "funnel" className = "page-not-found" >
19+ < FunnelPage
20+ logo = { < LogoWithCubo /> }
21+ enableGraphic = { true }
22+ className = "page-not-found-funnel"
23+ > </ FunnelPage >
24+ < FunnelPage . Footer className = "page-not-found-footer" >
25+ < Panel
26+ className = "page-not-found-panel"
27+ backgroundColor = { InfluxColors . Grey15 }
28+ >
29+ < div className = "page-not-found-panel-content" >
30+ < div className = "page-not-found-panel-section" >
31+ < div className = "page-not-found-panel-title" > Not a URL issue?</ div >
32+ < div >
33+ < span >
34+ The webpage you were trying to reach may have been removed or
35+ your access to this page may have expired.
36+ { /* Add rel options to avoid "tabnapping" */ }
37+ < a
38+ href = "mailto:support@influxdata.com"
39+ target = "_blank"
40+ rel = "noreferrer noopener"
41+ >
42+ Contact InfluxData Support
43+ </ a >
44+ </ span >
45+ </ div >
46+ </ div >
47+ < div className = "page-not-found-panel-section" >
48+ < div className = "page-not-found-panel-title" >
49+ Have more feedback?
50+ </ div >
51+ < div >
52+ We welcome and encourage your feedback and bug reports for
53+ InfluxDB. The following resources are available:
54+ </ div >
55+ </ div >
56+ < FlexBox >
57+ < FlexBox className = "page-not-found-community-links" >
58+ < Icon glyph = { IconFont . Cubouniform } > </ Icon >
59+ { /* Add rel options to avoid "tabnapping" */ }
60+ < a
61+ href = "https://community.influxdata.com/"
62+ target = "_blank"
63+ rel = "noreferrer noopener"
64+ >
65+ InfluxData Community
66+ </ a >
67+ </ FlexBox >
68+ < FlexBox className = "page-not-found-community-links" >
69+ { /* TODO: Change with Slack Icon */ }
70+ < span className = "slack-icon" />
71+ { /* Add rel options to avoid "tabnapping" */ }
72+ < a
73+ href = "https://influxdata.com/slack/"
74+ target = "_blank"
75+ rel = "noreferrer noopener"
76+ >
77+ InfluxDB Community Slack
78+ </ a >
79+ </ FlexBox >
80+ </ FlexBox >
81+ </ div >
82+ </ Panel >
83+ < FunnelPage . FooterSection >
84+ < FlexBox
85+ alignItems = { AlignItems . Center }
86+ margin = { ComponentSize . Large }
87+ justifyContent = { JustifyContent . Center }
88+ > </ FlexBox >
89+ </ FunnelPage . FooterSection >
90+ </ FunnelPage . Footer >
91+ </ AppWrapper >
92+ )
93+
94+ const NotFoundOld : FC = ( ) => (
495 < div className = "container-fluid" data-testid = "not-found" >
596 < div className = "panel" >
697 < div className = "panel-heading text-center" >
@@ -10,4 +101,13 @@ const NotFound: FC = () => (
10101 </ div >
11102 </ div >
12103)
104+
105+ const NotFound : FC = ( ) => {
106+ if ( isFlagEnabled ( 'newNotFoundPage' ) ) {
107+ return < NotFoundNew />
108+ }
109+
110+ return < NotFoundOld />
111+ }
112+
13113export default NotFound
0 commit comments