From 3076cd412c4e88dea4f9b069cc0949264f819717 Mon Sep 17 00:00:00 2001
From: mathieudutour
Date: Wed, 8 Jan 2020 15:39:43 +0100
Subject: [PATCH] add privacy policy
---
frontend/src/components/footer.tsx | 30 +++++++++++
frontend/src/pages/index.tsx | 4 ++
frontend/src/pages/oauth-redirect.tsx | 6 ++-
frontend/src/pages/privacy-policy.tsx | 76 +++++++++++++++++++++++++++
4 files changed, 114 insertions(+), 2 deletions(-)
create mode 100644 frontend/src/components/footer.tsx
create mode 100644 frontend/src/pages/privacy-policy.tsx
diff --git a/frontend/src/components/footer.tsx b/frontend/src/components/footer.tsx
new file mode 100644
index 0000000..08e891a
--- /dev/null
+++ b/frontend/src/components/footer.tsx
@@ -0,0 +1,30 @@
+import React from 'react'
+import { Link } from 'gatsby'
+import styled from '@emotion/styled'
+
+const Wrapper = styled.footer`
+ position: absolute;
+ width: 100%;
+ bottom: 0;
+ font-size: 10px;
+ opacity: 0.8;
+ text-align: center;
+`
+
+const Separator = styled.span`
+ padding: 0 20px;
+`
+
+const Footer = () => {
+ return (
+
+ Made with ♡ by Mathieu
+
+ Sponsors
+
+ Privacy Policy
+
+ )
+}
+
+export default Footer
diff --git a/frontend/src/pages/index.tsx b/frontend/src/pages/index.tsx
index 8eeb19e..eb68a43 100644
--- a/frontend/src/pages/index.tsx
+++ b/frontend/src/pages/index.tsx
@@ -3,13 +3,16 @@ import styled from '@emotion/styled'
import Layout from '../components/layout'
import SEO from '../components/seo'
+import Footer from '../components/footer'
const Wrapper = styled.div`
text-align: center;
width: 500px;
max-width: 100%;
+ min-height: 100vh;
padding: 3em 15px;
margin: 0 auto;
+ position: relative;
`
const ImageWrapper = styled.div`
@@ -47,6 +50,7 @@ const IndexPage = () => {
>
Log in with streamlabs
+
)
diff --git a/frontend/src/pages/oauth-redirect.tsx b/frontend/src/pages/oauth-redirect.tsx
index bbc30da..29087c9 100644
--- a/frontend/src/pages/oauth-redirect.tsx
+++ b/frontend/src/pages/oauth-redirect.tsx
@@ -1,10 +1,9 @@
import React, { useState, useEffect } from 'react'
-import { graphql } from 'gatsby'
-import Img from 'gatsby-image'
import styled from '@emotion/styled'
import Layout from '../components/layout'
import SEO from '../components/seo'
+import Footer from '../components/footer'
type User = {
id: string
@@ -22,8 +21,10 @@ type User = {
const Wrapper = styled.div`
width: 800px;
max-width: 100%;
+ min-height: 100vh;
padding: 3em 15px;
margin: 0 auto;
+ position: relative;
`
const Data = styled.span`
@@ -100,6 +101,7 @@ const OauthRedirectPage = ({ location }: { location: Location }) => {
alert on streamlabs.
+
)
diff --git a/frontend/src/pages/privacy-policy.tsx b/frontend/src/pages/privacy-policy.tsx
new file mode 100644
index 0000000..eadfbec
--- /dev/null
+++ b/frontend/src/pages/privacy-policy.tsx
@@ -0,0 +1,76 @@
+import React from 'react'
+import styled from '@emotion/styled'
+
+import Layout from '../components/layout'
+import SEO from '../components/seo'
+import Footer from '../components/footer'
+
+const Wrapper = styled.div`
+ text-align: left;
+ width: 600px;
+ max-width: 100%;
+ min-height: 100vh;
+ padding: 3em 15px;
+ margin: 0 auto;
+ position: relative;
+`
+
+const PrivacyPage = () => {
+ return (
+
+
+
+ No analytics
+ No trackers
+ Minimal data stored
+
+ {' '}
+ There is a very small amount of{' '}
+
+ data stored
+
+ :
+
+ {`type User = {
+ id: string // index
+ username: string
+ createdAt: number
+ lastSeenAt: number
+
+ // token by the user to make authenticated calls
+ token: string
+
+ // streamlabs OAuth
+ streamlabsId?: string
+ streamlabsToken?: string
+ streamlabsRefreshToken?: string
+
+ // alert customization https://dev.streamlabs.com/v1.0/reference#alerts
+ image_href?: string
+ sound_href?: string
+ message?: string
+ user_message?: string
+ duration?: string
+ special_text_color?: string
+}`}
+
+
+
+ If you want your data to be removed, please send me an email:
+ mathieu@dutour.me.
+
+ Open Source
+
+ Everything is open source. Check it out here:{' '}
+
+ https://github.com/mathieudutour/streamlabs-github-sponsors-alerts
+
+ .
+
+
+
+
+ )
+}
+
+export default PrivacyPage