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/components/landing/pitch.tsx
Views: 687
1
/*
2
* This file is part of CoCalc: Copyright © 2022 Sagemath, Inc.
3
* License: MS-RSL – see LICENSE.md for details
4
*/
5
6
import { Row, Col } from "antd";
7
import { ReactNode } from "react";
8
9
import A from "components/misc/A";
10
import Code from "./code";
11
import { CSS, Paragraph } from "components/misc";
12
import { MAX_WIDTH_LANDING } from "lib/config";
13
14
export const STYLE_PITCH: CSS = {
15
padding: "60px 15px",
16
backgroundColor: "white",
17
} as const;
18
19
interface Props {
20
col1: ReactNode;
21
col2: ReactNode;
22
ext?: string;
23
}
24
25
export default function Pitch(props: Props) {
26
const { col1, col2, ext } = props;
27
return (
28
<div style={STYLE_PITCH}>
29
<Row
30
gutter={20}
31
style={{ maxWidth: MAX_WIDTH_LANDING, margin: "0 auto" }}
32
>
33
<Col lg={12}>{col1}</Col>
34
<Col lg={12}>{col2}</Col>
35
</Row>
36
{ext && <CallToAction ext={ext} />}
37
</div>
38
);
39
}
40
41
const STYLE_CALL: CSS = {
42
textAlign: "center",
43
padding: "30px 0",
44
fontSize: "14pt",
45
} as const;
46
47
function CallToAction(props: { ext: string }) {
48
const { ext } = props;
49
return (
50
<Paragraph style={STYLE_CALL}>
51
<strong>Ready out of the box</strong>:{" "}
52
<A href="https://doc.cocalc.com/getting-started.html">
53
Sign up, create a project
54
</A>
55
, create or <A href="https://doc.cocalc.com/howto/upload.html">upload</A>{" "}
56
your {ext && <Code>*.{ext}</Code>} file, and you're ready to go!
57
</Paragraph>
58
);
59
}
60
61