From: Daniel Karbach Date: Tue, 12 Mar 2024 19:13:41 +0000 (+0100) Subject: twitch legal page X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=2ba39c5f4632579146d2663d82149a156a4e96c1;p=alttp.git twitch legal page --- diff --git a/resources/js/app/Routes.js b/resources/js/app/Routes.js index dbdbcae..6391af1 100644 --- a/resources/js/app/Routes.js +++ b/resources/js/app/Routes.js @@ -116,6 +116,13 @@ const router = createBrowserRouter( '../pages/TwitchBot' )} /> + import( + /* webpackChunkName: "twitch" */ + '../pages/TwitchLegal' + )} + /> } /> } /> } /> diff --git a/resources/js/i18n/de.js b/resources/js/i18n/de.js index 8a9e8c6..a2ac1d1 100644 --- a/resources/js/i18n/de.js +++ b/resources/js/i18n/de.js @@ -571,6 +571,11 @@ export default { sendApp: 'Als App Bot senden', sendChat: 'Als Chat Bot senden', }, + twitchLegal: { + heading: 'Twitch Extension Erklärung und Datenschutz', + p1: 'Die Teilnahme am Guessing Game findet ausschließlich via Twitch Chat statt. Solltest du teilnehmen, wird dein Nickname möglicherweise im Chat, im Stream und im Leaderboard erwähnt.', + p2: 'Für die Anzeige des Leaderboards wird eine Anfrage an alttp.localhorst.tv gesendet. Diese Anfrage wird anonymisiert protokolliert und nicht weiter verwertet.', + }, users: { discordTag: 'Discord Tag', editNickname: 'Name bearbeiten', diff --git a/resources/js/i18n/en.js b/resources/js/i18n/en.js index e12e3a3..5ad5c35 100644 --- a/resources/js/i18n/en.js +++ b/resources/js/i18n/en.js @@ -571,6 +571,11 @@ export default { sendApp: 'Send as App Bot', sendChat: 'Send as Chat Bot', }, + twitchLegal: { + heading: 'Twitch extension terms and policies', + p1: 'Participation in the guessing game solely takes place via Twitch chat. Your nickname might show up in chat, on stream and in the leaderboard panel, should you choose to participate.', + p2: 'To display the leaderboard, a request is made to alttp.localhorst.tv. This request is logged anonymously and not further processed.', + }, users: { discordTag: 'Discord tag', editNickname: 'Edit name', diff --git a/resources/js/pages/TwitchLegal.js b/resources/js/pages/TwitchLegal.js new file mode 100644 index 0000000..197a5cb --- /dev/null +++ b/resources/js/pages/TwitchLegal.js @@ -0,0 +1,17 @@ +import React from 'react'; +import { Container } from 'react-bootstrap'; +import { Helmet } from 'react-helmet'; +import { useTranslation } from 'react-i18next'; + +export const Component = () => { + const { t } = useTranslation(); + + return +

{t('twitchLegal.heading')}

+ + {t('twitchLegal.heading')} + +

{t('twitchLegal.p1')}

+

{t('twitchLegal.p2')}

+
; +};