Merge pull request #2620 from apple502j/titled-404

Set title for 404 pages
This commit is contained in:
Benjamin Wheeler 2019-01-09 14:44:09 -05:00 committed by GitHub
commit f26e6f2190
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,24 +1,30 @@
const React = require('react'); const React = require('react');
const Helmet = require('react-helmet').default;
const FormattedMessage = require('react-intl').FormattedMessage; const FormattedMessage = require('react-intl').FormattedMessage;
const FlexRow = require('../../components/flex-row/flex-row.jsx'); const FlexRow = require('../../components/flex-row/flex-row.jsx');
require('./not-available.scss'); require('./not-available.scss');
const ProjectNotAvailable = () => ( const ProjectNotAvailable = () => (
<div className="not-available-outer"> <React.Fragment>
<FlexRow className="inner"> <Helmet>
<img <title>Scratch - Imagine, Program, Share</title>
className="not-available-image" </Helmet>
src="/images/404-giga.png" <div className="not-available-outer">
/> <FlexRow className="inner">
<h1> <img
<FormattedMessage id="general.notAvailableHeadline" /> className="not-available-image"
</h1> src="/images/404-giga.png"
<p> />
<FormattedMessage id="general.notAvailableSubtitle" /> <h1>
</p> <FormattedMessage id="general.notAvailableHeadline" />
</FlexRow> </h1>
</div> <p>
<FormattedMessage id="general.notAvailableSubtitle" />
</p>
</FlexRow>
</div>
</React.Fragment>
); );
module.exports = ProjectNotAvailable; module.exports = ProjectNotAvailable;