Skip to content

Commit

Permalink
[website] Improve homepage rebranding (#27663)
Browse files Browse the repository at this point in the history
  • Loading branch information
siriwatknp committed Aug 18, 2021
1 parent 72d68c3 commit b0c7b7a
Show file tree
Hide file tree
Showing 136 changed files with 5,092 additions and 2,820 deletions.
57 changes: 36 additions & 21 deletions docs/pages/branding/about.tsx
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
6 changes: 6 additions & 0 deletions docs/public/static/branding/companies/amazon-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions docs/public/static/branding/companies/amazon-light.svg
Loading
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.

Loading

0 comments on commit b0c7b7a

Please sign in to comment.