{"size": 765, "ext": "js", "max_stars_repo_path": "src/components/common/PageTitle.js", "max_stars_repo_name": "rahulyesantharao/personal-website-m2", "max_stars_repo_stars_event_min_datetime": "2018-07-16T18:33:45.000Z", "max_stars_repo_stars_event_max_datetime": "2018-07-16T18:33:45.000Z", "max_issues_repo_path": "src/components/common/PageTitle.js", "max_issues_repo_name": "rahulyesantharao/personal-website-m2", "max_issues_repo_issues_event_min_datetime": "2017-12-09T05:06:01.000Z", "max_issues_repo_issues_event_max_datetime": "2019-01-03T23:05:02.000Z", "max_forks_repo_path": "src/components/common/PageTitle.js", "max_forks_repo_name": "rahulyesantharao/personal-website-m2", "max_forks_repo_forks_event_min_datetime": "2018-07-16T18:33:45.000Z", "max_forks_repo_forks_event_max_datetime": "2018-07-16T18:33:45.000Z"}
{"max_stars_count": 1, "max_issues_count": 8, "max_forks_count": 1, "avg_line_length": 23.90625, "max_line_length": 79, "alphanum_fraction": 0.6470588235}
import React from 'react';
import PropTypes from 'prop-types';

const titleStyle = {
  backgroundSize: 'cover',
  backgroundPosition: '50% 100%',
  backgroundAttachment: 'fixed',
  backgroundRepeat: 'no-repeat',
  padding: '90px 0'
};

const PageTitle = (props) => {
  return(
    <section className="container-fluid" id={props.titleId} style={titleStyle}>
      <div className="container">
        <div className="columns is-centered">
          <div className="column is-12-mobile is-8-tablet is-8-desktop">
            <h1><span>{props.titleText}</span></h1>
          </div>
        </div>
      </div>
    </section>
  );
}

PageTitle.propTypes = {
  titleId: PropTypes.string.isRequired,
  titleText: PropTypes.string.isRequired
};

export default PageTitle;
