Add more ES6
This commit is contained in:
parent
60f90817ad
commit
0650e6b3b8
17 changed files with 374 additions and 383 deletions
37
views/error.js
Normal file
37
views/error.js
Normal file
|
@ -0,0 +1,37 @@
|
|||
import React from 'react';
|
||||
import Head from './head';
|
||||
import Foot from './foot';
|
||||
|
||||
export default React.createClass({
|
||||
|
||||
render: function() {
|
||||
return (
|
||||
<html>
|
||||
<Head {...this.props} />
|
||||
<body>
|
||||
<div className='error'>
|
||||
<header>
|
||||
<div className='container'>
|
||||
<div className='row'>
|
||||
<div className='col-md-12'>
|
||||
<h1><a href='/'>match<span className='audio-lighten'>.audio</span></a></h1>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<div className='container main'>
|
||||
<div className='row'>
|
||||
<div className='col-md-6 col-md-offset-3'>
|
||||
<h2>{this.props.status}</h2>
|
||||
<h1>{this.props.message}</h1>
|
||||
<pre>{this.props.error.stack || ''}</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<Foot page='error' />
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue