Path: blob/master/src/packages/next/components/store/overview.tsx
1450 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="Licenses" href="/store/site-license">50Buy a license to upgrade projects, get internet access, more CPU, disk51and memory.52</Product>53<Product href={"/store/vouchers"} icon="gift" title="Vouchers">54Purchase a <A href={"/vouchers"}>voucher code</A> to make <SiteName />{" "}55credit easily available to somebody else.56</Product>57<Divider />58<Product59href={"/features/compute-server"}60icon={PAYASYOUGO_ICON}61title="Compute Servers"62>63Run Jupyter Notebooks and Linux Terminals on GPUs and high-powered CPU64machines with full admin privileges. Pay as you go.65</Product>66<Product href={"/pricing/onprem"} icon="server" title="On-Premises">67Self-host <SiteName /> on your own compute resources in order to keep68your data on-site.69</Product>70</OverviewRow>71<Paragraph style={{ marginTop: "4em" }}>72If you already selected one or more items, view your{" "}73<A href="/store/cart">shopping cart</A> or go straight to{" "}74<A href="/store/checkout">checkout</A>.75</Paragraph>76<Paragraph>77You can also browse your{" "}78<A href="/settings/purchases">purchase history</A>,{" "}79<A href="/settings/licenses">licenses</A>, and{" "}80<A href="/vouchers/created">vouchers</A>.81</Paragraph>82</div>83);84}8586/*87<Product icon="rocket" title="License Booster" href="/store/boost">88Add additional upgrades to an existing and <em>compatible</em>{" "}89license.90</Product>91<Product92href={"/store/dedicated"}93icon="save"94icon2="dedicated"95title="Dedicated Disk/VM"96>97Attach a large dedicated disk for more storage to your project or run98your project on a dedicated Virtual Machine to harness much more CPU99and memory.100</Product>101102*/103104105