Skip to content

Commit 204e8ec

Browse files
committed
change live demo form slightly
1 parent 92011f5 commit 204e8ec

File tree

3 files changed

+12
-14
lines changed

3 files changed

+12
-14
lines changed

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

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export default function Content(props: Props) {
7373
title,
7474
} = props;
7575

76-
const { account, sandboxProjectId } = useCustomize();
76+
const { sandboxProjectId } = useCustomize();
7777

7878
function renderIndexInfo() {
7979
if (!imageAlternative) return;
@@ -217,15 +217,13 @@ export default function Content(props: Props) {
217217
{description}
218218
</Title>
219219
)}
220-
{account && (
221-
<div style={{ marginTop: "15px" }}>
222-
<LiveDemo
223-
context={
224-
typeof title == "string" ? title : alt ?? "Feature Page"
225-
}
226-
/>
227-
</div>
228-
)}
220+
<div style={{ marginTop: "15px" }}>
221+
<LiveDemo
222+
context={
223+
typeof title == "string" ? title : alt ?? "Feature Page"
224+
}
225+
/>
226+
</div>
229227
<SignIn startup={startup ?? title} hideFree={true} />
230228
</Space>
231229
</Col>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export default function Header(props: Props) {
7171
width: "150px", // CRITICAL -- this is to prevent flicker -- see https://github.com/sagemathinc/cocalc/issues/6504
7272
}}
7373
>
74-
{account ? (
74+
{true || account ? (
7575
<LiveDemo context="header" />
7676
) : (
7777
<Button

src/packages/next/components/landing/live-demo.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import { useEffect, useState } from "react";
55

66
export function liveDemoUrl(context) {
77
return getSupportUrl({
8-
subject: "Live Demo Request",
8+
subject: "Contact Sales",
99
type: "question",
10-
body: `I would like to request a live demo on CoCalc!\n\nWHEN IS A GOOD TIME (include timezone!): [REQUIRED]\n\nTELLS US AS MUCH AS YOU CAN ABOUT YOUR INTENDED USE OF COCALC: [REQUIRED]\n\n`,
10+
body: `I would like to chat with a Sales Representative!\n\nWHEN IS A GOOD TIME (include timezone!): [REQUIRED]\n\nYOUR ORGANIZATION: [REQUIRED]\n\n(Only requests filled out in good faith will receive a response.)\n`,
1111
hideExtra: true,
1212
context,
1313
url: "",
@@ -27,7 +27,7 @@ export default function LiveDemo({ context, label }: Props) {
2727
}, []);
2828
return (
2929
<Button href={href} type="primary">
30-
<Icon name="users" /> {label ?? "Get a Live Demo"}
30+
<Icon name="users" /> {label ?? "Contact Sales"}
3131
</Button>
3232
);
3333
}

0 commit comments

Comments
 (0)