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