4
4
*/
5
5
6
6
import { Alert , Button , Divider , Layout , List } from "antd" ;
7
- import { useRouter } from "next/router" ;
8
-
9
7
import { Icon , IconName } from "@cocalc/frontend/components/icon" ;
10
8
import { money } from "@cocalc/util/licenses/purchase/utils" ;
11
9
import { COLORS } from "@cocalc/util/theme" ;
@@ -19,6 +17,7 @@ import { MAX_WIDTH } from "lib/config";
19
17
import { Customize } from "lib/customize" ;
20
18
import withCustomize from "lib/with-customize" ;
21
19
import { ReactNode } from "react" ;
20
+ import getSupportUrl from "@cocalc/frontend/support/url" ;
22
21
23
22
const PUBLISH_PRICE = true ;
24
23
@@ -40,8 +39,7 @@ const data: Item[] = [
40
39
title : "Small Business" ,
41
40
icon : "experiment" ,
42
41
individuals : "≤ 25" ,
43
- price : 5000 ,
44
- extra : 5000 ,
42
+ price : 10000 ,
45
43
} ,
46
44
{
47
45
title : "Large Organization" ,
@@ -54,8 +52,7 @@ const data: Item[] = [
54
52
title : "University" ,
55
53
icon : "graduation-cap" ,
56
54
individuals : "≤ 150" ,
57
- price : 3000 ,
58
- extra : 3000 ,
55
+ price : 6000 ,
59
56
academic : CM ,
60
57
} ,
61
58
] ;
@@ -81,19 +78,17 @@ export default function OnPrem({ customize }) {
81
78
}
82
79
83
80
function Body ( ) {
84
- const router = useRouter ( ) ;
85
-
86
- const body = encodeURIComponent (
87
- "PLEASE EXPLAIN YOUR EXPECTED USE CASE TO HELP US GUIDE YOU:\n\nWE WOULD LOVE TO SETUP A VIDEO CALL WITH YOU! WHEN ARE YOU AVAILABLE (DAYS, TIMESLOTS, TIMEZONE)?" ,
88
- ) ;
89
-
90
- const contactURL = `/support/new?hideExtra=true&type=purchase&subject=CoCalc%20OnPrem&body=${ body } &title=Purchase%20CoCalc%20On-prem` ;
81
+ const contactURL = getSupportUrl ( {
82
+ subject : "Purchase CoCalc OnPrem" ,
83
+ type : "chat" ,
84
+ url : "" ,
85
+ } ) ;
91
86
92
87
function renderContactButton (
93
- text : string | ReactNode = "Contact us " ,
88
+ text : string | ReactNode = "Contact Us " ,
94
89
) : JSX . Element {
95
90
return (
96
- < Button size = "large" onClick = { ( ) => router . push ( contactURL ) } >
91
+ < Button size = "large" href = { contactURL } >
97
92
{ text }
98
93
</ Button >
99
94
) ;
@@ -115,7 +110,7 @@ function Body() {
115
110
message = {
116
111
< >
117
112
< Paragraph strong style = { { fontSize : "150%" } } >
118
- Please < A href = { contactURL } > contact us</ A > for questions,
113
+ Please < A href = { contactURL } external > contact us</ A > for questions,
119
114
licensing details, and purchasing.
120
115
</ Paragraph >
121
116
< Paragraph >
@@ -143,7 +138,6 @@ function Body() {
143
138
icon,
144
139
title,
145
140
academic,
146
- extra,
147
141
prod,
148
142
} ) => {
149
143
return (
@@ -155,24 +149,18 @@ function Body() {
155
149
< Line amount = { INF } desc = "Project Collaborators" />
156
150
< Line amount = { INF } desc = "Cluster Resources²" />
157
151
< Line amount = { CM } desc = "Help for Initial Setup" />
152
+ < Line amount = { CM } desc = "Premium Support" />
158
153
< Divider />
159
- < Line amount = { CM } desc = "Collaborative Jupyter, LaTeX, ..." />
154
+ < Line
155
+ amount = { CM }
156
+ desc = "Collaborative Jupyter, LaTeX, SageMath, R, ..."
157
+ />
160
158
< Line amount = { CM } desc = "Custom Software Environments" />
161
159
< Line amount = { CM } desc = "Regular Software Upgrades" />
162
160
< Line amount = { CM } desc = "Flexible LLM integration³" />
163
161
< Line amount = { CM } desc = "GPU Support" />
164
162
< Line amount = { CM } desc = "SAML SSO" />
165
163
166
- { academic ? (
167
- < >
168
- < Divider />
169
- < Line
170
- amount = { academic }
171
- desc = { < Text strong > Academic discount</ Text > }
172
- />
173
- </ >
174
- ) : undefined }
175
-
176
164
< br />
177
165
< div
178
166
style = { {
@@ -195,15 +183,13 @@ function Body() {
195
183
)
196
184
: renderContactButton ( ) }
197
185
</ div >
198
- { extra ? (
186
+ { academic ? (
199
187
< >
200
188
< Divider />
201
- < Paragraph type = "secondary" >
202
- < Line
203
- amount = { `$${ extra } ` }
204
- desc = { < span > Premium Support (optional)</ span > }
205
- />
206
- </ Paragraph >
189
+ < Line
190
+ amount = { academic }
191
+ desc = { < Text strong > Academic discount</ Text > }
192
+ />
207
193
</ >
208
194
) : undefined }
209
195
</ PricingItem >
0 commit comments