Skip to content

Commit

Permalink
add impressum
Browse files Browse the repository at this point in the history
  • Loading branch information
philippotto committed Feb 19, 2018
1 parent 5ad0be1 commit 1d4c4a1
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 0 deletions.
10 changes: 10 additions & 0 deletions app/scripts/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import React, { Component } from "react";
import PitchReadingView from "./views/pitch_reading_view";
import RhythmReadingView from "./views/rhythm_reading_view";
import PrivacyPolicyModal from "./views/privacy_policy_modal";
import ImpressumModal from "./views/impressum_modal";
import NewsletterForm from "./views/newsletter_form";
import PitchStatisticService from "./services/pitch_statistic_service.js";
import RhythmStatisticService from "./services/rhythm_statistic_service.js";
Expand All @@ -21,6 +22,7 @@ export default class App extends Component {
this.state = {
activeGame: "pitch",
showPrivacyPolicy: false,
showImpressum: false,
};
}

Expand Down Expand Up @@ -144,11 +146,19 @@ export default class App extends Component {
<a href="#" onClick={() => this.setState({ showPrivacyPolicy: true })}>
Privacy Policy
</a>
&nbsp;|&nbsp;
<a href="#" onClick={() => this.setState({ showImpressum: true })}>
Impressum
</a>
&nbsp;|&nbsp; &copy; {new Date().getFullYear()}
<PrivacyPolicyModal
show={this.state.showPrivacyPolicy}
onHide={() => this.setState({ showPrivacyPolicy: false })}
/>
<ImpressumModal
show={this.state.showImpressum}
onHide={() => this.setState({ showImpressum: false })}
/>
</footer>
</div>
);
Expand Down
60 changes: 60 additions & 0 deletions app/scripts/views/impressum_modal.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1d4c4a1

Please sign in to comment.