"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.getServerSideProps = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const icon_1 = require("@cocalc/frontend/components/icon");
const antd_1 = require("antd");
const footer_1 = __importDefault(require("components/landing/footer"));
const head_1 = __importDefault(require("components/landing/head"));
const header_1 = __importDefault(require("components/landing/header"));
const index_list_1 = __importDefault(require("components/landing/index-list"));
const A_1 = __importDefault(require("components/misc/A"));
const site_name_1 = __importDefault(require("components/share/site-name"));
const config_1 = require("lib/config");
const customize_1 = require("lib/customize");
const with_customize_1 = __importDefault(require("lib/with-customize"));
const blog_png_1 = __importDefault(require("public/info/blog.png"));
const cocalc_mailing_list_png_1 = __importDefault(require("public/info/cocalc-mailing-list.png"));
//import Discord from "public/info/discord.png";
const facebook_png_1 = __importDefault(require("public/info/facebook.png"));
const linkedin_png_1 = __importDefault(require("public/info/linkedin.png"));
const github_discussions_png_1 = __importDefault(require("public/info/github-discussions.png"));
const github_png_1 = __importDefault(require("public/info/github.png"));
const share_png_1 = __importDefault(require("public/info/share.png"));
const stackoverflow_png_1 = __importDefault(require("public/info/stackoverflow.png"));
const twitter_png_1 = __importDefault(require("public/info/twitter.png"));
const imageWidth = "300px";
const dataSource = [
    {
        link: "https://github.com/sagemathinc/cocalc/discussions",
        logo: "github",
        imageWidth,
        image: github_discussions_png_1.default,
        title: ((0, jsx_runtime_1.jsxs)(A_1.default, { href: "https://github.com/sagemathinc/cocalc/discussions", children: ["CoCalc ", (0, jsx_runtime_1.jsx)("b", { children: "GitHub Discussions" })] })),
        description: ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)(A_1.default, { href: "https://github.com/sagemathinc/cocalc/discussions", children: "Search or ask questions and start a discussion about CoCalc here!" }) })),
    },
    //   {
    //     link: "https://discord.gg/nEHs2GK",
    //     title: (
    //       <>
    //         <b>Chat</b> about CoCalc on Discord
    //       </>
    //     ),
    //     logo: "comment",
    //     image: Discord,
    //     imageWidth,
    //     description: (
    //       <>
    //         Visit the <A href="https://discord.gg/nEHs2GK">CoCalc Discord server</A>{" "}
    //         to chat with other CoCalc users, ask questions, and give us quick
    //         feedback.
    //       </>
    //     ),
    //   },
    {
        shareServer: true,
        link: "/share",
        logo: "bullhorn",
        imageWidth,
        image: share_png_1.default,
        title: ((0, jsx_runtime_1.jsxs)(A_1.default, { href: "/share", children: [(0, jsx_runtime_1.jsx)("b", { children: "Explore" }), " Published Files"] })),
        description: ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(A_1.default, { href: "/share", children: ["Browse the ", (0, jsx_runtime_1.jsx)(site_name_1.default, {}), " share server"] }), " ", "to see what other users of this site are publishing. You will find thousands of ", (0, jsx_runtime_1.jsx)(A_1.default, { href: "/features/jupyter-notebook", children: "Jupyter notebooks" }), ", Sage worksheets, programs, PDF's, final projects from courses,", " ", (0, jsx_runtime_1.jsx)(A_1.default, { href: "/features/latex-editor", children: "research papers" }), " and more."] })),
    },
    {
        logo: "solution",
        image: stackoverflow_png_1.default,
        imageWidth,
        link: "https://stackoverflow.com/",
        title: ((0, jsx_runtime_1.jsxs)(A_1.default, { href: "https://stackexchange.com/sites", children: [(0, jsx_runtime_1.jsx)("b", { children: "Ask" }), " on StackExchange"] })),
        description: ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["There are many pages on", " ", (0, jsx_runtime_1.jsx)(A_1.default, { href: "https://stackexchange.com/sites", children: "StackExchange" }), ", where you can get help from a broad community.", " ", (0, jsx_runtime_1.jsxs)("strong", { children: ["Make sure to tag CoCalc specific questions with ", (0, jsx_runtime_1.jsx)("code", { children: "\"cocalc\"" })] }), " ", "and add more tags matching the topic accordingly, e.g.", " ", (0, jsx_runtime_1.jsx)("code", { children: "\"python\"" }), ".", (0, jsx_runtime_1.jsxs)("ul", { style: { paddingLeft: "20px" }, children: [(0, jsx_runtime_1.jsxs)("li", { children: [(0, jsx_runtime_1.jsx)(A_1.default, { href: "https://stackoverflow.com/", children: "StackOverflow" }), ": programming questions, for professional and enthusiast programmers"] }), (0, jsx_runtime_1.jsxs)("li", { children: [(0, jsx_runtime_1.jsx)(A_1.default, { href: "https://math.stackexchange.com/", children: "Mathematics" }), ": for people studying math at any level and professionals in related fields"] })] })] })),
    },
    {
        link: "https://groups.google.com/forum/?fromgroups#!forum/cocalc",
        logo: "envelope",
        image: cocalc_mailing_list_png_1.default,
        imageWidth,
        title: ((0, jsx_runtime_1.jsx)(A_1.default, { href: "https://groups.google.com/forum/?fromgroups#!forum/cocalc", children: (0, jsx_runtime_1.jsx)("b", { children: "The Google Groups Mailing List" }) })),
        description: ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["Get announcements about CoCalc in your inbox, and use email to participate in discussions with the CoCalc community at the", " ", (0, jsx_runtime_1.jsx)(A_1.default, { href: "https://groups.google.com/forum/?fromgroups#!forum/cocalc", children: "CoCalc mailing list" }), "."] })),
    },
    {
        link: "https://blog.cocalc.com/archive.html",
        logo: "blog",
        imageWidth,
        image: blog_png_1.default,
        title: ((0, jsx_runtime_1.jsxs)(A_1.default, { href: "https://about.cocalc.com/cocalcs-blog/", children: [(0, jsx_runtime_1.jsx)("b", { children: "Read" }), " the CoCalc blog"] })),
        description: ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["Read about new developments in", " ", (0, jsx_runtime_1.jsx)(A_1.default, { href: "https://about.cocalc.com/cocalcs-blog/", children: "CoCalc's new blog" }), "and check", (0, jsx_runtime_1.jsx)(A_1.default, { href: "https://blog.cocalc.com/archive.html", children: "the archives" }), ", where you can read about", " ", (0, jsx_runtime_1.jsx)(A_1.default, { href: "https://blog.cocalc.com/2018/10/11/collaborative-editing.html", children: "how collaborative editing works" }), ",", " ", (0, jsx_runtime_1.jsx)(A_1.default, { href: "https://blog.cocalc.com/cocalc/2018/09/10/where-is-cocalc-from.html", children: "who implements CoCalc" }), ",", " ", (0, jsx_runtime_1.jsx)(A_1.default, { href: "https://blog.cocalc.com/2017/02/09/rethinkdb-vs-postgres.html", children: "why CoCalc uses PostgreSQL" }), ", and much more."] })),
    },
    {
        link: "https://github.com/sagemathinc/cocalc",
        logo: "github",
        imageWidth,
        image: github_png_1.default,
        title: ((0, jsx_runtime_1.jsxs)(A_1.default, { href: "https://github.com/sagemathinc/cocalc/commits/master", children: ["CoCalc's ", (0, jsx_runtime_1.jsx)("b", { children: "Source Code" })] })),
        description: ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["Browse every change to", " ", (0, jsx_runtime_1.jsxs)(A_1.default, { href: "https://github.com/sagemathinc/cocalc/commits/master", children: ["CoCalc source code, which goes back to ", (0, jsx_runtime_1.jsx)("b", { children: "April 2012" })] }), ", track the status of", " ", (0, jsx_runtime_1.jsx)(A_1.default, { href: "https://github.com/sagemathinc/cocalc/issues?q=is%3Aissue+is%3Aopen+label%3AI-bug+-label%3Ablocked+sort%3Acreated-desc", children: "known bugs" }), ",", " ", (0, jsx_runtime_1.jsx)(A_1.default, { href: "https://github.com/sagemathinc/cocalc/issues/new", children: "report a bug" }), ", comment on", " ", (0, jsx_runtime_1.jsx)(A_1.default, { href: "https://github.com/sagemathinc/cocalc/issues", children: "development ideas" }), " ", "and see an", " ", (0, jsx_runtime_1.jsx)(A_1.default, { href: "https://github.com/sagemathinc/cocalc/graphs/contributors", children: "overview of the pace of development" }), ". While you're at it,", " ", (0, jsx_runtime_1.jsx)(A_1.default, { href: "https://github.com/sagemathinc/cocalc/network/members", children: "fork CoCalc" }), " ", "and send us", " ", (0, jsx_runtime_1.jsx)(A_1.default, { href: "https://github.com/sagemathinc/cocalc/pulls", children: "a pull request" }), "."] })),
    },
    {
        link: "https://twitter.com/cocalc_com",
        logo: "twitter",
        imageWidth,
        image: twitter_png_1.default,
        title: ((0, jsx_runtime_1.jsxs)(A_1.default, { href: "https://twitter.com/cocalc_com", children: ["CoCalc on ", (0, jsx_runtime_1.jsx)("b", { children: "Twitter" })] })),
        description: ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["Follow", " ", (0, jsx_runtime_1.jsx)(A_1.default, { href: "https://twitter.com/cocalc_com", children: "@cocalc_com on Twitter" }), " for announcements about what's going on with CoCalc. You can also DM questions to us or tag us in your tweets."] })),
    },
    {
        link: "https://www.linkedin.com/company/sagemath-inc./",
        logo: "linkedin",
        imageWidth,
        image: linkedin_png_1.default,
        title: ((0, jsx_runtime_1.jsxs)(A_1.default, { href: "https://www.linkedin.com/company/sagemath-inc./", children: ["CoCalc on ", (0, jsx_runtime_1.jsx)("b", { children: "LinkedIn" })] })),
        description: ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["Explore", " ", (0, jsx_runtime_1.jsx)(A_1.default, { href: "https://www.linkedin.com/company/sagemath-inc./", children: "CoCalc on LinkedIn" }), "."] })),
    },
    {
        link: "https://www.facebook.com/CoCalcOnline/",
        logo: "facebook",
        imageWidth,
        image: facebook_png_1.default,
        title: ((0, jsx_runtime_1.jsxs)(A_1.default, { href: "https://www.facebook.com/CoCalcOnline/", children: ["CoCalc on ", (0, jsx_runtime_1.jsx)("b", { children: "Facebook" })] })),
        description: ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["Check out our", " ", (0, jsx_runtime_1.jsx)(A_1.default, { href: "https://www.facebook.com/CoCalcOnline/", children: "Facebook page" }), ", where you can post something cool you've done using CoCalc, start a dicussion, or watch out for announcements."] })),
    },
];
function Connect({ customize }) {
    return ((0, jsx_runtime_1.jsxs)(customize_1.Customize, { value: customize, children: [(0, jsx_runtime_1.jsx)(head_1.default, { title: "Community Support" }), (0, jsx_runtime_1.jsxs)(antd_1.Layout, { children: [(0, jsx_runtime_1.jsx)(header_1.default, { page: "support", subPage: "community" }), (0, jsx_runtime_1.jsxs)(antd_1.Layout.Content, { style: {
                            backgroundColor: "white",
                        }, children: [(0, jsx_runtime_1.jsxs)("div", { style: {
                                    maxWidth: config_1.MAX_WIDTH,
                                    margin: "15px auto",
                                    padding: "15px",
                                    backgroundColor: "white",
                                }, children: [(0, jsx_runtime_1.jsx)("div", { style: { textAlign: "center", color: "#444" }, children: (0, jsx_runtime_1.jsx)("h1", { style: { fontSize: "28pt" } }) }), (0, jsx_runtime_1.jsx)(index_list_1.default, { title: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(icon_1.Icon, { name: "users", style: { marginRight: "30px" } }), "Connect with the Cocalc Community"] }), description: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: "There are many ways that you can connect with the broader CoCalc community." }), dataSource: dataSource })] }), (0, jsx_runtime_1.jsx)(footer_1.default, {})] })] })] }));
}
exports.default = Connect;
async function getServerSideProps(context) {
    return await (0, with_customize_1.default)({ context });
}
exports.getServerSideProps = getServerSideProps;
//# sourceMappingURL=community.js.map