CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
sagemathinc

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

GitHub Repository: sagemathinc/cocalc
Path: blob/master/src/packages/next/components/store/overview.tsx
Views: 923
1
/*
2
* This file is part of CoCalc: Copyright © 2022 Sagemath, Inc.
3
* License: MS-RSL – see LICENSE.md for details
4
*/
5
6
import { Divider } from "antd";
7
import { useRouter } from "next/router";
8
import { useEffect } from "react";
9
import { Icon, PAYASYOUGO_ICON } from "@cocalc/frontend/components/icon";
10
import { Paragraph } from "components/misc";
11
import A from "components/misc/A";
12
import SiteName from "components/share/site-name";
13
import {
14
OVERVIEW_LARGE_ICON,
15
OVERVIEW_STYLE,
16
OverviewRow,
17
Product,
18
} from "lib/styles/layouts";
19
20
export default function Overview() {
21
const router = useRouter();
22
23
// most likely, user will go to the cart next
24
useEffect(() => {
25
router.prefetch("/store/site-license");
26
}, []);
27
28
return (
29
<div style={OVERVIEW_STYLE}>
30
<Icon style={OVERVIEW_LARGE_ICON} name="shopping-cart" />
31
<h2 style={{ marginBottom: "30px" }}>
32
Welcome to the <SiteName /> Store!
33
</h2>
34
<div style={{ fontSize: "13pt" }}>
35
Shop below for <A href="/store/site-license">licenses</A> and{" "}
36
<A href="/store/vouchers">vouchers</A> or explore{" "}
37
<A href="/pricing">all available products and pricing</A>.
38
</div>
39
<OverviewRow>
40
<Product icon="key" title="Licenses" href="/store/site-license">
41
Buy a license to upgrade projects, get internet access, more CPU, disk
42
and memory.
43
</Product>
44
<Product href={"/store/vouchers"} icon="gift" title="Vouchers">
45
Purchase a <A href={"/vouchers"}>voucher code</A> to make <SiteName />{" "}
46
credit easily available to somebody else.
47
</Product>
48
<Divider />
49
<Product
50
href={"/features/compute-server"}
51
icon={PAYASYOUGO_ICON}
52
title="Compute Servers"
53
>
54
Run Jupyter Notebooks and Linux Terminals on GPUs and high-powered CPU
55
machines with full admin privileges. Pay as you go.
56
</Product>
57
<Product href={"/pricing/onprem"} icon="server" title="On-Premises">
58
Self-host <SiteName /> on your own compute resources in order to keep
59
your data on-site.
60
</Product>
61
</OverviewRow>
62
<Paragraph style={{ marginTop: "4em" }}>
63
If you already selected one or more items, view your{" "}
64
<A href="/store/cart">shopping cart</A> or go straight to{" "}
65
<A href="/store/checkout">checkout</A>.
66
</Paragraph>
67
<Paragraph>
68
You can also browse your{" "}
69
<A href="/settings/purchases">purchase history</A>,{" "}
70
<A href="/settings/licenses">licenses</A>, and{" "}
71
<A href="/vouchers/created">vouchers</A>.
72
</Paragraph>
73
</div>
74
);
75
}
76
77
/*
78
<Product icon="rocket" title="License Booster" href="/store/boost">
79
Add additional upgrades to an existing and <em>compatible</em>{" "}
80
license.
81
</Product>
82
<Product
83
href={"/store/dedicated"}
84
icon="save"
85
icon2="dedicated"
86
title="Dedicated Disk/VM"
87
>
88
Attach a large dedicated disk for more storage to your project or run
89
your project on a dedicated Virtual Machine to harness much more CPU
90
and memory.
91
</Product>
92
93
*/
94
95