{"size": 1408, "ext": "js", "max_stars_repo_path": "src/App.js", "max_stars_repo_name": "codedust/frontend", "max_stars_repo_stars_event_min_datetime": "2019-09-29T06:09:22.000Z", "max_stars_repo_stars_event_max_datetime": "2019-11-07T20:57:16.000Z", "max_issues_repo_path": "src/App.js", "max_issues_repo_name": "codedust/frontend", "max_issues_repo_issues_event_min_datetime": "2019-09-28T19:22:20.000Z", "max_issues_repo_issues_event_max_datetime": "2019-10-29T21:30:54.000Z", "max_forks_repo_path": "src/App.js", "max_forks_repo_name": "codedust/frontend", "max_forks_repo_forks_event_min_datetime": "2019-09-30T08:47:41.000Z", "max_forks_repo_forks_event_max_datetime": "2019-11-07T20:57:51.000Z"}
{"max_stars_count": 11, "max_issues_count": 56, "max_forks_count": 4, "avg_line_length": 25.6, "max_line_length": 76, "alphanum_fraction": 0.4744318182}
import React, { Component } from "react";
import { Settings } from "react-bytesize-icons";
import Main from "./Main";
class App extends Component {
  constructor() {
    super();
    this.main = React.createRef();
  }

  showSettings() {
    this.main.current.settings.current.show();
  }

  render() {
    return (
      <>
        <div className="content">
          <div className="header">
            <div className="container">
              <h1 className="title">ParteiDuell</h1>
            </div>
            <label>
              <button onClick={this.showSettings.bind(this)} />
              <Settings
                width="20"
                height="20"
                className="settings-icon"
                strokeWidth="4%"
              />
            </label>
          </div>
          <div className="container" role="main">
            <Main ref={this.main} />
          </div>
        </div>
        <div className="footer">
          <div>Mit ❤&#xFE0E; beim JHFFM19 erstellt.</div>
          <a href="https://www.github.com/jugendhackt/parteiduell-frontend">
            <img
              className="github"
              role="link"
              aria-label="GitHub"
              src="/github.png"
              alt="GitHub"
            />
          </a>
          <img src="/logo.png" alt="Logo" aria-hidden="true" />
        </div>
      </>
    );
  }
}

export default App;
