Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[website] Add enterprise plan #44267

Draft
wants to merge 30 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 7 commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
eca4323
add-enterprise-column
prakhargupta1 Oct 30, 2024
5b8168c
hours
prakhargupta1 Oct 30, 2024
c3d0fc4
no pricing for enterprise
prakhargupta1 Oct 31, 2024
b1d1602
mobile-view and static header
prakhargupta1 Oct 31, 2024
f8e8890
add a priority support row and pnpm dedupe
prakhargupta1 Nov 1, 2024
5cf13da
icon-color
prakhargupta1 Nov 1, 2024
93a56b3
edit
prakhargupta1 Nov 1, 2024
56828de
from review
prakhargupta1 Nov 7, 2024
eb5b944
better way to showcase priority support
prakhargupta1 Nov 7, 2024
31a0e09
support icon
prakhargupta1 Nov 7, 2024
2152572
minor
prakhargupta1 Nov 7, 2024
30e5c02
Merge branch 'master' into enterprise
prakhargupta1 Nov 14, 2024
29123d7
try
prakhargupta1 Nov 15, 2024
4f85cc9
reset pnpm-lock.yaml changes
oliviertassinari Nov 15, 2024
e2d5636
cleanup context provider
oliviertassinari Nov 15, 2024
af233ba
compress SVG
oliviertassinari Nov 15, 2024
cc2cb12
define before use
oliviertassinari Nov 15, 2024
bdff1ef
fix provider location
oliviertassinari Nov 15, 2024
7f5cd32
scope for performance
oliviertassinari Nov 15, 2024
fb64729
fix build
oliviertassinari Nov 15, 2024
4c6e30b
wip
oliviertassinari Nov 15, 2024
6c849d7
more
prakhargupta1 Nov 15, 2024
b672f8d
update pricingdisplay, add FAQ, clean
prakhargupta1 Nov 18, 2024
90a24ce
Merge branch 'master' into enterprise
prakhargupta1 Nov 18, 2024
d952df7
plan description
prakhargupta1 Nov 18, 2024
b826a22
add-changes-from-figma
prakhargupta1 Jan 8, 2025
bb151a1
theme
prakhargupta1 Jan 8, 2025
3426146
fix dark mode
prakhargupta1 Jan 9, 2025
bc07cf5
adjustments-mobileview
prakhargupta1 Jan 9, 2025
62c42e3
noPaddingBottom
prakhargupta1 Jan 9, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions docs/public/static/branding/pricing/x-plan-enterprise.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 28 additions & 5 deletions docs/src/components/pricing/PricingList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { useLicenseModel } from 'docs/src/components/pricing/LicenseModelContext
const Plan = React.forwardRef<
HTMLDivElement,
{
plan: 'community' | 'pro' | 'premium';
plan: 'community' | 'pro' | 'premium' | 'enterprise';
benefits?: Array<string>;
unavailable?: boolean;
} & PaperProps
Expand All @@ -32,7 +32,7 @@ const Plan = React.forwardRef<
{...props}
>
<PlanName plan={plan} />
<Box {...(plan === 'community' && { my: 2 })} {...(plan === 'premium' && { mb: 2 })}>
<Box {...(plan === 'community' && { my: 2 })} {...(plan === 'enterprise' && { mb: 2 })}>
<PlanPrice plan={plan} />
</Box>
{unavailable ? (
Expand All @@ -46,7 +46,7 @@ const Plan = React.forwardRef<
</Button>
) : (
<Button
variant={plan.match(/(pro|premium)/) ? 'contained' : 'outlined'}
variant={plan.match(/(pro|premium|enterprise)/) ? 'contained' : 'outlined'}
fullWidth
component={Link}
noLinkStyle
Expand All @@ -61,12 +61,13 @@ const Plan = React.forwardRef<
licenseModel === 'annual'
? 'https://mui.com/store/items/mui-x-premium/'
: 'https://mui.com/store/items/mui-x-premium-perpetual/',
enterprise: 'mailto:[email protected]',
}[plan]
}
endIcon={<KeyboardArrowRightRounded />}
sx={{ py: 1 }}
>
{plan.match(/(pro|premium)/) ? 'Buy now' : 'Get started'}
{getButtonText(plan)}
</Button>
)}
{benefits &&
Expand All @@ -85,6 +86,16 @@ const Plan = React.forwardRef<
);
});

function getButtonText(plan: string) {
if (plan.match(/(pro|premium)/)) {
return 'Buy now';
}
if (plan.match(/enterprise/)) {
return 'Contact sales';
}
return 'Get started';
}

export default function PricingList() {
const [planIndex, setPlanIndex] = React.useState(0);
return (
Expand Down Expand Up @@ -126,7 +137,11 @@ export default function PricingList() {
label="Pro"
sx={{ borderWidth: '0 1px 0 1px', borderStyle: 'solid', borderColor: 'divider' }}
/>
<Tab label="Premium" />
<Tab
label="Premium"
sx={{ borderWidth: '0 1px 0 1px', borderStyle: 'solid', borderColor: 'divider' }}
/>
<Tab label="Enterprise" />
</Tabs>
{planIndex === 0 && (
<Fade in>
Expand All @@ -152,6 +167,14 @@ export default function PricingList() {
</div>
</Fade>
)}
{planIndex === 3 && (
<Fade in>
<div>
<Plan plan="enterprise" />
<PricingTable columnHeaderHidden plans={['enterprise']} />
</div>
</Fade>
)}
</React.Fragment>
);
}
Loading