mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2025-03-15 03:48:44 +01:00
33 lines
805 B
JavaScript
33 lines
805 B
JavaScript
import React from 'react';
|
|
import PropTypes from 'prop-types';
|
|
import Sidebar from '../Sidebar';
|
|
import './style.scss';
|
|
|
|
class PageTemplateDetails extends React.Component {
|
|
render() {
|
|
const page = this.props.data.markdownRemark;
|
|
|
|
return (
|
|
<div>
|
|
<Sidebar {...this.props} />
|
|
<div className="content">
|
|
<div className="content__inner">
|
|
<div className="page">
|
|
<h1 className="page__title">{page.frontmatter.title}</h1>
|
|
<div className="page__body" dangerouslySetInnerHTML={{ __html: page.html }} />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|
|
}
|
|
|
|
PageTemplateDetails.propTypes = {
|
|
data: PropTypes.shape({
|
|
markdownRemark: PropTypes.object.isRequired
|
|
})
|
|
};
|
|
|
|
export default PageTemplateDetails;
|