Commit 68c8deca authored by Eric Rosenbaum's avatar Eric Rosenbaum

Remove microworlds pages

parent 8e6af596
......@@ -86,12 +86,6 @@ source_file = src/views/splash/l10n.json
source_lang = en
type = KEYVALUEJSON
[scratch-website.microworlds-homepage-l10njson]
file_filter = localizations/microworlds-homepage/<lang>.json
source_file = src/views/microworldshomepage/l10n.json
source_lang = en
type = KEYVALUEJSON
[scratch-website.conference-index-2017-l10njson]
file_filter = localizations/conference-index-2017/<lang>.json
source_file = src/views/conference/2017/index/l10n.json
......
......@@ -162,41 +162,6 @@
"view": "messages/container",
"title": "Messages"
},
{
"name": "microworld-art",
"pattern": "^/microworlds/art",
"routeAlias": "/microworlds",
"view": "microworld/art/art",
"title": "Art"
},
{
"name": "microworld-fashion",
"pattern": "^/microworlds/fashion",
"routeAlias": "/microworlds",
"view": "microworld/fashion/fashion",
"title": "Fashion"
},
{
"name": "microworld-hiphop",
"pattern": "^/microworlds/hiphop",
"routeAlias": "/microworlds",
"view": "microworld/hiphop/hiphop",
"title": "Hip Hop Dance"
},
{
"name": "microworld-soccer",
"pattern": "^/microworlds/soccer",
"routeAlias": "/microworlds",
"view": "microworld/soccer/soccer",
"title": "Soccer"
},
{
"name": "microworlds-homepage",
"pattern": "^/microworlds/go/?(\\?.*)?$",
"routeAlias": "/microworlds",
"view": "microworldshomepage/microworldshomepage",
"title": "Microworlds"
},
{
"name": "projects",
"pattern": "^/projects(/editor|(/\\d+(/editor|/fullscreen|/embed)?)?)?/?(\\?.*)?$",
......
This diff is collapsed.
const React = require('react'); // eslint-disable-line
const Microworld = require('../../../components/microworld/microworld.jsx');
const Page = require('../../../components/page/www/page.jsx');
const render = require('../../../lib/render.jsx');
const microworldData = require('./art.json');
render(<Page><Microworld microworldData={microworldData} /></Page>, document.getElementById('app'));
This diff is collapsed.
const React = require('react'); // eslint-disable-line
const Microworld = require('../../../components/microworld/microworld.jsx');
const Page = require('../../../components/page/www/page.jsx');
const render = require('../../../lib/render.jsx');
const microworldData = require('./fashion.json');
render(<Page><Microworld microworldData={microworldData} /></Page>, document.getElementById('app'));
This diff is collapsed.
const React = require('react'); // eslint-disable-line
const Microworld = require('../../../components/microworld/microworld.jsx');
const Page = require('../../../components/page/www/page.jsx');
const render = require('../../../lib/render.jsx');
const microworldData = require('./hiphop.json');
render(<Page><Microworld microworldData={microworldData} /></Page>, document.getElementById('app'));
{
"title":"Soccer",
"description":[
"Make your own soccer animation or game!"
],
"microworld_project_id":"133865271",
"show_forum":false
}
const React = require('react'); // eslint-disable-line
const Microworld = require('../../../components/microworld/microworld.jsx');
const Page = require('../../../components/page/www/page.jsx');
const render = require('../../../lib/render.jsx');
const microworldData = require('./soccer.json');
render(<Page><Microworld microworldData={microworldData} /></Page>, document.getElementById('app'));
{
"tile.tutorial": "Microworld",
"tile.tryIt": "Try It",
"microworlds.title": "Scratch Microworlds",
"microworlds.subTitle": "You can get started with Scratch in a variety of ways. Click a picture to try one.",
"microworlds.HipHopTitle": "Hip Hop Dance",
"microworlds.FashionTitle": "Fashion",
"microworlds.HouseTitle": "Interactive House",
"microworlds.MakeMusicTitle": "Make Music",
"microworlds.SoccerTitle": "Soccer",
"microworlds.JokeTitle": "Make a Joke",
"microworlds.ArtTitle": "Make Art"
}
[
{
"title": "microworlds.HipHopTitle",
"thumbUrl": "//cdn.scratch.mit.edu/static/site/projects/thumbnails/13386/5050.png",
"tutorialLoc": "/pathways/hiphop"
},
{
"title": "microworlds.MakeMusicTitle",
"thumbUrl": "//cdn.scratch.mit.edu/static/site/projects/thumbnails/13386/5393.png",
"tutorialLoc": "/projects/embed-editor/133865393/?isMicroworld=true"
},
{
"title": "microworlds.SoccerTitle",
"thumbUrl": "//cdn.scratch.mit.edu/static/site/projects/thumbnails/13386/5271.png",
"tutorialLoc": "/projects/embed-editor/133865271/?isMicroworld=true"
},
{
"title": "microworlds.FashionTitle",
"thumbUrl": "//cdn.scratch.mit.edu/static/site/projects/thumbnails/13386/5474.png",
"tutorialLoc": "/pathways/fashion"
},
{
"title": "microworlds.ArtTitle",
"thumbUrl": "//cdn.scratch.mit.edu/static/site/projects/thumbnails/13386/5435.png",
"tutorialLoc": "/projects/embed-editor/133865435/?isMicroworld=true"
},
{
"title": "microworlds.JokeTitle",
"thumbUrl": "//cdn.scratch.mit.edu/static/site/projects/thumbnails/13386/5327.png",
"tutorialLoc": "/projects/embed-editor/133865327/?isMicroworld=true"
},
{
"title": "microworlds.HouseTitle",
"thumbUrl": "//cdn.scratch.mit.edu/static/site/projects/thumbnails/13383/5490.png",
"tutorialLoc": "/projects/embed-editor/133835490/?isMicroworld=true"
}
]
const injectIntl = require('react-intl').injectIntl;
const intlShape = require('react-intl').intlShape;
const FormattedHTMLMessage = require('react-intl').FormattedHTMLMessage;
const FormattedMessage = require('react-intl').FormattedMessage;
const React = require('react');
const MasonryGrid = require('../../components/masonrygrid/masonrygrid.jsx');
const TitleBanner = require('../../components/title-banner/title-banner.jsx');
const TTTTile = require('../../components/ttt-tile/ttt-tile.jsx');
const Page = require('../../components/page/www/page.jsx');
const render = require('../../lib/render.jsx');
const Tiles = require('./microworlds.json');
require('./microworldshomepage.scss');
const MicroworldsHomepage = props => (
<div className="microworlds">
<TitleBanner className="masthead mod-blue-bg">
<h1 className="title-banner-h1">
<FormattedMessage id="microworlds.title" />
</h1>
<p className="intro title-banner-p">
<FormattedHTMLMessage id="microworlds.subTitle" />
</p>
</TitleBanner>
<div className="inner">
<MasonryGrid >
{Tiles.map((tile, key) => (
<TTTTile
key={key}
thumbUrl={tile.thumbUrl}
title={props.intl.formatMessage({id: tile.title})}
tutorialLoc={tile.tutorialLoc}
/>
))}
</MasonryGrid>
</div>
</div>
);
MicroworldsHomepage.propTypes = {
intl: intlShape
};
const WrappedMicroworldsHomepage = injectIntl(MicroworldsHomepage);
render(<Page><WrappedMicroworldsHomepage /></Page>, document.getElementById('app'));
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment