1
1
import styled from '@emotion/styled' ;
2
2
3
+ import onboardingInstall from 'sentry-images/spot/onboarding-install.svg' ;
4
+
3
5
import { Button , LinkButton } from 'sentry/components/core/button' ;
4
6
import { useFeatureFlagOnboarding } from 'sentry/components/events/featureFlags/useFeatureFlagOnboarding' ;
5
7
import { useDrawerContentContext } from 'sentry/components/globalDrawer/components' ;
@@ -28,24 +30,27 @@ export default function FlagDrawerCTA() {
28
30
29
31
return (
30
32
< BannerWrapper >
31
- < BannerTitle > { t ( 'Set Up Feature Flags' ) } </ BannerTitle >
32
- < BannerDescription >
33
- { t (
34
- 'Want to know which feature flags were associated with this error? Set up your feature flag integration.'
35
- ) }
36
- </ BannerDescription >
37
- < ActionButton >
38
- < Button onClick = { handleSetupButtonClick } priority = "primary" >
39
- { t ( 'Set Up Now' ) }
40
- </ Button >
41
- < LinkButton
42
- priority = "default"
43
- href = "https://docs.sentry.io/product/explore/feature-flags/"
44
- external
45
- >
46
- { t ( 'Read More' ) }
47
- </ LinkButton >
48
- </ ActionButton >
33
+ < CardContent >
34
+ < BannerTitle > { t ( 'Set Up Feature Flags' ) } </ BannerTitle >
35
+ < BannerDescription >
36
+ { t (
37
+ 'Want to know which feature flags were associated with this error? Set up your feature flag integration.'
38
+ ) }
39
+ </ BannerDescription >
40
+ < ActionButton >
41
+ < Button onClick = { handleSetupButtonClick } priority = "primary" >
42
+ { t ( 'Set Up Now' ) }
43
+ </ Button >
44
+ < LinkButton
45
+ priority = "default"
46
+ href = "https://docs.sentry.io/product/explore/feature-flags/"
47
+ external
48
+ >
49
+ { t ( 'Read More' ) }
50
+ </ LinkButton >
51
+ </ ActionButton >
52
+ </ CardContent >
53
+ < BannerIllustration src = { onboardingInstall } alt = "Install" />
49
54
</ BannerWrapper >
50
55
) ;
51
56
}
@@ -58,6 +63,7 @@ const BannerTitle = styled('div')`
58
63
59
64
const BannerDescription = styled ( 'div' ) `
60
65
margin-bottom: ${ space ( 1.5 ) } ;
66
+ max-width: 340px;
61
67
` ;
62
68
63
69
const ActionButton = styled ( 'div' ) `
@@ -67,15 +73,35 @@ const ActionButton = styled('div')`
67
73
68
74
const BannerWrapper = styled ( 'div' ) `
69
75
position: relative;
70
- max-width: 600px;
71
76
border: 1px solid ${ p => p . theme . border } ;
72
77
border-radius: ${ p => p . theme . borderRadius } ;
73
- padding: ${ space ( 2 ) } ;
74
78
margin: ${ space ( 1 ) } 0;
75
79
background: linear-gradient(
76
80
90deg,
77
81
${ p => p . theme . backgroundSecondary } 00 0%,
78
82
${ p => p . theme . backgroundSecondary } FF 70%,
79
83
${ p => p . theme . backgroundSecondary } FF 100%
80
84
);
85
+ display: flex;
86
+ flex-direction: row;
87
+ align-items: flex-end;
88
+ justify-content: space-between;
89
+ gap: ${ space ( 1 ) } ;
90
+ ` ;
91
+
92
+ const BannerIllustration = styled ( 'img' ) `
93
+ height: 100%;
94
+ object-fit: contain;
95
+ max-width: 30%;
96
+ margin-right: 10px;
97
+ margin-bottom: -${ space ( 2 ) } ;
98
+ padding: ${ space ( 2 ) } ;
99
+ ` ;
100
+
101
+ const CardContent = styled ( 'div' ) `
102
+ padding: ${ space ( 2 ) } ;
103
+
104
+ display: flex;
105
+ flex-direction: column;
106
+ justify-content: center;
81
107
` ;
0 commit comments