chore: updated privacy and tos
This commit is contained in:
11
src/App.js
11
src/App.js
@@ -16,6 +16,8 @@ import Login from "./components/screens/Login"
|
||||
import Search from "./components/screens/Search"
|
||||
import Register from "./components/screens/Register"
|
||||
import Start from "./components/screens/Start"
|
||||
import Terms from "./components/screens/Terms"
|
||||
import Privacy from "./components/screens/Privacy"
|
||||
import PrivateRoute from "./components/PrivateRoute"
|
||||
|
||||
import { OnlineContext } from "./components/context/online"
|
||||
@@ -117,9 +119,16 @@ class App extends Component {
|
||||
component={Search}
|
||||
exact
|
||||
/>
|
||||
<Route path="/user" component={User} exact />
|
||||
<PrivateRoute
|
||||
authed={authed}
|
||||
path="/user"
|
||||
component={User}
|
||||
exact
|
||||
/>
|
||||
<Route path="/login" component={Login} exact />
|
||||
<Route path="/register" component={Register} exact />
|
||||
<Route path="/terms" component={Terms} exact />
|
||||
<Route path="/privacy" component={Privacy} exact />
|
||||
<Route path="/" component={Start} exact />
|
||||
</RouteLayout>
|
||||
</FullscreenLayout>
|
||||
|
||||
93
src/components/screens/Privacy/Privacy.js
Normal file
93
src/components/screens/Privacy/Privacy.js
Normal file
@@ -0,0 +1,93 @@
|
||||
import React, { Component } from "react"
|
||||
import { withRouter } from "react-router-dom"
|
||||
import styled from "@emotion/styled"
|
||||
import { compose } from "recompose"
|
||||
import { format } from "date-fns"
|
||||
import { withTheme } from "emotion-theming"
|
||||
|
||||
import { Input, Button, P } from "../../elements"
|
||||
import { SIZES } from "../../../styles/constants"
|
||||
import { StyledLink as Link } from "../../elements"
|
||||
|
||||
const Terms = ({}) => (
|
||||
<>
|
||||
<h1>Privacy Policy</h1>
|
||||
<em>Last update: April 30, 2019</em>
|
||||
<P>
|
||||
Sol Journal supports the following browsers: Chrome (latest), Safari
|
||||
(latest), Firefox (50+)
|
||||
</P>
|
||||
<h2>Rights</h2>
|
||||
<P>
|
||||
You don't have to provide your real name when you register to an account,
|
||||
but you need to use a valid/verifiable email address.
|
||||
<br />
|
||||
<br />
|
||||
You have the right to export your data at any time, in JSON format.
|
||||
<br />
|
||||
<br />
|
||||
Your data will not be intentionally shown to other users or shared with
|
||||
third parties.
|
||||
<br />
|
||||
<br />
|
||||
Your personal data will not be shared with anyone without your consent.
|
||||
<br />
|
||||
<br />
|
||||
Data saved on the hosted version of Sol Journal is encrypted as it is
|
||||
transmitted and stored. However, data is not salted or hashed when it is
|
||||
stored on Google servers so database administrators (me) can view the data
|
||||
as plaintext. I won't view or use the data of other users for any reason
|
||||
but if you would like to have more ownership of your data you can setup
|
||||
the code on your own.
|
||||
<br />
|
||||
<br />
|
||||
If the site ceases operation, you will receive an opportunity to export
|
||||
all your data before the site dies.
|
||||
<br />
|
||||
<br />
|
||||
Any new features that affect privacy will be strictly opt-in.
|
||||
</P>
|
||||
<h2>Responsibilites</h2>
|
||||
<P>
|
||||
You will not use the site to store illegal information or data under
|
||||
United States law (or any law).
|
||||
<br />
|
||||
<br />
|
||||
You have to be at least 18+ to create an account and use the site.
|
||||
<br />
|
||||
<br />
|
||||
You must not abuse the site by knowingly posting malicious code that could
|
||||
harm you or the other users.
|
||||
<br />
|
||||
<br />
|
||||
You may not make automated requests to the site.
|
||||
<br />
|
||||
<br />
|
||||
You may not abuse the registration system.
|
||||
<br />
|
||||
<br />
|
||||
You are responsible for keeping your account secure.
|
||||
<br />
|
||||
<br />I reserve the right to close accounts that abuse the system
|
||||
(millions of entries or overloading services with requests) or use it in
|
||||
an unreasonable manner.
|
||||
</P>
|
||||
<h2>Other</h2>
|
||||
<P>
|
||||
Other important legal stuff Though I want to provide a great service,
|
||||
there are certain things about the service I cannot promise. For example,
|
||||
the services and software are provided “as-is”, at your own risk, without
|
||||
express or implied warranty or condition of any kind. I also disclaim any
|
||||
warranties of merchantability, fitness for a particular purpose or
|
||||
non-infringement. Sol Journal will have no responsibility for any harm to
|
||||
your computer system, loss or corruption of data, or other harm that
|
||||
results from your access to or use of the Services or Software.
|
||||
<br />
|
||||
<br />
|
||||
These Terms can change at any time, but I'll try to be reasonable. This is
|
||||
a service I've always and hope to be able to run it for a long time.
|
||||
</P>
|
||||
</>
|
||||
)
|
||||
|
||||
export default withTheme(Terms)
|
||||
2
src/components/screens/Privacy/index.js
Normal file
2
src/components/screens/Privacy/index.js
Normal file
@@ -0,0 +1,2 @@
|
||||
import Privacy from "./Privacy"
|
||||
export default Privacy
|
||||
@@ -17,6 +17,7 @@ const SearchGrid = styled.div`
|
||||
display: grid;
|
||||
grid-template-columns: 1fr;
|
||||
grid-gap: 10px;
|
||||
margin-bottom: 60px;
|
||||
`
|
||||
const SearchLayout = styled.div`
|
||||
width: 100%;
|
||||
@@ -123,33 +124,36 @@ class Search extends Component {
|
||||
/>
|
||||
</div>
|
||||
) : entries.length > 0 ? (
|
||||
entries.map((entry, index) => (
|
||||
<Link
|
||||
key={index}
|
||||
to={`${entry.year}/${pad(entry.month)}/${pad(entry.day)}`}
|
||||
style={{ textDecoration: "none" }}
|
||||
>
|
||||
<SearchResult
|
||||
css={css`
|
||||
animation: ${fadeKeyFrames} 0.2s ease-in;
|
||||
`}
|
||||
>
|
||||
<div
|
||||
css={css`
|
||||
font-style: italic;
|
||||
color: ${theme.colors.secondary};
|
||||
margin-bottom: 5px;
|
||||
`}
|
||||
entries.map(
|
||||
(entry, index) =>
|
||||
entry.text.length > 1 && (
|
||||
<Link
|
||||
key={index}
|
||||
to={`${entry.year}/${pad(entry.month)}/${pad(entry.day)}`}
|
||||
style={{ textDecoration: "none" }}
|
||||
>
|
||||
{entry.day}/{entry.month}/{entry.year}
|
||||
</div>
|
||||
<div>
|
||||
{entry.text.substring(0, 128)}
|
||||
{entry.text.length >= 128 && "..."}
|
||||
</div>
|
||||
</SearchResult>
|
||||
</Link>
|
||||
))
|
||||
<SearchResult
|
||||
css={css`
|
||||
animation: ${fadeKeyFrames} 0.2s ease-in;
|
||||
`}
|
||||
>
|
||||
<div
|
||||
css={css`
|
||||
font-style: italic;
|
||||
color: ${theme.colors.secondary};
|
||||
margin-bottom: 5px;
|
||||
`}
|
||||
>
|
||||
{entry.day}/{entry.month}/{entry.year}
|
||||
</div>
|
||||
<div>
|
||||
{entry.text.substring(0, 128)}
|
||||
{entry.text.length >= 128 && "..."}
|
||||
</div>
|
||||
</SearchResult>
|
||||
</Link>
|
||||
)
|
||||
)
|
||||
) : (
|
||||
<div
|
||||
css={css`
|
||||
|
||||
@@ -42,8 +42,10 @@ const Footer = styled.footer`
|
||||
text-align: center;
|
||||
color: ${props => props.theme.colors.secondary};
|
||||
`
|
||||
const FooterLink = styled.a`
|
||||
const FooterLink = styled(Link)`
|
||||
cursor: pointer;
|
||||
color: ${props => props.theme.colors.secondary};
|
||||
text-decoration: none;
|
||||
margin: 10px;
|
||||
&:hover {
|
||||
color: ${props => props.theme.colors.tertiary};
|
||||
@@ -133,8 +135,8 @@ class Start extends Component {
|
||||
</div>
|
||||
<div>
|
||||
<FooterLink>View on GitHub</FooterLink>
|
||||
<FooterLink>Terms of Service</FooterLink>
|
||||
<FooterLink>Privacy Policy</FooterLink>
|
||||
<FooterLink to="terms">Terms of Service</FooterLink>
|
||||
<FooterLink to="privacy">Privacy Policy</FooterLink>
|
||||
</div>
|
||||
<div>© 2019</div>
|
||||
</Footer>
|
||||
|
||||
80
src/components/screens/Terms/Terms.js
Normal file
80
src/components/screens/Terms/Terms.js
Normal file
@@ -0,0 +1,80 @@
|
||||
import React from "react"
|
||||
|
||||
import { P } from "../../elements"
|
||||
|
||||
const Terms = () => (
|
||||
<>
|
||||
<h1>Terms of Service</h1>
|
||||
<em>Last update: April 30, 2019</em>
|
||||
<h2>Scope of Service</h2>
|
||||
<P>
|
||||
Sol Journal supports the following browsers: Chrome (latest), Safari
|
||||
(latest), Firefox (50+)
|
||||
</P>
|
||||
<h2>Rights</h2>
|
||||
<P>
|
||||
You don't have to provide your real name when you register to an account,
|
||||
but you need to use a valid/verifiable email address.
|
||||
<br />
|
||||
<br />
|
||||
You have the right to export your data at any time, in JSON format.
|
||||
<br />
|
||||
<br />
|
||||
Your data will not be intentionally shown to other users or shared with
|
||||
third parties.
|
||||
<br />
|
||||
<br />
|
||||
Your personal data will not be shared with anyone without your consent.
|
||||
<br />
|
||||
<br />
|
||||
We reserve the right to discontinue any feature of the service at any
|
||||
time. If the site ceases operation, you will receive an opportunity to
|
||||
export all your data before the site dies.
|
||||
<br />
|
||||
<br />
|
||||
Any new features that affect privacy will be strictly opt-in.
|
||||
</P>
|
||||
<h2>Responsibilites</h2>
|
||||
<P>
|
||||
You will not use the site to store illegal information or data under
|
||||
United States law (or any law).
|
||||
<br />
|
||||
<br />
|
||||
You have to be at least 18+ to create an account and use the site.
|
||||
<br />
|
||||
<br />
|
||||
You must not abuse the site by knowingly posting malicious code that could
|
||||
harm you or the other users.
|
||||
<br />
|
||||
<br />
|
||||
You may not make automated requests to the site.
|
||||
<br />
|
||||
<br />
|
||||
You may not abuse the registration system.
|
||||
<br />
|
||||
<br />
|
||||
You are responsible for keeping your account secure.
|
||||
<br />
|
||||
<br />I reserve the right to close accounts that abuse the system
|
||||
(millions of entries or overloading services with requests) or use it in
|
||||
an unreasonable manner.
|
||||
</P>
|
||||
<h2>Other</h2>
|
||||
<P>
|
||||
Other important legal stuff Though I want to provide a great service,
|
||||
there are certain things about the service I cannot promise. For example,
|
||||
the services and software are provided “as-is”, at your own risk, without
|
||||
express or implied warranty or condition of any kind. I also disclaim any
|
||||
warranties of merchantability, fitness for a particular purpose or
|
||||
non-infringement. Sol Journal will have no responsibility for any harm to
|
||||
your computer system, loss or corruption of data, or other harm that
|
||||
results from your access to or use of the Services or Software.
|
||||
<br />
|
||||
<br />
|
||||
These Terms can change at any time, but I'll try to be reasonable. This is
|
||||
a service I've always and hope to be able to run it for a long time.
|
||||
</P>
|
||||
</>
|
||||
)
|
||||
|
||||
export default Terms
|
||||
2
src/components/screens/Terms/index.js
Normal file
2
src/components/screens/Terms/index.js
Normal file
@@ -0,0 +1,2 @@
|
||||
import Terms from "./Terms"
|
||||
export default Terms
|
||||
Reference in New Issue
Block a user