diff --git a/public/content/privacy_policy.md b/public/content/privacy_policy.md new file mode 100644 index 0000000..3c639ea --- /dev/null +++ b/public/content/privacy_policy.md @@ -0,0 +1,29 @@ +Privacy Policy +=== +_Last Updated 14 June 2019_ + +Collection and Storage of Data +--- + +kingdombattles.net collects user information including but not limited to email addresses, usernames and passwords provided by it's users. It also collects anonymous information in aggregate including but not limited to user play session length, number of users and rough locations of IP addresses (at a country level) via Google Analytics tools. + +Security Policy +--- + +KR Game Studios, the operational team behind kingdombattles.net, will secure all data gathered from users to the best of it's ability in good faith. In the event of a data breach, notice of the breach will be posted to the publicly available news feed as soon as possible, with any details of the breach that can be released at that time. + +Usage of Provided Emails +--- + +Emails provided to kingdombattles.net may occasionally be used to communicate with players directly for security, promotional and troubleshooting purposes. Emails provided will never be shared with a third party for any reason. + +Children Under 13 +--- + +In order to comply with as many child protection laws as possible, usage of this service is officially disallowed to children under the age of 13. + +Contact Details +--- + +In the event that you wish to correct any information given, or to ensure deletion of information given, you can contact KR Game Studios at their email address here: [krgamestudios@gmail.com](mailto:krgamestudios@gmail.com) + diff --git a/public/content/rules.md b/public/content/rules.md index 3447635..2ae74a3 100644 --- a/public/content/rules.md +++ b/public/content/rules.md @@ -1,4 +1,6 @@ +* No children under the age of 13. * No usernames that are outright hurtful, attack any group or individual, or deliberately cross the line. * Using automated user accounts, or "botting", is not allowed and will result in an immediate ban. * One account per player. -* Don't make me add more rules. \ No newline at end of file +* Don't make me add more rules. + diff --git a/public/content/task_list.md b/public/content/task_list.md index 4f81a5c..b8ec8a6 100644 --- a/public/content/task_list.md +++ b/public/content/task_list.md @@ -1,7 +1,8 @@ Priority List --- -* Privacy policy / no children under 13. +* ~~Privacy policy / no children under 13.~~ +* Unsubscribe from promotional emails. * Delete own account (right to be forgotten). * Write unit tests / refactor for unit tests (ensure that the game doesn't break from an update). * Implement admin panel (write posts without having to commit, interact with the database safely). diff --git a/src/components/app.jsx b/src/components/app.jsx index d268cda..8fe6362 100644 --- a/src/components/app.jsx +++ b/src/components/app.jsx @@ -80,6 +80,7 @@ export default class App extends React.Component { import('./pages/news_index.jsx')} /> import('./pages/rules.jsx')} /> import('./pages/statistics.jsx')} /> + import('./pages/privacy_policy.jsx')} /> import('./pages/page_not_found.jsx')} /> diff --git a/src/components/pages/privacy_policy.jsx b/src/components/pages/privacy_policy.jsx new file mode 100644 index 0000000..bee1061 --- /dev/null +++ b/src/components/pages/privacy_policy.jsx @@ -0,0 +1,44 @@ +import React from 'react'; + +//panels +import CommonLinks from '../panels/common_links.jsx'; +import MarkdownPanel from '../panels/markdown.jsx'; + +class PrivacyPolicy extends React.Component { //NOTE: react isn't liking the generic markdown_page.jsx class + constructor(props) { + super(props); + this.state = { + warning: '' //TODO: unified warning? + }; + } + + render() { + let warningStyle = { + display: this.state.warning.length > 0 ? 'flex' : 'none' + }; + + return ( +
+
+
+ +
+ +
+
+

{this.state.warning}

+
+ + +
+
+
+ ); + } + + setWarning(s) { + this.setState({ warning: s }); + } +}; + +export default PrivacyPolicy; \ No newline at end of file diff --git a/src/components/panels/footer.jsx b/src/components/panels/footer.jsx index c0019bb..6ae6023 100644 --- a/src/components/panels/footer.jsx +++ b/src/components/panels/footer.jsx @@ -4,7 +4,7 @@ class Footer extends React.Component { render() { return ( ); }