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 content about the Sync plugin in the Material UI page #40515

Merged
merged 85 commits into from
Apr 30, 2024
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
Show all changes
85 commits
Select commit Hold shift + click to select a range
39b9969
add content about MUI Connect on the Material + Design kits pages
danilo-leal Jan 10, 2024
60a6923
fix lint errors
danilo-leal Jan 10, 2024
c3128bc
put Connect first
danilo-leal Jan 11, 2024
6c3c210
fixed incorrectly selected highlighter bug
DavidCnoops Jan 11, 2024
8ffb6ab
avoid section height changing when switching between highlighters
DavidCnoops Jan 11, 2024
18d6d91
MUI Connect signup form
DavidCnoops Jan 12, 2024
1ef1d71
fix lint
danilo-leal Jan 12, 2024
8a85701
mobile adjustments
danilo-leal Jan 12, 2024
3a2172a
fine-tune adjustments
danilo-leal Jan 12, 2024
d565123
adjustments all around
danilo-leal Jan 15, 2024
7651ddb
trigger ci
danilo-leal Jan 16, 2024
ad99233
change button label on the email component
danilo-leal Jan 16, 2024
df66bd7
add standalone Connect page
danilo-leal Jan 18, 2024
1a96986
play around with a different layout
danilo-leal Jan 18, 2024
cd4df95
continue iterating
danilo-leal Jan 18, 2024
5301da1
refine the signup component styles
danilo-leal Jan 18, 2024
fde6b51
Merge branch 'master' into add-connect-content-website
danilo-leal Jan 23, 2024
d2494b8
Merge branch 'master' into add-connect-content-website
danilo-leal Jan 24, 2024
5fbed5c
small wording adjustments
danilo-leal Jan 24, 2024
71e32e0
de-emphasize email collection and focus on directing to Figma
danilo-leal Jan 25, 2024
de4f115
Merge branch 'master' into add-connect-content-website
danilo-leal Jan 29, 2024
0e0e527
Merge branch 'master' into add-connect-content-website
danilo-leal Jan 29, 2024
8fa0551
adding a feature section and general adjustments
danilo-leal Jan 29, 2024
024a046
fix lint CI
danilo-leal Jan 29, 2024
9067777
add content about the three main features
danilo-leal Feb 6, 2024
cd43f54
general reformatting and new copywriting
danilo-leal Feb 6, 2024
916b88f
Merge branch 'master' into add-connect-content-website
danilo-leal Feb 6, 2024
870e221
add the email field on the features section
danilo-leal Feb 6, 2024
d3a04fc
copywriting and styles on the Design Kits section
danilo-leal Feb 6, 2024
6bf6537
fix the Storybook icon
danilo-leal Feb 6, 2024
c396786
Merge branch 'master' into add-connect-content-website
danilo-leal Feb 15, 2024
ae7497c
plug-in → plugin
danilo-leal Feb 15, 2024
3c246ce
iteration and adjustements
danilo-leal Feb 15, 2024
d80c860
trigger CI checks
danilo-leal Feb 19, 2024
b5d6fce
Merge branch 'master' into add-connect-content-website
danilo-leal Feb 22, 2024
e6a1f7d
Merge branch 'master' into add-connect-content-website
danilo-leal Feb 28, 2024
74a72bb
remove the MUI prefix
danilo-leal Feb 28, 2024
ea67051
add proper images to the Connect Features section
danilo-leal Feb 28, 2024
4e1c597
iterate on the copywriting a bit
danilo-leal Feb 28, 2024
a1e9ba8
tweak the DesignKits section on the other pages
danilo-leal Feb 28, 2024
5a88031
general design and writing updates
danilo-leal Mar 26, 2024
eaf8e5f
Merge branch 'next' into add-connect-content-website
danilo-leal Mar 27, 2024
6981c9d
update brandingTheme after the merge with next
danilo-leal Mar 27, 2024
31efcd0
move the export default to the top
danilo-leal Mar 27, 2024
aa9f4d1
general updates
danilo-leal Mar 27, 2024
d946198
footer name updates
danilo-leal Mar 28, 2024
835dd4b
Merge branch 'next' into add-connect-content-website
danilo-leal Mar 28, 2024
b8e5ea3
more writing updates
danilo-leal Mar 28, 2024
70aefe0
rerun CI checks
danilo-leal Mar 28, 2024
89cb9b7
copywriting updates again
danilo-leal Mar 29, 2024
a1584fa
Sam's review
danilo-leal Mar 29, 2024
a5bb6e0
fix description text from the features section
danilo-leal Apr 3, 2024
528feb8
writing and link updates
danilo-leal Apr 3, 2024
84b8ed1
Merge branch 'next' into add-connect-content-website
danilo-leal Apr 15, 2024
1a450ca
fix Grid usage
danilo-leal Apr 15, 2024
455c4d0
refine the Connect page
danilo-leal Apr 15, 2024
ef16003
stray improvements here and there
danilo-leal Apr 15, 2024
d69b27b
add video to the hero section and fix things
danilo-leal Apr 16, 2024
b325775
don't change anything here for now
danilo-leal Apr 16, 2024
32fd906
fixes to the design kits section
danilo-leal Apr 16, 2024
4671aa4
remove unused import
danilo-leal Apr 16, 2024
7375dfb
remove unused Connect email input + adjust border color
danilo-leal Apr 16, 2024
0ae4ec4
change name to Sync
danilo-leal Apr 19, 2024
d66e2e2
Merge branch 'next' into add-connect-content-website
danilo-leal Apr 19, 2024
44f84bb
fix lint removing nbsp
danilo-leal Apr 19, 2024
29533c4
fix lint: remove nbsp
danilo-leal Apr 22, 2024
f8eb4bd
Merge branch 'next' into add-connect-content-website
danilo-leal Apr 29, 2024
ebabda9
adjust the Design Kits section on the Material UI page
danilo-leal Apr 29, 2024
f3bc6f4
adjust the Sync section on the Design Kits page
danilo-leal Apr 29, 2024
956a9d0
remove the Sync-specific section
danilo-leal Apr 29, 2024
f899af5
fine-tune changes
danilo-leal Apr 29, 2024
d5dfd86
remove old social preview image
danilo-leal Apr 29, 2024
3788539
Fix layout shift
zanivan Apr 30, 2024
d4c7f3a
standardize layout
danilo-leal Apr 30, 2024
77aa108
more style and writing standardization
danilo-leal Apr 30, 2024
e985061
fix grid on the design kit demo section
danilo-leal Apr 30, 2024
650a35e
design kits section: small tweak on the image width on mobile
danilo-leal Apr 30, 2024
963f026
fix frame.demo container styles
danilo-leal Apr 30, 2024
b247a9e
remove redundant copy
danilo-leal Apr 30, 2024
0468058
iterate on copy
danilo-leal Apr 30, 2024
2bd7449
customize the MaterialEnd section adding a "noFaq" prop
danilo-leal Apr 30, 2024
ac26fe7
fix focus issue on the MaterialDesignKits section
danilo-leal Apr 30, 2024
88bcc12
organize components for better reuse and less duplication
danilo-leal Apr 30, 2024
60981e9
fix MaterialDesignKits hover and reuse code
danilo-leal Apr 30, 2024
fe138b0
fix product id order
danilo-leal Apr 30, 2024
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
7 changes: 2 additions & 5 deletions docs/pages/design-kits.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ import AppHeader from 'docs/src/layouts/AppHeader';
import AppFooter from 'docs/src/layouts/AppFooter';
import DesignKitHero from 'docs/src/components/productDesignKit/DesignKitHero';
import DesignKitValues from 'docs/src/components/productDesignKit/DesignKitValues';
import DesignKitDemo from 'docs/src/components/productDesignKit/DesignKitDemo';
import MaterialDesignKits from 'docs/src/components/productMaterial/MaterialDesignKits';
import DesignKitFAQ from 'docs/src/components/productDesignKit/DesignKitFAQ';
import Testimonials from 'docs/src/components/home/Testimonials';
import HeroEnd from 'docs/src/components/home/HeroEnd';
import BrandingCssVarsProvider from 'docs/src/BrandingCssVarsProvider';
import References, { DESIGNKITS_CUSTOMERS } from 'docs/src/components/home/References';
Expand All @@ -29,12 +28,10 @@ export default function DesignKits() {
<Divider />
<DesignKitValues />
<Divider />
<DesignKitDemo />
<MaterialDesignKits gradient />
<Divider />
<DesignKitFAQ />
<Divider />
<Testimonials />
<Divider />
<HeroEnd />
</main>
<Divider />
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 12 additions & 15 deletions docs/src/components/home/DesignKits.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,23 +40,26 @@ const Anchor = styled('a')(({ theme }) => [
{
display: 'inline-block',
position: 'relative',
transitionProperty: 'all',
transitionDuration: '150ms',
transition: 'all 120ms ease',
borderRadius: '50%',
border: '1px solid',
borderColor: (theme.vars || theme).palette.grey[200],
boxShadow: `0px 2px 12px ${alpha(theme.palette.primary[200], 0.3)}`,
backgroundColor: '#FFF',
'&:hover, &:focus': {
borderColor: (theme.vars || theme).palette.primary[300],
boxShadow: `0px 4px 20px ${alpha(theme.palette.primary[400], 0.3)}`,
backgroundColor: (theme.vars || theme).palette.primary[50],
},
} as const,
theme.applyDarkStyles({
borderColor: (theme.vars || theme).palette.primary[900],
backgroundColor: alpha(theme.palette.primaryDark[900], 0.8),
borderColor: (theme.vars || theme).palette.primaryDark[600],
boxShadow: `0px 2px 12px ${alpha(theme.palette.primaryDark[800], 0.5)}`,
'&:hover, &:focus': {
backgroundColor: alpha(theme.palette.primary[900], 0.8),
borderColor: (theme.vars || theme).palette.primary[700],
boxShadow: `0 2px 20px 0 ${alpha(theme.palette.primary[800], 0.5)}`,
boxShadow: `0 2px 16px 0 ${alpha(theme.palette.primary[800], 0.5)}`,
},
}),
]);
Expand Down Expand Up @@ -94,18 +97,12 @@ const DesignToolLogo = React.forwardRef<
<Box
ref={ref}
{...props}
sx={[
(theme) => ({
display: 'flex',
backgroundColor: '#FFF',
p: 2,
borderRadius: '50%',
...theme.applyDarkStyles({
backgroundColor: alpha(theme.palette.primary[900], 0.5),
}),
}),
sx={{
display: 'flex',
p: 2,
borderRadius: '50%',
...(Array.isArray(props.sx) ? props.sx : [props.sx]),
]}
}}
>
<img
src={`/static/branding/design-kits/${brand}-logo.svg`}
Expand Down
34 changes: 21 additions & 13 deletions docs/src/components/productDesignKit/DesignKitFAQ.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import * as React from 'react';
import { styled } from '@mui/material/styles';
import Box from '@mui/material/Box';
import Grid from '@mui/material/Grid';
import Button from '@mui/material/Button';
import KeyboardArrowRightRounded from '@mui/icons-material/KeyboardArrowRightRounded';
Expand All @@ -14,6 +13,16 @@ import InternalLink from 'docs/src/modules/components/Link';
import Section from 'docs/src/layouts/Section';

const faqData = [
{
summary: 'How long until MUI Connect is out?',
danilo-leal marked this conversation as resolved.
Show resolved Hide resolved
detail: (
<React.Fragment>
We&apos;re still polishing it for a &quot;stable&quot; release. Add your email in the input
available in the section above to be notified of any updates as we get further into
development.
</React.Fragment>
),
},
{
summary: 'What long-term support do you offer?',
detail: (
Expand All @@ -31,18 +40,18 @@ const faqData = [
<React.Fragment>
The number of licenses purchased must correspond to the maximum number of editors working
concurrently in a 24 hour period. An editor is somebody contributing changes to the designed
screens that use the UI kits. No licenses are required for viewing the designs.
screens that use the Design kits. No licenses are required for viewing the designs.
</React.Fragment>
),
},
{
summary: 'The UI kit got an update. How do I get it?',
summary: 'The Design kit got an update. How do I get it?',
detail: (
<React.Fragment>
We&apos;ll send you an email when a new release is available. You can access the item on the{' '}
<InternalLink href="https://mui.com/store/account/downloads/">download</InternalLink> page
of your store account. You can find a detailed description of the changes under the
&quot;Changelog&quot; tab on this page.
of your store account and find a detailed description of the changes under
the&quot;Changelog&quot; tab on this page..
</React.Fragment>
),
},
Expand All @@ -64,7 +73,7 @@ const faqData = [
detail: (
<React.Fragment>
We aim to keep feature parity between the Figma, Sketch, and Adobe XD kits where possible.
We have a 50% off coupon for past customers who want to switch between two design tools.
We have a 50% off coupon for past customers who want to switch between them.
</React.Fragment>
),
},
Expand All @@ -77,7 +86,7 @@ const Accordion = styled(MuiAccordion)(({ theme }) => ({
borderRadius: theme.shape.borderRadius,
},
'&:hover': {
boxShadow: '1px 1px 20px 0 rgb(90 105 120 / 20%)',
boxShadow: '1px 1px 8px 0 rgb(90 105 120 / 20%)',
},
'&:not(:last-of-type)': {
marginBottom: theme.spacing(2),
Expand Down Expand Up @@ -158,18 +167,17 @@ export default function DesignKitFAQ() {
borderStyle: 'dashed',
borderColor: 'grey.300',
bgcolor: 'white',
textAlign: 'left',
...theme.applyDarkStyles({
borderColor: 'primaryDark.600',
bgcolor: 'primaryDark.800',
}),
})}
>
<Box sx={{ textAlign: 'left' }}>
<Typography variant="body2" color="text.primary" fontWeight="bold">
Got any questions unanswered or need more help?
</Typography>
</Box>
<Typography variant="body2" color="text.primary" sx={{ my: 1, textAlign: 'left' }}>
<Typography variant="body2" color="text.primary" fontWeight="bold" gutterBottom>
Got any questions unanswered or need more help?
</Typography>
<Typography variant="body2" color="text.primary" gutterBottom>
From community help to premium business support, we&apos;re here to help.
</Typography>
<Button
Expand Down
28 changes: 11 additions & 17 deletions docs/src/components/productDesignKit/DesignKitHero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@ import * as React from 'react';
import { alpha } from '@mui/material/styles';
import Box from '@mui/material/Box';
import Typography from '@mui/material/Typography';
import Button from '@mui/material/Button';
import KeyboardArrowRightRounded from '@mui/icons-material/KeyboardArrowRightRounded';
import GradientText from 'docs/src/components/typography/GradientText';
import HeroContainer from 'docs/src/layouts/HeroContainer';
import IconImage from 'docs/src/components/icon/IconImage';
import Link from 'docs/src/modules/components/Link';
import GetStartedButtons from 'docs/src/components/home/GetStartedButtons';
import {
DesignKitImagesSet1,
DesignKitImagesSet2,
Expand Down Expand Up @@ -46,17 +44,12 @@ export default function TemplateHero() {
Pick your favorite design tool to enjoy and use Material UI components. Boost
consistency and facilitate communication when working with developers.
</Typography>
<Button
component={Link}
noLinkStyle
href="https://mui.com/store/?utm_source=marketing&utm_medium=referral&utm_campaign=design-cta#design"
size="large"
variant="contained"
endIcon={<KeyboardArrowRightRounded />}
sx={{ width: { xs: '100%', sm: 'auto' } }}
>
Buy now
</Button>
<GetStartedButtons
primaryLabel="Buy now"
primaryUrl="https://mui.com/store/?utm_source=marketing&utm_medium=referral&utm_campaign=design-cta#design"
secondaryLabel="Figma Preview"
secondaryUrl="https://www.figma.com/community/file/912837788133317724/material-ui-for-figma-and-mui-x"
/>
</Box>
}
right={
Expand All @@ -70,9 +63,10 @@ export default function TemplateHero() {
width: '100%',
height: '100%',
zIndex: 1,
background: `linear-gradient(90deg, ${
(theme.vars || theme).palette.primaryDark[900]
} 1%, ${alpha(theme.palette.primaryDark[900], 0.5)})`,
background: `linear-gradient(90deg, ${alpha(
theme.palette.primaryDark[900],
0.8,
)} 1%, ${alpha(theme.palette.primaryDark[900], 0.1)})`,
opacity: 0,
...theme.applyDarkStyles({
opacity: 1,
Expand Down
176 changes: 176 additions & 0 deletions docs/src/components/productMaterial/MUIConnectSignUp.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,176 @@
import * as React from 'react';
import { SxProps } from '@mui/system';
import { Theme, styled, alpha } from '@mui/material/styles';
import Alert from '@mui/material/Alert';
import Box from '@mui/material/Box';
import Button from '@mui/material/Button';
import FormLabel from '@mui/material/FormLabel';
import FormHelperText from '@mui/material/FormHelperText';
import InputBase, { inputBaseClasses } from '@mui/material/InputBase';
import CheckCircleRoundedIcon from '@mui/icons-material/CheckCircleRounded';

const MUI_CONNECT_TESTER_SIGNUP_URL =
'https://f0433e60.sibforms.com/serve/MUIFAEl9y_vZ59Eato2gk5uDWRUAmkO_vJPSHZa_neoS1qya4NBd-0xFNSN_2ag0OCIx6VFJFF5TJk7ts1jZt1NmhkzvDC9CTT7oobVw_PHr1NR5FOfzBZqlv-bdms8_skT4IqBrgAYF6BUAEbI9rONx2h_3kkd0tLk16NnCkSJoIKJ41vasa3RRbbgt1NzBTLs9ojkbnxFO1dXp';

const Form = styled('form')({});

function searchParams(params: any) {
return Object.keys(params)
.filter((key) => params[key] != null)
.map((key) => `${encodeURIComponent(key)}=${encodeURIComponent(params[key])}`)
.join('&');
}

export default function MUIConnectSignUp({ sx }: { sx?: SxProps<Theme> }) {
const [form, setForm] = React.useState<{
email: string;
status: 'initial' | 'loading' | 'failure' | 'sent';
}>({
email: '',
status: 'initial',
});
const handleSubmit = async (event: React.FormEvent<HTMLFormElement>) => {
event.preventDefault();
setForm((current) => ({ ...current, status: 'loading' }));
try {
await fetch(MUI_CONNECT_TESTER_SIGNUP_URL, {
method: 'POST',
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
},
mode: 'no-cors',
body: searchParams({
EMAIL: form.email,
email_address_check: '',
locale: 'en',
}),
});
setForm((current) => ({ ...current, status: 'sent' }));
} catch (error) {
setForm((current) => ({ ...current, status: 'failure' }));
}
};
if (form.status === 'sent') {
return (
<Alert
severity="success"
sx={[
(theme) => ({
bgcolor: 'success.50',
...theme.applyDarkStyles({
bgcolor: 'primaryDark.700',
}),
}),
...(Array.isArray(sx) ? sx : [sx]),
]}
iconMapping={{
success: (
<CheckCircleRoundedIcon
fontSize="small"
sx={(theme: Theme) => ({
color: 'success.700',
...theme.applyDarkStyles({
color: 'success.600',
}),
})}
/>
),
}}
>
<Box mt="3px">
Thanks for signing up! We will contact you when you can start testing MUI Connect.
</Box>
</Alert>
);
}
return (
<Form onSubmit={handleSubmit} sx={sx}>
<FormLabel
htmlFor="email-subscribe"
sx={{ typography: 'caption', color: 'text.secondary', fontWeight: 'medium' }}
>
Your email
</FormLabel>
<Box
sx={{
display: 'flex',
flexDirection: { xs: 'column', sm: 'row' },
mt: 1,
gap: 1.5,
}}
>
<InputBase
id="email-subscribe"
name="email"
type="email"
placeholder="[email protected]"
value={form.email}
onChange={(event) => setForm({ email: event.target.value, status: 'initial' })}
inputProps={{ required: true }}
sx={[
(theme) => ({
flexGrow: 1,
minWidth: 220,
borderRadius: 1,
border: '1px solid',
bgcolor: '#fff',
boxShadow: `inset 0 1px 2px ${
(theme.vars || theme).palette.grey[50]
}, 0 1px 0.5px ${alpha(theme.palette.grey[100], 0.6)}`,
borderColor: 'grey.200',
typography: 'body2',
'&:hover': {
borderColor: 'grey.300',
boxShadow: `inset 0 1px 2px ${(theme.vars || theme).palette.grey[50]}, 0 1px 2px ${
(theme.vars || theme).palette.grey[100]
}`,
},
[`&.${inputBaseClasses.focused}`]: {
boxShadow: `0 0 0 3px ${(theme.vars || theme).palette.primary[200]}`,
borderColor: 'primary.300',
},
[`& .${inputBaseClasses.input}`]: {
borderRadius: `calc(${theme.shape.borderRadius}px - 1px)`,
py: 1,
px: 1.5,
},
}),
(theme) =>
theme.applyDarkStyles({
bgcolor: 'primaryDark.800',
boxShadow: `inset 0 1px 1px ${
(theme.vars || theme).palette.primaryDark[900]
}, 0 1px 0.5px ${(theme.vars || theme).palette.common.black}`,
borderColor: 'primaryDark.600',
'&:hover': {
borderColor: 'primaryDark.400',
boxShadow: `inset 0 1px 1px ${
(theme.vars || theme).palette.primaryDark[900]
}, 0 1px 2px ${(theme.vars || theme).palette.common.black}`,
},
[`&.${inputBaseClasses.focused}`]: {
boxShadow: `0 0 0 3px ${(theme.vars || theme).palette.primary[800]}`,
borderColor: 'primary.600',
},
}),
]}
/>
<Button variant="outlined" disabled={form.status === 'loading'} type="submit">
Sign up
</Button>
</Box>
{form.status === 'failure' && (
<FormHelperText
sx={(theme) => ({
color: 'warning.800',
...theme.applyDarkStyles({
color: 'warning.500',
}),
})}
>
Oops! Something went wrong, please try again later.
</FormHelperText>
)}
</Form>
);
}
Loading