Path: blob/master/src/packages/next/components/store/overview.tsx
5534 views
/*1* This file is part of CoCalc: Copyright © 2022 Sagemath, Inc.2* License: MS-RSL – see LICENSE.md for details3*/45import { Divider } from "antd";6import { useRouter } from "next/router";7import { useEffect } from "react";89import { Icon, PAYASYOUGO_ICON } from "@cocalc/frontend/components/icon";10import { Paragraph } from "components/misc";11import A from "components/misc/A";12import SiteName from "components/share/site-name";13import { useCustomize } from "lib/customize";14import {15OVERVIEW_LARGE_ICON,16OVERVIEW_STYLE,17OverviewRow,18Product,19} from "lib/styles/layouts";2021export default function Overview() {22const router = useRouter();23const { supportVideoCall } = useCustomize();2425// most likely, user will go to the cart next26useEffect(() => {27router.prefetch("/store/site-license");28}, []);2930return (31<div style={OVERVIEW_STYLE}>32<Icon style={OVERVIEW_LARGE_ICON} name="shopping-cart" />33<h2 style={{ marginBottom: "30px" }}>34Welcome to the <SiteName /> Store!35</h2>36<Paragraph style={{ fontSize: "13pt" }}>37Shop below for <A href="/store/site-license">licenses</A> and{" "}38<A href="/store/vouchers">vouchers</A> or explore{" "}39<A href="/pricing">all available products and pricing</A>.40</Paragraph>41{supportVideoCall ? (42<Paragraph>43Not sure what you need?{" "}44<A href={supportVideoCall}>Book a video call</A> and we'll help you45decide.46</Paragraph>47) : undefined}48<OverviewRow>49<Product icon="key" title="License" href="/store/site-license">50Buy a license to upgrade projects, get internet access, more CPU, disk51and memory.52</Product>53<Product icon="graduation-cap" title="Course" href="/store/course">54Purchase a license for teaching a course.55</Product>56<Paragraph style={{ textAlign: "center", width: "100%" }}>57<Icon name="gift" /> Purchase a <A href={"/vouchers"}>voucher code</A>{" "}58to make <SiteName /> credit easily available to somebody else.59</Paragraph>60<Divider />61<Product62href={"/features/compute-server"}63icon={PAYASYOUGO_ICON}64title="Compute Servers"65>66Run Jupyter Notebooks and Linux Terminals on GPUs and high-powered CPU67machines with full admin privileges. Pay as you go.68</Product>69<Product href={"/pricing/onprem"} icon="server" title="On-Premises">70Self-host <SiteName /> on your own compute resources in order to keep71your data on-site.72</Product>73</OverviewRow>74<Paragraph style={{ marginTop: "4em" }}>75If you already selected one or more items, view your{" "}76<A href="/store/cart">shopping cart</A> or go straight to{" "}77<A href="/store/checkout">checkout</A>.78</Paragraph>79<Paragraph style={{ marginBottom: "4em" }}>80You can also browse your{" "}81<A href="/settings/purchases">purchase history</A>,{" "}82<A href="/settings/licenses">licenses</A>, and{" "}83<A href="/vouchers/created">vouchers</A>.84</Paragraph>85</div>86);87}8889/*90<Product icon="rocket" title="License Booster" href="/store/boost">91Add additional upgrades to an existing and <em>compatible</em>{" "}92license.93</Product>94<Product95href={"/store/dedicated"}96icon="save"97icon2="dedicated"98title="Dedicated Disk/VM"99>100Attach a large dedicated disk for more storage to your project or run101your project on a dedicated Virtual Machine to harness much more CPU102and memory.103</Product>104105*/106107108