From 2823a9b020006b8e008a9b966478d17596be091e Mon Sep 17 00:00:00 2001 From: Halit Aksoy Date: Thu, 4 Apr 2024 13:40:57 +0300 Subject: [PATCH] [frontend] add privacy page --- frontend/src/MancalaApp.tsx | 3 + frontend/src/routes/PrivacyPage.tsx | 87 +++++++++++++++++++++++++++++ 2 files changed, 90 insertions(+) create mode 100644 frontend/src/routes/PrivacyPage.tsx diff --git a/frontend/src/MancalaApp.tsx b/frontend/src/MancalaApp.tsx index 27e2a36..9c69c48 100644 --- a/frontend/src/MancalaApp.tsx +++ b/frontend/src/MancalaApp.tsx @@ -14,6 +14,7 @@ import { RTMTWS } from './rtmt/rtmt_websocket'; import { getColorByBrightness } from './util/ColorUtil'; import { Theme } from './theme/Theme'; import LobyPage from './routes/LobyPage'; +import PrivacyPage from './routes/PrivacyPage'; import swal from 'sweetalert'; import { ConnectionState } from './rtmt/rtmt'; import Util from './util/Util'; @@ -80,6 +81,8 @@ const MancalaApp: FunctionComponent = () => { }> + }> + diff --git a/frontend/src/routes/PrivacyPage.tsx b/frontend/src/routes/PrivacyPage.tsx new file mode 100644 index 0000000..417d226 --- /dev/null +++ b/frontend/src/routes/PrivacyPage.tsx @@ -0,0 +1,87 @@ +import * as React from 'react'; +import { FunctionComponent, useEffect } from 'react'; +import { Link, useNavigate } from 'react-router-dom'; +import HeaderBar from '../components/headerbar/HeaderBar'; +import HeaderbarIcon from '../components/headerbar/HeaderbarIcon'; +import HeaderbarTitle from '../components/headerbar/HeaderbarTitle'; +import ThemeSwitchMenu from '../components/headerbar/ThemeSwitchMenu'; +import PageContainer from '../components/PageContainer'; +import Row from '../components/Row'; +import { Context } from '../context/context'; +import { Theme } from '../theme/Theme'; +import { getColorByBrightness } from '../util/ColorUtil'; + +const PrivacyPage: FunctionComponent<{ + context: Context, + userKey?: string, + theme: Theme +}> = ({ context, userKey, theme }) => { + + const textColorOnAppBar = getColorByBrightness( + context.themeManager.theme.appBarBgColor, + context.themeManager.theme.textColor, + context.themeManager.theme.textLightColor + ); + const textColorOnBoard = getColorByBrightness( + context.themeManager.theme.background, + "#000", + "#aaa" + ); + return ( + + + + + + + + + + + + + + +
+ +

Privacy Policy

+

The Mancala team and volunteers built the Mancala app as a open source app. This SERVICE is provided by mancala team and volunteers at no cost and is intended + for use as is.

+

This page is used to inform website visitors regarding our policies with the collection, use, and + disclosure of Personal Information if anyone decided to use our Service.

+ +

The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, + which is accessible at Mancala, unless otherwise defined in this Privacy Policy.

+ +

Information Collection and Use

+

The application does not collect any user information and data. The application uses a unique key received from the remote server and stored on the client to identify the anonymous user.

+ +

Cookies

+

Cookies are files with small amount of data that is commonly used an anonymous unique identifier. + These are sent to your browser from the website that you visit and are stored on your devices’s + internal memory.

+ +

Security

+

We value your trust in providing us your Personal Information, thus we are striving to use + commercially acceptable means of protecting it. But remember that no method of transmission over + the internet, or method of electronic storage is 100% secure and reliable, and we cannot + guarantee its absolute security.

+ +

Changes to This Privacy Policy

+

We may update our Privacy Policy from time to time. Thus, you are advised to review this page + periodically for any changes. We will notify you of any changes by posting the new Privacy Policy + on this page. These changes are effective immediately, after they are posted on this page.

+ +

Contact Us

+

If you have any questions or suggestions about our Privacy Policy, do not hesitate to contact + us.

+
+
+ ); +} + +export default PrivacyPage; \ No newline at end of file