-
Notifications
You must be signed in to change notification settings - Fork 483
Expand file tree
/
Copy pathpage.js
More file actions
23 lines (21 loc) · 756 Bytes
/
page.js
File metadata and controls
23 lines (21 loc) · 756 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import React from 'react';
export default class Page extends React.Component {
render() {
const {title, subTitle, spacing, className, children, footer} = this.props;
return (
<section className={`page ${className || ''}`}>
<div className="page__hd">
<h1 className="page__title">{title}</h1>
<p className="page__desc">{subTitle}</p>
</div>
<div className={`page__bd ${spacing ? 'page__bd_spacing' : ''}`}>
{children}
</div>
{ footer ?
<div className="page__ft">
{footer}
</div> : false }
</section>
);
}
};