"use strict";
(() => {
var exports = {};
exports.id = 5405;
exports.ids = [5405,2438,7206];
exports.modules = {

/***/ 637188:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  "default": () => (/* binding */ Home),
  "getServerSideProps": () => (/* binding */ getServerSideProps)
});

// EXTERNAL MODULE: external "react/jsx-runtime"
var jsx_runtime_ = __webpack_require__(920997);
// EXTERNAL MODULE: external "antd"
var external_antd_ = __webpack_require__(545725);
// EXTERNAL MODULE: ./components/landing/footer.tsx + 1 modules
var footer = __webpack_require__(920691);
// EXTERNAL MODULE: ./components/misc/A.tsx
var A = __webpack_require__(617637);
// EXTERNAL MODULE: ./components/logo-square.tsx
var logo_square = __webpack_require__(973846);
// EXTERNAL MODULE: ./components/landing/header.tsx + 2 modules
var header = __webpack_require__(113680);
// EXTERNAL MODULE: ./components/landing/content.tsx
var content = __webpack_require__(113684);
// EXTERNAL MODULE: ./lib/with-customize.ts
var with_customize = __webpack_require__(422638);
// EXTERNAL MODULE: ./lib/customize.ts
var lib_customize = __webpack_require__(481617);
// EXTERNAL MODULE: ./components/landing/head.tsx
var head = __webpack_require__(422004);
// EXTERNAL MODULE: external "path"
var external_path_ = __webpack_require__(371017);
// EXTERNAL MODULE: ./lib/base-path.ts
var base_path = __webpack_require__(621923);
;// CONCATENATED MODULE: ./public/cocalc-screenshot-20200128-nq8.png
/* harmony default export */ const cocalc_screenshot_20200128_nq8 = ({"src":"/_next/static/media/cocalc-screenshot-20200128-nq8.4f8c25fa.png","height":793,"width":1241,"blurDataURL":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFCAMAAABPT11nAAAAGFBMVEX+/v75+frk7PHa6PH19vfu8vTh5uXG1eMGa9HtAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAJklEQVQImU3GuQEAMAjEMN8D7L9x2qgSm9yNl3ErSahtBeA48+UBC30Aa2B69LcAAAAASUVORK5CYII="});
;// CONCATENATED MODULE: ./pages/index.tsx

/*
 *  This file is part of CoCalc: Copyright © 2021 Sagemath, Inc.
 *  License: AGPLv3 s.t. "Commons Clause" – see LICENSE.md for details
 */ 











const topLinkStyle = {
    marginRight: "20px"
};
function Home({ customize  }) {
    const { siteName , siteDescription , organizationName , organizationURL , splashImage , indexInfo ,  } = customize;
    return /*#__PURE__*/ (0,jsx_runtime_.jsxs)(lib_customize/* Customize */.l, {
        value: customize,
        children: [
            /*#__PURE__*/ jsx_runtime_.jsx(head/* default */.Z, {
                title: "Collaborative Calculation"
            }),
            /*#__PURE__*/ (0,jsx_runtime_.jsxs)(external_antd_.Layout, {
                children: [
                    /*#__PURE__*/ jsx_runtime_.jsx(header/* default */.Z, {}),
                    /*#__PURE__*/ (0,jsx_runtime_.jsxs)(external_antd_.Layout.Content, {
                        style: {
                            backgroundColor: "white"
                        },
                        children: [
                            customize.account && /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", {
                                style: {
                                    textAlign: "center",
                                    margin: "30px 0 -15px 0",
                                    color: "#666",
                                    fontSize: "30pt",
                                    fontWeight: 500
                                },
                                children: [
                                    "Signed in as",
                                    " ",
                                    /*#__PURE__*/ jsx_runtime_.jsx(A/* default */.Z, {
                                        href: "/config",
                                        children: customize.account.is_anonymous ? "Anonymous User" : `${customize.account.first_name} ${customize.account.last_name} ${customize.account.name ? "(@" + customize.account.name + ")" : ""}`
                                    }),
                                    /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", {
                                        style: {
                                            fontSize: "10pt",
                                            margin: "15px 0"
                                        },
                                        children: [
                                            customize.account != null && /*#__PURE__*/ (0,jsx_runtime_.jsxs)(jsx_runtime_.Fragment, {
                                                children: [
                                                    /*#__PURE__*/ jsx_runtime_.jsx(A/* default */.Z, {
                                                        href: (0,external_path_.join)(base_path/* default */.Z, "projects"),
                                                        external: true,
                                                        style: topLinkStyle,
                                                        children: "Projects"
                                                    }),
                                                    " "
                                                ]
                                            }),
                                            customize.landingPages && /*#__PURE__*/ (0,jsx_runtime_.jsxs)(jsx_runtime_.Fragment, {
                                                children: [
                                                    /*#__PURE__*/ jsx_runtime_.jsx(A/* default */.Z, {
                                                        href: "/features/",
                                                        style: topLinkStyle,
                                                        children: "Features"
                                                    }),
                                                    " ",
                                                    /*#__PURE__*/ jsx_runtime_.jsx(A/* default */.Z, {
                                                        href: "/software",
                                                        style: topLinkStyle,
                                                        children: "Software"
                                                    }),
                                                    " ",
                                                    customize.isCommercial && /*#__PURE__*/ (0,jsx_runtime_.jsxs)(jsx_runtime_.Fragment, {
                                                        children: [
                                                            /*#__PURE__*/ jsx_runtime_.jsx(A/* default */.Z, {
                                                                href: "/pricing",
                                                                style: topLinkStyle,
                                                                children: "Pricing"
                                                            }),
                                                            " "
                                                        ]
                                                    })
                                                ]
                                            }),
                                            customize.account != null && /*#__PURE__*/ (0,jsx_runtime_.jsxs)(jsx_runtime_.Fragment, {
                                                children: [
                                                    /*#__PURE__*/ jsx_runtime_.jsx(A/* default */.Z, {
                                                        href: "/config",
                                                        style: topLinkStyle,
                                                        children: "Config"
                                                    }),
                                                    " "
                                                ]
                                            }),
                                            customize.isCommercial && customize.account && !customize.account.is_anonymous && /*#__PURE__*/ (0,jsx_runtime_.jsxs)(jsx_runtime_.Fragment, {
                                                children: [
                                                    /*#__PURE__*/ jsx_runtime_.jsx(A/* default */.Z, {
                                                        href: "/store",
                                                        style: topLinkStyle,
                                                        children: "Store"
                                                    }),
                                                    " ",
                                                    /*#__PURE__*/ jsx_runtime_.jsx(A/* default */.Z, {
                                                        href: "/licenses",
                                                        style: topLinkStyle,
                                                        children: "Licenses"
                                                    }),
                                                    " ",
                                                    /*#__PURE__*/ jsx_runtime_.jsx(A/* default */.Z, {
                                                        href: "/billing",
                                                        style: topLinkStyle,
                                                        children: "Billing"
                                                    }),
                                                    " "
                                                ]
                                            }),
                                            customize.shareServer && /*#__PURE__*/ (0,jsx_runtime_.jsxs)(jsx_runtime_.Fragment, {
                                                children: [
                                                    /*#__PURE__*/ jsx_runtime_.jsx(A/* default */.Z, {
                                                        style: topLinkStyle,
                                                        href: "/share/public_paths/page/1",
                                                        children: "Share"
                                                    }),
                                                    " "
                                                ]
                                            }),
                                            /*#__PURE__*/ (0,jsx_runtime_.jsxs)(jsx_runtime_.Fragment, {
                                                children: [
                                                    /*#__PURE__*/ jsx_runtime_.jsx(A/* default */.Z, {
                                                        style: topLinkStyle,
                                                        href: "/support",
                                                        children: "Support"
                                                    }),
                                                    " ",
                                                    /*#__PURE__*/ jsx_runtime_.jsx(A/* default */.Z, {
                                                        style: topLinkStyle,
                                                        href: "/info/status",
                                                        children: "Status"
                                                    }),
                                                    " ",
                                                    /*#__PURE__*/ jsx_runtime_.jsx(A/* default */.Z, {
                                                        style: topLinkStyle,
                                                        href: "https://doc.cocalc.com",
                                                        children: "Docs"
                                                    })
                                                ]
                                            })
                                        ]
                                    })
                                ]
                            }),
                            /*#__PURE__*/ jsx_runtime_.jsx(content/* default */.Z, {
                                logo: /*#__PURE__*/ jsx_runtime_.jsx(logo_square/* default */.Z, {
                                    style: {
                                        width: "120px",
                                        height: "120px"
                                    }
                                }),
                                title: siteName,
                                subtitle: siteDescription,
                                description: /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", {
                                    children: [
                                        "An instance of ",
                                        /*#__PURE__*/ jsx_runtime_.jsx(A/* default */.Z, {
                                            href: "https://cocalc.com",
                                            children: "CoCalc"
                                        }),
                                        " ",
                                        organizationName && organizationURL && /*#__PURE__*/ (0,jsx_runtime_.jsxs)(jsx_runtime_.Fragment, {
                                            children: [
                                                "hosted by ",
                                                /*#__PURE__*/ jsx_runtime_.jsx(A/* default */.Z, {
                                                    href: organizationURL,
                                                    children: organizationName
                                                })
                                            ]
                                        }),
                                        customize.onCoCalcCom && /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", {
                                            style: {
                                                marginTop: "15px"
                                            },
                                            children: [
                                                /*#__PURE__*/ jsx_runtime_.jsx("iframe", {
                                                    width: "210",
                                                    height: "300",
                                                    src: "https://www.youtube.com/embed/PQ5p92DN0bs",
                                                    title: "YouTube video player",
                                                    frameBorder: 0,
                                                    allow: "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",
                                                    allowFullScreen: true
                                                }),
                                                /*#__PURE__*/ jsx_runtime_.jsx("br", {}),
                                                /*#__PURE__*/ jsx_runtime_.jsx("br", {}),
                                                /*#__PURE__*/ jsx_runtime_.jsx(A/* default */.Z, {
                                                    href: "https://about.cocalc.com",
                                                    children: "Learn All About CoCalc's Mission, Developers and Features..."
                                                })
                                            ]
                                        })
                                    ]
                                }),
                                image: splashImage ? splashImage : cocalc_screenshot_20200128_nq8,
                                alt: "Screenshot showing CoCalc in action!",
                                indexInfo: indexInfo
                            }),
                            /*#__PURE__*/ jsx_runtime_.jsx(footer/* default */.Z, {})
                        ]
                    })
                ]
            })
        ]
    });
};
async function getServerSideProps(context) {
    return await (0,with_customize/* default */.Z)({
        context
    }, {
        name: true
    });
}


/***/ }),

/***/ 545725:
/***/ ((module) => {

module.exports = require("antd");

/***/ }),

/***/ 770640:
/***/ ((module) => {

module.exports = require("cookies");

/***/ }),

/***/ 65680:
/***/ ((module) => {

module.exports = require("lru-cache");

/***/ }),

/***/ 492796:
/***/ ((module) => {

module.exports = require("next/dist/shared/lib/head-manager-context.js");

/***/ }),

/***/ 294957:
/***/ ((module) => {

module.exports = require("next/dist/shared/lib/head.js");

/***/ }),

/***/ 703539:
/***/ ((module) => {

module.exports = require("next/dist/shared/lib/i18n/detect-domain-locale.js");

/***/ }),

/***/ 734014:
/***/ ((module) => {

module.exports = require("next/dist/shared/lib/i18n/normalize-locale-path.js");

/***/ }),

/***/ 450744:
/***/ ((module) => {

module.exports = require("next/dist/shared/lib/image-config-context.js");

/***/ }),

/***/ 435843:
/***/ ((module) => {

module.exports = require("next/dist/shared/lib/image-config.js");

/***/ }),

/***/ 278524:
/***/ ((module) => {

module.exports = require("next/dist/shared/lib/is-plain-object.js");

/***/ }),

/***/ 878020:
/***/ ((module) => {

module.exports = require("next/dist/shared/lib/mitt.js");

/***/ }),

/***/ 664406:
/***/ ((module) => {

module.exports = require("next/dist/shared/lib/page-path/denormalize-page-path.js");

/***/ }),

/***/ 424964:
/***/ ((module) => {

module.exports = require("next/dist/shared/lib/router-context.js");

/***/ }),

/***/ 623938:
/***/ ((module) => {

module.exports = require("next/dist/shared/lib/router/utils/format-url.js");

/***/ }),

/***/ 329565:
/***/ ((module) => {

module.exports = require("next/dist/shared/lib/router/utils/get-asset-path-from-route.js");

/***/ }),

/***/ 264365:
/***/ ((module) => {

module.exports = require("next/dist/shared/lib/router/utils/get-middleware-regex.js");

/***/ }),

/***/ 901428:
/***/ ((module) => {

module.exports = require("next/dist/shared/lib/router/utils/is-dynamic.js");

/***/ }),

/***/ 491292:
/***/ ((module) => {

module.exports = require("next/dist/shared/lib/router/utils/parse-relative-url.js");

/***/ }),

/***/ 980979:
/***/ ((module) => {

module.exports = require("next/dist/shared/lib/router/utils/querystring.js");

/***/ }),

/***/ 836052:
/***/ ((module) => {

module.exports = require("next/dist/shared/lib/router/utils/resolve-rewrites.js");

/***/ }),

/***/ 584226:
/***/ ((module) => {

module.exports = require("next/dist/shared/lib/router/utils/route-matcher.js");

/***/ }),

/***/ 95052:
/***/ ((module) => {

module.exports = require("next/dist/shared/lib/router/utils/route-regex.js");

/***/ }),

/***/ 359232:
/***/ ((module) => {

module.exports = require("next/dist/shared/lib/utils.js");

/***/ }),

/***/ 40968:
/***/ ((module) => {

module.exports = require("next/head");

/***/ }),

/***/ 371853:
/***/ ((module) => {

module.exports = require("next/router");

/***/ }),

/***/ 616689:
/***/ ((module) => {

module.exports = require("react");

/***/ }),

/***/ 566405:
/***/ ((module) => {

module.exports = require("react-dom");

/***/ }),

/***/ 920997:
/***/ ((module) => {

module.exports = require("react/jsx-runtime");

/***/ }),

/***/ 439491:
/***/ ((module) => {

module.exports = require("assert");

/***/ }),

/***/ 714300:
/***/ ((module) => {

module.exports = require("buffer");

/***/ }),

/***/ 706113:
/***/ ((module) => {

module.exports = require("crypto");

/***/ }),

/***/ 809523:
/***/ ((module) => {

module.exports = require("dns");

/***/ }),

/***/ 582361:
/***/ ((module) => {

module.exports = require("events");

/***/ }),

/***/ 657147:
/***/ ((module) => {

module.exports = require("fs");

/***/ }),

/***/ 241808:
/***/ ((module) => {

module.exports = require("net");

/***/ }),

/***/ 822037:
/***/ ((module) => {

module.exports = require("os");

/***/ }),

/***/ 371017:
/***/ ((module) => {

module.exports = require("path");

/***/ }),

/***/ 677282:
/***/ ((module) => {

module.exports = require("process");

/***/ }),

/***/ 285477:
/***/ ((module) => {

module.exports = require("punycode");

/***/ }),

/***/ 12781:
/***/ ((module) => {

module.exports = require("stream");

/***/ }),

/***/ 371576:
/***/ ((module) => {

module.exports = require("string_decoder");

/***/ }),

/***/ 924404:
/***/ ((module) => {

module.exports = require("tls");

/***/ }),

/***/ 76224:
/***/ ((module) => {

module.exports = require("tty");

/***/ }),

/***/ 257310:
/***/ ((module) => {

module.exports = require("url");

/***/ }),

/***/ 473837:
/***/ ((module) => {

module.exports = require("util");

/***/ })

};
;

// load runtime
var __webpack_require__ = require("../webpack-runtime.js");
__webpack_require__.C(exports);
var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
var __webpack_exports__ = __webpack_require__.X(0, [549,6918,3429,1746,9505,1748,3734,2208,5654,5887,9715,2448,1107,9521,5114,722,3624,9924,5379,2240,3684], () => (__webpack_exec__(637188)));
module.exports = __webpack_exports__;

})();