mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-27 01:25:52 -05:00
Wear helmet on 404 to set title
This commit is contained in:
parent
976524b64d
commit
8e4124f093
1 changed files with 20 additions and 14 deletions
|
@ -1,24 +1,30 @@
|
|||
const React = require('react');
|
||||
const Helmet = require('react-helmet').default;
|
||||
const FormattedMessage = require('react-intl').FormattedMessage;
|
||||
const FlexRow = require('../../components/flex-row/flex-row.jsx');
|
||||
|
||||
require('./not-available.scss');
|
||||
|
||||
const ProjectNotAvailable = () => (
|
||||
<div className="not-available-outer">
|
||||
<FlexRow className="inner">
|
||||
<img
|
||||
className="not-available-image"
|
||||
src="/images/404-giga.png"
|
||||
/>
|
||||
<h1>
|
||||
<FormattedMessage id="general.notAvailableHeadline" />
|
||||
</h1>
|
||||
<p>
|
||||
<FormattedMessage id="general.notAvailableSubtitle" />
|
||||
</p>
|
||||
</FlexRow>
|
||||
</div>
|
||||
<React.Fragment>
|
||||
<Helmet>
|
||||
<title>Scratch - Imagine, Program, Share</title>
|
||||
</Helmet>
|
||||
<div className="not-available-outer">
|
||||
<FlexRow className="inner">
|
||||
<img
|
||||
className="not-available-image"
|
||||
src="/images/404-giga.png"
|
||||
/>
|
||||
<h1>
|
||||
<FormattedMessage id="general.notAvailableHeadline" />
|
||||
</h1>
|
||||
<p>
|
||||
<FormattedMessage id="general.notAvailableSubtitle" />
|
||||
</p>
|
||||
</FlexRow>
|
||||
</div>
|
||||
</React.Fragment>
|
||||
);
|
||||
|
||||
module.exports = ProjectNotAvailable;
|
||||
|
|
Loading…
Reference in a new issue