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/share/index.tsx
Views: 687
1
/*
2
* This file is part of CoCalc: Copyright © 2020 Sagemath, Inc.
3
* License: MS-RSL – see LICENSE.md for details
4
*/
5
6
import { Layout } from "antd";
7
import Link from "next/link";
8
9
import Footer from "components/landing/footer";
10
import Head from "components/landing/head";
11
import Header from "components/landing/header";
12
import Logo from "components/logo";
13
import SiteName from "components/share/site-name";
14
import { Customize } from "lib/share/customize";
15
import withCustomize from "lib/with-customize";
16
17
export default function Home({ customize }) {
18
return (
19
<Customize value={customize}>
20
<Head title={"Shared Public Files"} />
21
<Layout>
22
<Header />
23
<div style={{ fontSize: "16pt", textAlign: "center", margin: "60px" }}>
24
<Logo type="icon" style={{ width: "120px", height: "120px" }} />
25
<br />
26
<br />
27
<br />
28
Browse recent{" "}
29
<Link href="/share/public_paths/page/1">
30
<SiteName /> Shared Public Files...
31
</Link>
32
</div>
33
<Footer />
34
</Layout>
35
</Customize>
36
);
37
}
38
39
export async function getServerSideProps(context) {
40
return await withCustomize({ context });
41
}
42
43