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