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.

GitHub Repository: sagemathinc/cocalc
Path: blob/master/src/packages/next/components/store/overview.tsx
Views: 687
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 { useRouter } from "next/router";
7
import { useEffect } from "react";
8
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 or explore{" "}
36
<A href="/pricing">available products and pricing</A>.
37
</div>
38
<OverviewRow>
39
<Product icon="key" title="Licenses" href="/store/site-license">
40
Buy a license to upgrade projects, get internet access, more CPU, disk
41
and memory.
42
</Product>
43
<Product
44
href={"/features/compute-server"}
45
icon={PAYASYOUGO_ICON}
46
title="Compute Servers"
47
>
48
Run Jupyter Notebooks and Linux Terminals on GPUs and high-powered CPU
49
machines with full admin privileges. Pay only for what you actually
50
use.
51
</Product>
52
<Product href={"/pricing/onprem"} icon="server" title="On-Premises">
53
Run CoCalc on your own machine or cluster in order to keep your data
54
on-site and use compute resources that you already have.
55
</Product>
56
<Product href={"/store/vouchers"} icon="gift" title="Vouchers">
57
Purchase a <A href={"/vouchers"}>voucher code</A> to make store credit
58
easily available to somebody else.
59
</Product>
60
</OverviewRow>
61
<Paragraph style={{ marginTop: "4em" }}>
62
If you already selected one or more items, view your{" "}
63
<A href="/store/cart">shopping cart</A> or go straight to{" "}
64
<A href="/store/checkout">checkout</A>.
65
</Paragraph>
66
<Paragraph>
67
You can also browse your <A href="/billing">billing records</A> or{" "}
68
<A href="/licenses">licenses</A>.
69
</Paragraph>
70
</div>
71
);
72
}
73
74
/*
75
<Product icon="rocket" title="License Booster" href="/store/boost">
76
Add additional upgrades to an existing and <em>compatible</em>{" "}
77
license.
78
</Product>
79
<Product
80
href={"/store/dedicated"}
81
icon="save"
82
icon2="dedicated"
83
title="Dedicated Disk/VM"
84
>
85
Attach a large dedicated disk for more storage to your project or run
86
your project on a dedicated Virtual Machine to harness much more CPU
87
and memory.
88
</Product>
89
90
*/
91
92