Skip to content

Commit

Permalink
[docs] Move the themes to themes.material-ui.com
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Jun 1, 2019
1 parent d533b46 commit b66b78b
Show file tree
Hide file tree
Showing 18 changed files with 17 additions and 321 deletions.
15 changes: 10 additions & 5 deletions docs/src/modules/components/HomeSteps.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import { connect } from 'react-redux';
import { withStyles } from '@material-ui/core/styles';
import { withStyles, useTheme } from '@material-ui/core/styles';
import Typography from '@material-ui/core/Typography';
import Grid from '@material-ui/core/Grid';
import Button from '@material-ui/core/Button';
Expand Down Expand Up @@ -63,7 +63,7 @@ const styles = theme => ({
fontSize: 30,
},
stepBody: {
minHeight: 270,
minHeight: 290,
},
markdownElement: {
maxWidth: `calc(100vw - ${(theme.spacing(5) + 1) * 2}px)`,
Expand Down Expand Up @@ -91,11 +91,12 @@ const styles = theme => ({
});

const PremiumThemesLink = React.forwardRef((props, ref) => {
return <Link href="/premium-themes" naked prefetch ref={ref} {...props} />;
return <Link href="https://themes.material-ui.com/" naked ref={ref} {...props} />;
});

function HomeSteps(props) {
const { classes, t } = props;
const theme = useTheme();

return (
<Grid container>
Expand Down Expand Up @@ -183,9 +184,13 @@ function HomeSteps(props) {
<Typography variant="subtitle1" component="div" gutterBottom>
{t('themesDescr')}
</Typography>
<Link prefetch href="/premium-themes" className={classes.link}>
<Link href="https://themes.material-ui.com/" className={classes.link}>
<NoSsr>
<img className={classes.img} alt="themes" src="/static/images/themes-preview.jpg" />
<img
className={classes.img}
alt="themes"
src={`/static/images/themes-${theme.palette.type}.jpg`}
/>
</NoSsr>
</Link>
</div>
Expand Down
6 changes: 4 additions & 2 deletions docs/src/pages.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,10 @@ const pages = [
{ pathname: '/guides/flow' },
],
},
{ pathname: '/premium-themes' },

{
pathname: 'https://themes.material-ui.com/',
title: 'Premium Themes',
},
{
pathname: '/discover-more',
children: [
Expand Down
174 changes: 0 additions & 174 deletions docs/src/pages/premium-themes/PremiumThemes.js

This file was deleted.

13 changes: 0 additions & 13 deletions docs/src/pages/premium-themes/premium-themes-de.md

This file was deleted.

13 changes: 0 additions & 13 deletions docs/src/pages/premium-themes/premium-themes-es.md

This file was deleted.

13 changes: 0 additions & 13 deletions docs/src/pages/premium-themes/premium-themes-fr.md

This file was deleted.

13 changes: 0 additions & 13 deletions docs/src/pages/premium-themes/premium-themes-ja.md

This file was deleted.

13 changes: 0 additions & 13 deletions docs/src/pages/premium-themes/premium-themes-pt.md

This file was deleted.

13 changes: 0 additions & 13 deletions docs/src/pages/premium-themes/premium-themes-ru.md

This file was deleted.

13 changes: 0 additions & 13 deletions docs/src/pages/premium-themes/premium-themes-zh.md

This file was deleted.

11 changes: 0 additions & 11 deletions docs/src/pages/premium-themes/premium-themes.md

This file was deleted.

1 change: 1 addition & 0 deletions docs/static/_redirects
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ https://material-ui.dev/* https://material-ui.com/:splat 301!
/lab/about/ /components/about-the-lab/ 301
/lab/* /components/:splat 301
/css-in-js/* /styles/:splat 301
/premium-themes* https://themes.material-ui.com/ 301

# Legacy
/v0.20.0 https://v0.material-ui.com/v0.20.0
Expand Down
Loading

0 comments on commit b66b78b

Please sign in to comment.