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] Improve homepage rebranding #27663

Merged
merged 109 commits into from Aug 18, 2021
Merged
Show file tree
Hide file tree
Changes from 91 commits
Commits
Show all changes
109 commits
Select commit Hold shift + click to select a range
2e410e2
fix relative imports
siriwatknp Aug 9, 2021
1c9e1f6
remove scaling
siriwatknp Aug 9, 2021
6c1748f
fix references mobile columns
siriwatknp Aug 9, 2021
431c7e8
update ThemeToggle to new design
siriwatknp Aug 9, 2021
d7c088d
fix semantic issue
siriwatknp Aug 9, 2021
906648b
add meta tag
siriwatknp Aug 9, 2021
50032cd
fix heading descending order
siriwatknp Aug 9, 2021
2ed9431
wrap code demo with NoSsr to reduce DOM size
siriwatknp Aug 9, 2021
f3e331d
fix a11y issues
siriwatknp Aug 9, 2021
32e1e41
Add more sponsors and adjust img sizes
siriwatknp Aug 10, 2021
b62e48c
fix imports
siriwatknp Aug 10, 2021
ed82e20
fix lowercase and increase maxwidth
siriwatknp Aug 10, 2021
42246f3
add hidden store template images to load before hand
siriwatknp Aug 10, 2021
40717e3
load DesignKitBg before hand
siriwatknp Aug 10, 2021
c3c8d4d
change maxHeight to prevent layout shift
siriwatknp Aug 10, 2021
27de448
remove hardcoded year at Footer
siriwatknp Aug 10, 2021
bec25ef
add social links to Footer
siriwatknp Aug 10, 2021
5f5dbd0
switch to MUI send in blue
siriwatknp Aug 10, 2021
bd10fa8
Merge branch 'next' of https://github.com/mui-org/material-ui into re…
siriwatknp Aug 11, 2021
deef192
add store routes
siriwatknp Aug 11, 2021
dcd604a
rework design kits section
siriwatknp Aug 11, 2021
7a45e73
add links to store for template section
siriwatknp Aug 11, 2021
0bbfe91
fix themed components
siriwatknp Aug 11, 2021
f7b9108
add new themed components
siriwatknp Aug 11, 2021
2310e39
refactor hero section
siriwatknp Aug 11, 2021
de61baf
add focus styles
siriwatknp Aug 11, 2021
167fad7
complete advanced showcase
siriwatknp Aug 12, 2021
924ebab
refactor images
siriwatknp Aug 12, 2021
3c531d0
rename compoents
siriwatknp Aug 12, 2021
0229769
fix references section
siriwatknp Aug 12, 2021
bd20641
adjust color
siriwatknp Aug 12, 2021
b4460d1
minor fixes
siriwatknp Aug 12, 2021
9fd022f
fix a11y
siriwatknp Aug 12, 2021
7cf0e13
fix a11y issues
siriwatknp Aug 12, 2021
6972016
add main section
siriwatknp Aug 12, 2021
600ada5
fix semantic and font
siriwatknp Aug 12, 2021
46f4dd0
add designkits branding prefetch
siriwatknp Aug 12, 2021
c04e34c
remove tabs to reduce motion
siriwatknp Aug 12, 2021
40a09ad
fix aria-label
siriwatknp Aug 12, 2021
3300fa3
fix wording
siriwatknp Aug 12, 2021
14fcff9
prevent focus on Hero components
siriwatknp Aug 12, 2021
164e61d
typo, missing space
oliviertassinari Aug 12, 2021
ac918e4
some overall design adjustments
danilo-leal Aug 12, 2021
66c3a67
success alert styling
danilo-leal Aug 12, 2021
94762bf
wording
danilo-leal Aug 12, 2021
0e1e703
Material-UI -> MUI
danilo-leal Aug 12, 2021
b8fbbe3
sponsors spacing tweak
danilo-leal Aug 12, 2021
e59073a
small adjustments
danilo-leal Aug 12, 2021
d79d749
more small tweaks and copywriting corrections
danilo-leal Aug 12, 2021
ab3006e
sponsors grid refinement
danilo-leal Aug 12, 2021
b0a6f90
minor fixes
siriwatknp Aug 13, 2021
5be2575
remove static images
siriwatknp Aug 13, 2021
b62e5c4
Merge branch 'rebranding/homepage2' of github.com:siriwatknp/material…
siriwatknp Aug 13, 2021
2934d70
fix margin and spacing
siriwatknp Aug 13, 2021
f12c03f
test new ux on the core showcase
siriwatknp Aug 13, 2021
12e85a5
fix layout
siriwatknp Aug 13, 2021
0669545
add transition
siriwatknp Aug 13, 2021
28f421c
support dark on core showcase
siriwatknp Aug 13, 2021
5bad676
run prettier and docs:formatted
siriwatknp Aug 13, 2021
37d79ab
move tooltip to local styling
siriwatknp Aug 13, 2021
2282a98
remove unused code
siriwatknp Aug 13, 2021
1a7f8fd
Update docs/src/components/home/Sponsors.tsx
siriwatknp Aug 14, 2021
052c524
Merge branch 'rebranding/homepage2' of github.com:siriwatknp/material…
siriwatknp Aug 14, 2021
86a871a
Merge branch 'next' of https://github.com/mui-org/material-ui into re…
siriwatknp Aug 14, 2021
33d604b
use xGrid in advanced showcase
siriwatknp Aug 14, 2021
68a3d65
skip tab in hero
siriwatknp Aug 14, 2021
cdf3dfb
minor adjustments
siriwatknp Aug 14, 2021
eed2696
fix types
siriwatknp Aug 14, 2021
3057944
fix switch thumb styles
siriwatknp Aug 14, 2021
38bc73c
add @media (prefers-reduced-motion)
oliviertassinari Aug 14, 2021
55d653c
capitalization convention
oliviertassinari Aug 14, 2021
11c27ee
use the full legal name
oliviertassinari Aug 14, 2021
92eef1b
We will have a third repository for the low-code effort
oliviertassinari Aug 14, 2021
6ab9e8c
add h3 section
oliviertassinari Aug 14, 2021
f06c93d
no jargon
oliviertassinari Aug 14, 2021
caf13be
English format
oliviertassinari Aug 14, 2021
07d0724
fix icons on ValueProposition
siriwatknp Aug 15, 2021
545009c
fix icons in WhatToExpect
siriwatknp Aug 15, 2021
d0174a6
fix icons on about
siriwatknp Aug 15, 2021
1458d93
fix icon color
siriwatknp Aug 15, 2021
1fad0fc
Merge branch 'rebranding/homepage2' of github.com:siriwatknp/material…
siriwatknp Aug 15, 2021
99ee152
add custom theme suggestion
siriwatknp Aug 15, 2021
7d160c5
design details
danilo-leal Aug 16, 2021
ff49213
tweaks on the hamburguer menu and other minor stuff
danilo-leal Aug 16, 2021
9e6a090
Merge branch 'next' into rebranding/homepage2
siriwatknp Aug 17, 2021
adccc60
fix colors
siriwatknp Aug 17, 2021
adca51b
cleanup outdated core showcase
siriwatknp Aug 17, 2021
d68fee9
run docs formatted
siriwatknp Aug 17, 2021
27a2fe7
fix stat number
siriwatknp Aug 17, 2021
c2d207a
Merge branch 'next' into rebranding/homepage2
siriwatknp Aug 17, 2021
ac06d82
Merge branch 'next' into rebranding/homepage2
siriwatknp Aug 17, 2021
2319f09
fix merge regression
siriwatknp Aug 17, 2021
4dfd675
fix typo
siriwatknp Aug 17, 2021
c60d682
remove unused code
siriwatknp Aug 17, 2021
7e76995
minor fixes
siriwatknp Aug 17, 2021
4a7abe7
fix switch demo bgcolor
siriwatknp Aug 17, 2021
60654e2
changing company logos to use their proper color
danilo-leal Aug 17, 2021
609664f
minor adjustments on CoreShocase
danilo-leal Aug 17, 2021
d86c922
remove end period in heading titles
danilo-leal Aug 17, 2021
8b642f6
svgs compression
danilo-leal Aug 17, 2021
ba5ff5b
remove x-grid
siriwatknp Aug 18, 2021
fa5bfe0
run prettier
siriwatknp Aug 18, 2021
9064d77
replace useRef with useCallback
siriwatknp Aug 18, 2021
7abb8a0
move demos to rebranding scope
siriwatknp Aug 18, 2021
f2d913e
fix documentation route
siriwatknp Aug 18, 2021
119851e
run prettier
siriwatknp Aug 18, 2021
2ad34fd
remove rebranding cards from demo
siriwatknp Aug 18, 2021
1f6ddd8
remove theme date picker
siriwatknp Aug 18, 2021
d9b090d
remove themeing section
siriwatknp Aug 18, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 9 additions & 4 deletions docs/next.config.js
Expand Up @@ -64,9 +64,13 @@ module.exports = {
config.externals = [
(ctx, callback) => {
const { request } = ctx;
const hasDependencyOnRepoPackages = ['notistack', '@material-ui/data-grid'].includes(
request,
);
const hasDependencyOnRepoPackages = [
'notistack',
'@material-ui/data-grid',
'@material-ui/x-grid',
'@material-ui/x-grid-data-generator',
'@material-ui/x-license',
].includes(request);

if (hasDependencyOnRepoPackages) {
return callback(null);
Expand Down Expand Up @@ -106,7 +110,8 @@ module.exports = {
// transpile 3rd party packages with dependencies in this repository
{
test: /\.(js|mjs|jsx)$/,
include: /node_modules(\/|\\)(notistack|@material-ui(\/|\\)data-grid)/,
include:
/node_modules(\/|\\)(notistack|@material-ui(\/|\\)data-grid|@material-ui(\/|\\)x-grid|@material-ui(\/|\\)x-license|@material-ui(\/|\\)x-grid-data-generator)/,
use: {
loader: 'babel-loader',
options: {
Expand Down
2 changes: 2 additions & 0 deletions docs/package.json
Expand Up @@ -32,6 +32,8 @@
"@fortawesome/react-fontawesome": "^0.1.15",
"@material-ui/core": "5.0.0-beta.4",
"@material-ui/data-grid": "^4.0.0-alpha.37",
"@material-ui/x-grid": "^4.0.0-alpha.37",
"@material-ui/x-grid-data-generator": "^4.0.0-alpha.37",
"@material-ui/docs": "5.0.0-beta.4",
"@material-ui/icons": "5.0.0-beta.4",
"@material-ui/lab": "5.0.0-alpha.43",
Expand Down
8 changes: 8 additions & 0 deletions docs/pages/_app.js
@@ -1,3 +1,11 @@
/* eslint-disable import/first */
import { LicenseInfo } from '@material-ui/x-grid';

// Remove the license warning from demonstration purposes
LicenseInfo.setLicenseKey(
'0f94d8b65161817ca5d7f7af8ac2f042T1JERVI6TVVJLVN0b3J5Ym9vayxFWFBJUlk9MTY1NDg1ODc1MzU1MCxLRVlWRVJTSU9OPTE=',
);

import 'docs/src/modules/components/bootstrap';
// --- Post bootstrap -----
import * as React from 'react';
Expand Down
57 changes: 36 additions & 21 deletions docs/pages/branding/about.tsx
Expand Up @@ -26,6 +26,9 @@ import GradientText from 'docs/src/components/typography/GradientText';
import { getDesignTokens, getThemedComponents } from 'docs/src/modules/brandingTheme';
import ROUTES from 'docs/src/route';
import IconImage from 'docs/src/components/icon/IconImage';
import SvgChat from 'docs/src/icons/SvgChat';
import SvgPerson from 'docs/src/icons/SvgPerson';
import SvgCard from 'docs/src/icons/SvgCard';

let darkTheme = createTheme(getDesignTokens('dark'));

Expand Down Expand Up @@ -173,6 +176,28 @@ const Person = (props: Profile & { sx?: PaperProps['sx'] }) => {
);
};

const Widget = ({
children,
title,
icon,
}: {
children: React.ReactNode;
title: string;
icon: React.ReactElement;
}) => {
return (
<Paper variant="outlined" sx={{ height: '100%', p: 2 }}>
<Typography component="div" variant="body2" fontWeight="bold" sx={{ mb: 1 }}>
<Box sx={{ display: 'inline-block', lineHeight: 0, verticalAlign: 'bottom', mr: 1 }}>
{icon}
</Box>
{title}
</Typography>
{children}
</Paper>
);
};

const teamMembers: Array<Profile> = [
{
src: '/static/branding/about/olivier.jpg',
Expand Down Expand Up @@ -414,7 +439,6 @@ function AboutContent() {
const mode = globalTheme.palette.mode;
return (
<React.Fragment>
<AppHeader />
<Container>
<Box
sx={{
Expand Down Expand Up @@ -596,11 +620,7 @@ function AboutContent() {
</Typography>
<Grid container spacing={2}>
<Grid item xs={12} sm={6} md={4}>
<Paper variant="outlined" sx={{ p: 2, height: '100%' }}>
<Typography component="div" variant="body2" fontWeight="bold" sx={{ mb: 1 }}>
<IconImage name="give-feedback" sx={{ mr: 1 }} />
Give feedback
</Typography>
<Widget icon={<SvgChat />} title="Give feedback">
<Typography variant="body2" color="text.secondary" sx={{ mb: 1 }}>
Tell us what and where we can improve or share your happy moments with us! You can
also up or downvote any page on our documentation. <br />
Expand All @@ -615,14 +635,10 @@ function AboutContent() {
Leave your feedback{' '}
<KeyboardArrowRightRounded fontSize="small" sx={{ mt: '1px' }} />
</Link>
</Paper>
</Widget>
</Grid>
<Grid item xs={12} sm={6} md={4}>
<Paper variant="outlined" sx={{ p: 2, height: '100%' }}>
<Typography component="div" variant="body2" fontWeight="bold" sx={{ mb: 1 }}>
<IconImage name="join-community" sx={{ mr: 1 }} />
Join the community
</Typography>
<Widget icon={<SvgPerson />} title="Join the community">
<Typography variant="body2" color="text.secondary" sx={{ mb: 1 }}>
Become a member of a huge community of developers supporting MUI. You can:
</Typography>
Expand Down Expand Up @@ -668,14 +684,10 @@ function AboutContent() {
<Link href="https://github.com/mui-org/material-ui" variant="body2">
See the repository <KeyboardArrowRightRounded fontSize="small" sx={{ mt: '1px' }} />
</Link>
</Paper>
</Widget>
</Grid>
<Grid item xs={12} sm={6} md={4}>
<Paper variant="outlined" sx={{ height: '100%', p: 2 }}>
<Typography component="div" variant="body2" fontWeight="bold" sx={{ mb: 1 }}>
<IconImage name="support-us" sx={{ mr: 1 }} />
Suport us financially
</Typography>
<Widget icon={<SvgCard />} title="Suport us financially">
<Typography variant="body2" color="text.secondary" sx={{ mb: 1 }}>
If you use Material-UI in a commercial project and would like to support its
continued development by becoming a Sponsor, or in a side or hobby project and would
Expand All @@ -689,13 +701,12 @@ function AboutContent() {
See Open Collective{' '}
<KeyboardArrowRightRounded fontSize="small" sx={{ mt: '1px' }} />
</Link>
</Paper>
</Widget>
</Grid>
</Grid>
</Container>
<HeroEnd />
<Divider />
<AppFooter />
</React.Fragment>
);
}
Expand All @@ -708,7 +719,11 @@ export default function About() {
description="MUI (formerly Material-UI) started back in 2014 to unify React and Material Design. Today, MUI has grown to become one of the world's most popular React libraries – used by a vibrant community of more than 2M developers in over 180 countries."
/>
<CssBaseline />
<AboutContent />
<AppHeader />
<main>
<AboutContent />
</main>
<AppFooter />
</ThemeProvider>
);
}
22 changes: 12 additions & 10 deletions docs/pages/branding/home.tsx
Expand Up @@ -18,20 +18,22 @@ export default function Home() {
return (
<ThemeProvider>
<Head
title="Home page - Material-UI"
title="MUI: A popular React UI framework"
description="The ultimate solution for your UI. MUI provides a robust, customizible and accessible library of foundational and advanced components, enabling you to build your own design system and develop React applications faster."
/>
<CssBaseline />
<AppHeader />
<Hero />
<ReferencesCore />
<ProductSuite />
<ValueProposition />
<DesignSystemComponents />
<Testimonials mode="dark" />
<Sponsors />
<HeroEnd />
<Divider />
<main>
<Hero />
<ReferencesCore />
<ProductSuite />
<ValueProposition />
<DesignSystemComponents />
<Testimonials mode="dark" />
<Sponsors />
<HeroEnd />
<Divider />
</main>
<AppFooter />
</ThemeProvider>
);
Expand Down
26 changes: 14 additions & 12 deletions docs/pages/branding/pricing.tsx
Expand Up @@ -24,18 +24,20 @@ export default function Pricing() {
/>
<CssBaseline />
<AppHeader />
<HeroPricing />
<PricingList /> {/* Mobile, Tablet */}
<Container sx={{ display: { xs: 'none', md: 'block' } }}>
<PricingTable /> {/* Desktop */}
</Container>
<EarlyBird />
<Testimonials />
<WhatToExpect />
<Divider sx={{ mx: 'auto', maxWidth: 1200 }} />
<FAQ />
<HeroEnd />
<Divider />
<main>
<HeroPricing />
<PricingList /> {/* Mobile, Tablet */}
<Container sx={{ display: { xs: 'none', md: 'block' } }}>
<PricingTable /> {/* Desktop */}
</Container>
<EarlyBird />
<Testimonials />
<WhatToExpect />
<Divider sx={{ mx: 'auto', maxWidth: 1200 }} />
<FAQ />
<HeroEnd />
<Divider />
</main>
<AppFooter />
</ThemeProvider>
);
Expand Down
1 change: 1 addition & 0 deletions docs/public/static/branding/companies/amazon-dark.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions docs/public/static/branding/companies/amazon-light.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion docs/public/static/branding/companies/amazon.svg

This file was deleted.