Skip to content

Commit 72ec7de

Browse files
committed
next/support/new: make the "chat" info more stand out and remove the note about submitted tickets for chats
1 parent 11e90d6 commit 72ec7de

File tree

4 files changed

+75
-42
lines changed

4 files changed

+75
-42
lines changed

src/packages/next/components/auth/sign-up.tsx

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33
* License: MS-RSL – see LICENSE.md for details
44
*/
55

6-
import { Alert, Button, Checkbox, Input } from "antd";
6+
import { Alert, Button, Checkbox, Divider, Input } from "antd";
77
import { CSSProperties, useEffect, useRef, useState } from "react";
88
import {
99
GoogleReCaptchaProvider,
1010
useGoogleReCaptcha,
1111
} from "react-google-recaptcha-v3";
12+
1213
import Markdown from "@cocalc/frontend/editors/slate/static-markdown";
1314
import {
1415
CONTACT_TAG,
@@ -22,6 +23,7 @@ import {
2223
} from "@cocalc/util/misc";
2324
import { COLORS } from "@cocalc/util/theme";
2425
import { Strategy } from "@cocalc/util/types/sso";
26+
import { Paragraph } from "components/misc";
2527
import A from "components/misc/A";
2628
import Loading from "components/share/loading";
2729
import apiPost from "lib/api/post";
@@ -99,7 +101,7 @@ function SignUp0({
99101

100102
const submittable = useRef<boolean>(false);
101103
const { executeRecaptcha } = useGoogleReCaptcha();
102-
const { strategies } = useCustomize();
104+
const { strategies, supportVideoCall } = useCustomize();
103105

104106
// Sometimes the user if this component knows requiresToken and sometimes they don't.
105107
// If they don't, we have to make an API call to figure it out.
@@ -263,13 +265,21 @@ function SignUp0({
263265
minimal={minimal}
264266
title={`Create a free account with ${siteName}`}
265267
>
266-
<div>
268+
<Paragraph>
267269
By creating an account, you agree to the{" "}
268270
<A external={true} href="/policies/terms">
269271
Terms of Service
270272
</A>
271273
.
272-
</div>
274+
</Paragraph>
275+
{onCoCalcCom && supportVideoCall ? (
276+
<Paragraph>
277+
Do you need more information how {siteName} can be useful for you?{" "}
278+
<A href={supportVideoCall}>Book a video call</A> and we'll help you
279+
decide.
280+
</Paragraph>
281+
) : undefined}
282+
<Divider />
273283
{!minimal && onCoCalcCom ? (
274284
<Tags
275285
setTags={setTags}

src/packages/next/components/landing/footer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ export default function Footer() {
140140
},
141141
{
142142
text: "Get a Live Demo",
143-
url: supportVideoCall,
143+
url: supportVideoCall ?? "",
144144
hide: !enabledPages?.liveDemo || !supportVideoCall,
145145
},
146146
{

src/packages/next/components/store/overview.tsx

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@
66
import { Divider } from "antd";
77
import { useRouter } from "next/router";
88
import { useEffect } from "react";
9+
910
import { Icon, PAYASYOUGO_ICON } from "@cocalc/frontend/components/icon";
1011
import { Paragraph } from "components/misc";
1112
import A from "components/misc/A";
1213
import SiteName from "components/share/site-name";
14+
import { useCustomize } from "lib/customize";
1315
import {
1416
OVERVIEW_LARGE_ICON,
1517
OVERVIEW_STYLE,
@@ -19,6 +21,7 @@ import {
1921

2022
export default function Overview() {
2123
const router = useRouter();
24+
const { supportVideoCall } = useCustomize();
2225

2326
// most likely, user will go to the cart next
2427
useEffect(() => {
@@ -31,11 +34,18 @@ export default function Overview() {
3134
<h2 style={{ marginBottom: "30px" }}>
3235
Welcome to the <SiteName /> Store!
3336
</h2>
34-
<div style={{ fontSize: "13pt" }}>
37+
<Paragraph style={{ fontSize: "13pt" }}>
3538
Shop below for <A href="/store/site-license">licenses</A> and{" "}
3639
<A href="/store/vouchers">vouchers</A> or explore{" "}
3740
<A href="/pricing">all available products and pricing</A>.
38-
</div>
41+
</Paragraph>
42+
{supportVideoCall ? (
43+
<Paragraph>
44+
Not sure what you need?{" "}
45+
<A href={supportVideoCall}>Book a video call</A> and we'll help you
46+
decide.
47+
</Paragraph>
48+
) : undefined}
3949
<OverviewRow>
4050
<Product icon="key" title="Licenses" href="/store/site-license">
4151
Buy a license to upgrade projects, get internet access, more CPU, disk

src/packages/next/components/support/create.tsx

Lines changed: 48 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -142,14 +142,25 @@ export default function Create() {
142142
function renderChat() {
143143
if (type === "chat" && supportVideoCall) {
144144
return (
145-
<h1 style={{ textAlign: "center" }}>
146-
<b>
147-
<A href={supportVideoCall}>Book a Video Chat...</A>
148-
</b>
149-
</h1>
145+
<Alert
146+
type="info"
147+
showIcon={false}
148+
description={
149+
<Paragraph style={{ fontSize: "16px" }}>
150+
Please describe what you want to discuss in the{" "}
151+
<A href={supportVideoCall}>video chat</A>. We will then contact
152+
you to confirm the time.
153+
</Paragraph>
154+
}
155+
message={
156+
<Title level={2}>
157+
<Icon name="video-camera" /> You can{" "}
158+
<A href={supportVideoCall}>book a video chat</A> with us.
159+
</Title>
160+
}
161+
/>
150162
);
151-
}
152-
if (type !== "chat") {
163+
} else {
153164
return (
154165
<>
155166
<b>
@@ -165,18 +176,18 @@ export default function Create() {
165176
paddingLeft: "15px",
166177
}}
167178
>
168-
{type == "problem" && <Problem onChange={setBody} />}
169-
{type == "question" && (
179+
{type === "problem" && <Problem onChange={setBody} />}
180+
{type === "question" && (
170181
<Question onChange={setBody} defaultValue={body} />
171182
)}
172-
{type == "purchase" && (
183+
{type === "purchase" && (
173184
<Purchase
174185
onChange={setBody}
175186
defaultValue={body}
176187
showExtra={showExtra}
177188
/>
178189
)}
179-
{type == "task" && <Task onChange={setBody} />}
190+
{type === "task" && <Task onChange={setBody} />}
180191
</div>
181192
</>
182193
);
@@ -200,28 +211,27 @@ export default function Create() {
200211
{showExtra && (
201212
<>
202213
<Space>
203-
<p style={{ fontSize: "12pt" }}>
204-
Create a new support ticket below or{" "}
205-
<A href="/support/tickets">
206-
check the status of your support tickets
207-
</A>
208-
.{" "}
214+
<Space direction="vertical" size="large">
215+
<Paragraph style={{ fontSize: "16px" }}>
216+
Create a new support ticket below or{" "}
217+
<A href="/support/tickets">
218+
check the status of your support tickets
219+
</A>
220+
.
221+
</Paragraph>
209222
{helpEmail ? (
210-
<>
223+
<Paragraph style={{ fontSize: "16px" }}>
211224
You can also email us directly at{" "}
212-
<A href={`mailto:${helpEmail}`}>{helpEmail}</A>{" "}
213-
{supportVideoCall ? (
214-
<>
215-
or{" "}
216-
<A href={supportVideoCall}>
217-
book a demo or discovery call
218-
</A>
219-
</>
220-
) : undefined}
221-
.
222-
</>
225+
<A href={`mailto:${helpEmail}`}>{helpEmail}</A>.
226+
</Paragraph>
223227
) : undefined}
224-
</p>
228+
{supportVideoCall ? (
229+
<Paragraph style={{ fontSize: "16px" }}>
230+
Alternatively, feel free to{" "}
231+
<A href={supportVideoCall}>book a video call</A> with us.
232+
</Paragraph>
233+
) : undefined}
234+
</Space>
225235
<VideoItem
226236
width={600}
227237
style={{ margin: "15px 0", width: "600px" }}
@@ -372,11 +382,14 @@ export default function Create() {
372382
)}
373383
</div>
374384
</form>
375-
<p style={{ marginTop: "30px" }}>
376-
After submitting this, you'll receive a link, which you should save
377-
until you receive a confirmation email. You can also{" "}
378-
<A href="/support/tickets">check the status of your tickets here</A>.
379-
</p>
385+
{type !== "chat" && (
386+
<Paragraph style={{ marginTop: "30px" }}>
387+
After submitting this, you'll receive a link, which you should save
388+
until you receive a confirmation email. You can also{" "}
389+
<A href="/support/tickets">check the status of your tickets here</A>
390+
.
391+
</Paragraph>
392+
)}
380393
</div>
381394
</Layout.Content>
382395
);

0 commit comments

Comments
 (0)