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 blog link to pricing table (@zanivan) #43140

Merged
merged 2 commits into from
Aug 1, 2024
Merged
Changes from all commits
Commits
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
50 changes: 44 additions & 6 deletions docs/src/components/pricing/PricingTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import Tooltip from '@mui/material/Tooltip';
import InfoOutlinedIcon from '@mui/icons-material/InfoOutlined';
import { useRouter } from 'next/router';
import KeyboardArrowRightRounded from '@mui/icons-material/KeyboardArrowRightRounded';
import OpenInNewRoundedIcon from '@mui/icons-material/OpenInNewRounded';
import LaunchRounded from '@mui/icons-material/LaunchRounded';
import UnfoldMoreRounded from '@mui/icons-material/UnfoldMoreRounded';
import { Link } from '@mui/docs/Link';
Expand Down Expand Up @@ -142,14 +143,33 @@ export function PlanPrice(props: PlanPriceProps) {
{priceUnit}
</Typography>
</Box>
<Box sx={{ minHeight: planPriceMinHeight }}>
<Box
sx={{
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
gap: 2,
mb: 2,
minHeight: planPriceMinHeight,
}}
>
{(annual || monthlyDisplay) && (
<Typography variant="body2" color="text.secondary" textAlign="center">
{priceExplanation}
</Typography>
)}
<Typography variant="body2" color="text.secondary" sx={{ mb: 3 }} textAlign="center">
{'No additional fee beyond 10 devs.'}

<Typography variant="body2" sx={{ color: 'text.secondary', textAlign: 'center' }}>
No extra fees for orders with over 10 devs&nbsp;
<span>
<Tooltip title="Our pricing policies are changing. Read more on our blog.">
<Link href="https://mui.com/pricing">
by Aug 30
<OpenInNewRoundedIcon sx={{ fontSize: '16px', ml: 0.5 }} />
</Link>
</Tooltip>
</span>
.
</Typography>
</Box>
</React.Fragment>
Expand Down Expand Up @@ -206,14 +226,32 @@ export function PlanPrice(props: PlanPriceProps) {
{priceUnit}
</Typography>
</Box>
<Box sx={{ minHeight: planPriceMinHeight }}>
<Box
sx={{
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
gap: 2,
mb: 2,
minHeight: planPriceMinHeight,
}}
>
{(annual || monthlyDisplay) && (
<Typography variant="body2" color="text.secondary" textAlign="center">
{priceExplanation}
</Typography>
)}
<Typography variant="body2" color="text.secondary" sx={{ mb: 2 }} textAlign="center">
🐦 Early bird special (25% off).
<Typography variant="body2" sx={{ color: 'text.secondary', textAlign: 'center' }}>
🐦 Early Bird: <strong>25% off</strong> if ordered &nbsp;
<span>
<Tooltip title="Our pricing policies are changing. Read more on our blog.">
<Link href="https://mui.com/pricing">
by Aug 30
<OpenInNewRoundedIcon sx={{ fontSize: '16px', ml: 0.5 }} />{' '}
</Link>
</Tooltip>
</span>
.
</Typography>
</Box>
</React.Fragment>
Expand Down
Loading