Skip to content

Commit 97fba94

Browse files
committed
update call to support text
1 parent 53512b5 commit 97fba94

File tree

2 files changed

+97
-2
lines changed

2 files changed

+97
-2
lines changed
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
import { Alert, Typography } from "antd";
2+
import { A } from "@cocalc/frontend/components/A";
3+
import { SiteName } from "@cocalc/frontend/customize";
4+
import { appBasePath } from "@cocalc/frontend/customize/app-base-path";
5+
import { join } from "path";
6+
7+
const { Paragraph, Text } = Typography;
8+
export const BUY_A_LICENSE_URL = join(appBasePath, "/store/site-license");
9+
10+
const VERSIONS = {
11+
hsy: (
12+
<>
13+
<Paragraph strong>
14+
This is a call to support <SiteName /> by{" "}
15+
<A href={BUY_A_LICENSE_URL}>purchasing a license</A>.
16+
</Paragraph>
17+
<Paragraph>
18+
Behind the scenes, <A href={"/about/team"}>people are working hard</A>{" "}
19+
to keep the service running and improve it constantly. Your files and
20+
computations <A href={"/info/status"}>run in our cluster</A>, which
21+
costs money as well.
22+
</Paragraph>
23+
<Paragraph>
24+
<SiteName /> receives no funding from large organizations or charitable
25+
foundations. The site depends entirely{" "}
26+
<Text strong>on your financial support</Text> to continue operating.
27+
Without your financial support this service will not survive long-term!
28+
</Paragraph>
29+
<Paragraph>
30+
<A
31+
href={
32+
"/support/new?hideExtra=true&type=purchase&subject=Support+CoCalc&title=Support+CoCalc"
33+
}
34+
>
35+
Contact us
36+
</A>{" "}
37+
if you can give support in other ways or have any questions or comments.
38+
</Paragraph>
39+
</>
40+
),
41+
blaec: (
42+
<>
43+
<Paragraph strong>
44+
Please{" "}
45+
<b>
46+
<A href={BUY_A_LICENSE_URL}>
47+
purchase a <SiteName /> license
48+
</A>
49+
</b>
50+
!
51+
</Paragraph>
52+
<Paragraph>
53+
Not only will you{" "}
54+
<u>
55+
<b>have a better experience</b>
56+
</u>
57+
, but behind the scenes, a{" "}
58+
<A href={"/about/team"}>handful of individuals</A> are continuously
59+
working to make Collaborative Calculation accessible for academics and
60+
researchers everywhere. Behind every computation is a{" "}
61+
<A href={"/info/status"}>cluster</A> that takes resources to maintain,
62+
and believe it or not, our company receives no funding from large
63+
organizations, charitable foundations or institutional investors.
64+
</Paragraph>
65+
<Paragraph>
66+
The site depends entirely <Text strong>on your financial support</Text>{" "}
67+
to continue operating.
68+
</Paragraph>
69+
<Paragraph>
70+
Unable to purchase a license?{" "}
71+
<A
72+
href={
73+
"/support/new?hideExtra=true&type=purchase&subject=Support+CoCalc&title=Support+CoCalc"
74+
}
75+
>
76+
Contact us
77+
</A>{" "}
78+
if you can give support in other ways or have any questions or comments.
79+
</Paragraph>
80+
</>
81+
),
82+
};
83+
84+
export function CallToSupport({ onClose }: { onClose? }) {
85+
return (
86+
<Alert
87+
closable={onClose != null}
88+
onClose={onClose}
89+
banner
90+
type="info"
91+
showIcon={false}
92+
message={VERSIONS.blaec}
93+
/>
94+
);
95+
}

src/packages/frontend/site-licenses/select-license.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,9 +216,9 @@ export default function SelectLicense(props: Props) {
216216
style={{ marginTop: "10px" }}
217217
type="info"
218218
showIcon
219-
message={
219+
message={"A license is required."}
220+
description={
220221
<div>
221-
A license is required.
222222
{showCall ? (
223223
<CallToSupport onClose={() => setShowCall(false)} />
224224
) : (

0 commit comments

Comments
 (0)