CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
sagemathinc

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: sagemathinc/cocalc
Path: blob/master/src/packages/next/pages/policies/index.tsx
Views: 687
1
/*
2
* This file is part of CoCalc: Copyright © 2021 Sagemath, Inc.
3
* License: MS-RSL – see LICENSE.md for details
4
*/
5
6
import { Layout } from "antd";
7
8
import Footer from "components/landing/footer";
9
import Head from "components/landing/head";
10
import Header from "components/landing/header";
11
import IndexList, { DataSource } from "components/landing/index-list";
12
import { POLICIES } from "components/landing/sub-nav";
13
import A from "components/misc/A";
14
import { Customize } from "lib/customize";
15
import withCustomize from "lib/with-customize";
16
17
const dataSourceCoCalcCom = [
18
{
19
link: "/policies/terms",
20
title: "Terms of service",
21
logo: "thumbs-up",
22
description: (
23
<>
24
The <A href="/policies/terms">Terms of Service</A> govern use of CoCalc.
25
</>
26
),
27
},
28
{
29
link: "/policies/copyright",
30
title: "Copyright policies",
31
logo: "dot-circle",
32
description: (
33
<>
34
The <A href="/policies/copyright">Copyright Policy</A> explains how
35
SageMath, Inc. respects copyright policies, and provides a site that
36
does not infringe on others' copyright.
37
</>
38
),
39
},
40
{
41
link: "/policies/privacy",
42
title: "Privacy",
43
logo: "user-secret",
44
description: (
45
<>
46
The <A href="/policies/privacy">Privacy Policy</A> describes how
47
SageMath, Inc. respects the privacy of its users.
48
</>
49
),
50
},
51
{
52
link: "/policies/trust",
53
title: POLICIES.trust.label,
54
logo: "lock-outlined",
55
description: (
56
<>
57
The <A href="/policies/trust">{POLICIES.trust.label}</A> page highlights
58
our SOC 2 {/*and GDPR*/} compliance. We adhere to rigorous standards to
59
protect your data and maintain transparency and accountability in all
60
our operations.
61
</>
62
),
63
},
64
{
65
link: "/policies/thirdparties",
66
title: "Third parties",
67
logo: "users",
68
description: (
69
<>
70
Our <A href="/policies/thirdparties">List of third parties</A>{" "}
71
enumerates what is used to provide CoCalc.
72
</>
73
),
74
},
75
{
76
link: "/policies/ferpa",
77
title: "FERPA compliance statement",
78
logo: "graduation-cap",
79
description: (
80
<>
81
<A href="/policies/ferpa">CoCalc's FERPA Compliance statement</A>{" "}
82
explains how we address FERPA requirements at US educational
83
instituations.
84
</>
85
),
86
},
87
{
88
link: "/policies/accessibility",
89
title: "Accessibility",
90
logo: "eye",
91
description: (
92
<>
93
CoCalc's{" "}
94
<A href="/policies/accessibility">
95
Voluntary Product Accessibility Template (VPAT)
96
</A>{" "}
97
describes how we address accessibility issues.
98
</>
99
),
100
},
101
] as DataSource;
102
103
export default function Policies({ customize }) {
104
function dataSourceOnPrem(): DataSource {
105
const ret: DataSource = [];
106
if (customize.imprint) {
107
ret.push({
108
link: "/policies/imprint",
109
title: "Imprint",
110
logo: "dot-circle",
111
description: <></>,
112
});
113
}
114
if (customize.policies) {
115
ret.push({
116
link: "/policies/policies",
117
title: "Policies",
118
logo: "thumbs-up",
119
description: <></>,
120
});
121
}
122
return ret;
123
}
124
125
const dataSource = customize.onCoCalcCom
126
? dataSourceCoCalcCom
127
: dataSourceOnPrem();
128
const description = customize.onCoCalcCom
129
? "SageMath, Inc.'s terms of service, copyright, privacy and other policies."
130
: "";
131
return (
132
<Customize value={customize}>
133
<Head title="Policies" />
134
<Layout>
135
<Header page="policies" />
136
<IndexList
137
title={`${customize.siteName} Policies`}
138
description={description}
139
dataSource={dataSource}
140
/>
141
<Footer />{" "}
142
</Layout>
143
</Customize>
144
);
145
}
146
147
export async function getServerSideProps(context) {
148
return await withCustomize({ context });
149
}
150
151