Skip to content

Commit d02d4e3

Browse files
committed
Style
1 parent ddd6256 commit d02d4e3

File tree

1 file changed

+46
-20
lines changed

1 file changed

+46
-20
lines changed

static/app/views/issueDetails/groupFeatureFlags/flagDrawerCTA.tsx

+46-20
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import styled from '@emotion/styled';
22

3+
import onboardingInstall from 'sentry-images/spot/onboarding-install.svg';
4+
35
import {Button, LinkButton} from 'sentry/components/core/button';
46
import {useFeatureFlagOnboarding} from 'sentry/components/events/featureFlags/useFeatureFlagOnboarding';
57
import {useDrawerContentContext} from 'sentry/components/globalDrawer/components';
@@ -28,24 +30,27 @@ export default function FlagDrawerCTA() {
2830

2931
return (
3032
<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" />
4954
</BannerWrapper>
5055
);
5156
}
@@ -58,6 +63,7 @@ const BannerTitle = styled('div')`
5863

5964
const BannerDescription = styled('div')`
6065
margin-bottom: ${space(1.5)};
66+
max-width: 340px;
6167
`;
6268

6369
const ActionButton = styled('div')`
@@ -67,15 +73,35 @@ const ActionButton = styled('div')`
6773

6874
const BannerWrapper = styled('div')`
6975
position: relative;
70-
max-width: 600px;
7176
border: 1px solid ${p => p.theme.border};
7277
border-radius: ${p => p.theme.borderRadius};
73-
padding: ${space(2)};
7478
margin: ${space(1)} 0;
7579
background: linear-gradient(
7680
90deg,
7781
${p => p.theme.backgroundSecondary}00 0%,
7882
${p => p.theme.backgroundSecondary}FF 70%,
7983
${p => p.theme.backgroundSecondary}FF 100%
8084
);
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;
81107
`;

0 commit comments

Comments
 (0)