Skip to content

Commit 5ca45d3

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 5ca45d3

File tree

2 files changed

+49
-36
lines changed

2 files changed

+49
-36
lines changed

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

+1-1
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/support/create.tsx

+48-35
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)