Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/src/packages/next/components/landing/pitch.tsx
Views: 687
/*1* This file is part of CoCalc: Copyright © 2022 Sagemath, Inc.2* License: MS-RSL – see LICENSE.md for details3*/45import { Row, Col } from "antd";6import { ReactNode } from "react";78import A from "components/misc/A";9import Code from "./code";10import { CSS, Paragraph } from "components/misc";11import { MAX_WIDTH_LANDING } from "lib/config";1213export const STYLE_PITCH: CSS = {14padding: "60px 15px",15backgroundColor: "white",16} as const;1718interface Props {19col1: ReactNode;20col2: ReactNode;21ext?: string;22}2324export default function Pitch(props: Props) {25const { col1, col2, ext } = props;26return (27<div style={STYLE_PITCH}>28<Row29gutter={20}30style={{ maxWidth: MAX_WIDTH_LANDING, margin: "0 auto" }}31>32<Col lg={12}>{col1}</Col>33<Col lg={12}>{col2}</Col>34</Row>35{ext && <CallToAction ext={ext} />}36</div>37);38}3940const STYLE_CALL: CSS = {41textAlign: "center",42padding: "30px 0",43fontSize: "14pt",44} as const;4546function CallToAction(props: { ext: string }) {47const { ext } = props;48return (49<Paragraph style={STYLE_CALL}>50<strong>Ready out of the box</strong>:{" "}51<A href="https://doc.cocalc.com/getting-started.html">52Sign up, create a project53</A>54, create or <A href="https://doc.cocalc.com/howto/upload.html">upload</A>{" "}55your {ext && <Code>*.{ext}</Code>} file, and you're ready to go!56</Paragraph>57);58}596061