- Notifications
You must be signed in to change notification settings - Fork928
feat: add premium license banner for custom roles page#14595
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
0360126
68d1608
35dc1ce
a8f6d9c
dc21678
b20e7bf
effe086
fe52cae
f42ac7e
2485442
a407fb9
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -2,7 +2,7 @@ import type { Interpolation, Theme } from "@emotion/react"; | ||
import TaskAltIcon from "@mui/icons-material/TaskAlt"; | ||
import Button from "@mui/material/Button"; | ||
import Link from "@mui/material/Link"; | ||
import {PremiumBadge } from "components/Badges/Badges"; | ||
import { Stack } from "components/Stack/Stack"; | ||
import type { FC, ReactNode } from "react"; | ||
import { docs } from "utils/docs"; | ||
@@ -19,11 +19,19 @@ export const Paywall: FC<PaywallProps> = ({ | ||
documentationLink, | ||
}) => { | ||
return ( | ||
<div | ||
css={[ | ||
styles.root, | ||
(theme) => ({ | ||
backgroundImage: `linear-gradient(160deg, transparent, ${theme.branding.background})`, | ||
border: `1px solid ${theme.branding.border}`, | ||
}), | ||
]} | ||
> | ||
<div> | ||
<Stack direction="row" alignItems="center" css={{ marginBottom: 24 }}> | ||
<h5 css={styles.title}>{message}</h5> | ||
<PremiumBadge /> | ||
</Stack> | ||
{description && <p css={styles.description}>{description}</p>} | ||
@@ -36,20 +44,24 @@ export const Paywall: FC<PaywallProps> = ({ | ||
Read the documentation | ||
</Link> | ||
</div> | ||
<div css={styles.separator} /> | ||
<Stack direction="column" alignItems="center" spacing={3}> | ||
<ul css={styles.featureList}> | ||
<li css={styles.feature}> | ||
<FeatureIcon /> | ||
High availability & workspace proxies | ||
</li> | ||
<li css={styles.feature}> | ||
<FeatureIcon /> | ||
Multi-org & role-based access control | ||
</li> | ||
<li css={styles.feature}> | ||
<FeatureIcon /> | ||
24x7 global support with SLA | ||
</li> | ||
<li css={styles.feature}> | ||
<FeatureIcon /> | ||
Unlimited Git & external auth integrations | ||
</li> | ||
</ul> | ||
<Button | ||
@@ -60,29 +72,33 @@ export const Paywall: FC<PaywallProps> = ({ | ||
variant="outlined" | ||
color="neutral" | ||
> | ||
Learn aboutPremium | ||
</Button> | ||
</Stack> | ||
</div> | ||
); | ||
}; | ||
const FeatureIcon: FC = () => { | ||
return ( | ||
<TaskAltIcon | ||
css={[ | ||
(theme) => ({ | ||
color: theme.branding.border, | ||
}), | ||
]} | ||
/> | ||
); | ||
}; | ||
const styles = { | ||
root: () => ({ | ||
display: "flex", | ||
flexDirection: "row", | ||
justifyContent: "center", | ||
alignItems: "center", | ||
minHeight: 280, | ||
padding: 24, | ||
borderRadius: 8, | ||
gap: 32, | ||
}), | ||
@@ -92,25 +108,21 @@ const styles = { | ||
fontSize: 22, | ||
margin: 0, | ||
}, | ||
description: () => ({ | ||
fontFamily: "inherit", | ||
maxWidth: 460, | ||
fontSize: 14, | ||
}), | ||
separator: (theme) => ({ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Making a note for myself: we should update our color theme so that it works better on colored backgrounds. The gray divider color looks really washed out on a saturated colored background Member
| ||
width: 1, | ||
height: 220, | ||
backgroundColor: theme.branding.divider, | ||
marginLeft: 8, | ||
}), | ||
featureList: { | ||
listStyle: "none", | ||
margin: 0, | ||
padding: "0 24px", | ||
fontSize: 14, | ||
fontWeight: 500, | ||
}, | ||
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.