Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemathinc
GitHub Repository: sagemathinc/cocalc
Path: blob/master/src/packages/next/pages/policies/index.tsx
1450 views
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/trust",
30
title: POLICIES.trust.label,
31
logo: "lock-outlined",
32
description: (
33
<>
34
The <A href="/policies/trust">{POLICIES.trust.label}</A> page highlights
35
our compliance with laws and frameworks, such as GDPR and SOC 2. We
36
adhere to rigorous standards to protect your data and maintain
37
transparency and accountability in all our operations.
38
</>
39
),
40
},
41
{
42
link: "/policies/copyright",
43
title: "Copyright policies",
44
logo: "dot-circle",
45
description: (
46
<>
47
The <A href="/policies/copyright">Copyright Policy</A> explains how
48
SageMath, Inc. respects copyright policies, and provides a site that
49
does not infringe on others' copyright.
50
</>
51
),
52
},
53
{
54
link: "/policies/privacy",
55
title: "Privacy",
56
logo: "user-secret",
57
description: (
58
<>
59
The <A href="/policies/privacy">Privacy Policy</A> describes how
60
SageMath, Inc. respects the privacy of its users.
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