Skip to content

Commit fe4d662

Browse files
committed
add some video chat links
1 parent 481a4e9 commit fe4d662

File tree

3 files changed

+46
-21
lines changed

3 files changed

+46
-21
lines changed

src/packages/next/components/landing/social-media-icon-list.tsx

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,16 @@ const ICON_MAP: Record<SocialMediaType, IconName> = {
2020
[SocialMediaType.LINKEDIN]: "linkedin-filled",
2121
[SocialMediaType.TWITTER]: "twitter",
2222
[SocialMediaType.YOUTUBE]: "youtube-filled",
23-
}
23+
};
2424

2525
export interface SocialMediaIconListProps {
2626
links: Partial<Record<SocialMediaType, string>>;
2727
iconFontSize?: number;
2828
style?: React.CSSProperties;
2929
}
3030

31-
const SocialMediaIconList = (props: SocialMediaIconListProps) => {
32-
const {
33-
links,
34-
iconFontSize = 12,
35-
style = {}
36-
} = props;
31+
export default function SocialMediaIconList(props: SocialMediaIconListProps) {
32+
const { links, iconFontSize = 12, style = {} } = props;
3733

3834
return (
3935
<Flex
@@ -42,9 +38,11 @@ const SocialMediaIconList = (props: SocialMediaIconListProps) => {
4238
style={{
4339
fontSize: `${iconFontSize}px`,
4440
...style,
45-
}}>
46-
{
47-
Object.keys(links).sort().map((mediaType: SocialMediaType) => (
41+
}}
42+
>
43+
{Object.keys(links)
44+
.sort()
45+
.map((mediaType: SocialMediaType) => (
4846
<a
4947
key={mediaType}
5048
href={links[mediaType]}
@@ -53,12 +51,12 @@ const SocialMediaIconList = (props: SocialMediaIconListProps) => {
5351
color: COLORS.GRAY,
5452
}}
5553
>
56-
<Icon name={ICON_MAP[mediaType]} style={{ margin: `0 ${iconFontSize/2}px` }}/>
54+
<Icon
55+
name={ICON_MAP[mediaType]}
56+
style={{ margin: `0 ${iconFontSize / 2}px` }}
57+
/>
5758
</a>
58-
))
59-
}
59+
))}
6060
</Flex>
6161
);
6262
}
63-
64-
export default SocialMediaIconList;

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ function SupportTimeline({ tickets }) {
6666
v.push(
6767
<Timeline.Item key={ticket.id} color={statusToColor(ticket.status)}>
6868
<Ticket ticket={ticket} />
69-
</Timeline.Item>
69+
</Timeline.Item>,
7070
);
7171
}
7272
return <Timeline>{v}</Timeline>;
@@ -182,6 +182,7 @@ const TYPE_COLOR: { [name in Type]: string } = {
182182
question: "blue",
183183
task: "orange",
184184
purchase: "green",
185+
chat: "purple",
185186
};
186187

187188
export function Type({ status, type }: { status?: string; type: Type }) {

src/packages/next/pages/support/index.tsx

Lines changed: 31 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import { VideoItem } from "components/videos";
1111
import IndexList, { DataSource } from "components/landing/index-list";
1212
import { Title } from "components/misc";
1313
import SanitizedMarkdown from "components/misc/sanitized-markdown";
14+
import SocialMediaIconList from "components/landing/social-media-icon-list";
1415

1516
const dataSource = [
1617
{
@@ -22,10 +23,13 @@ const dataSource = [
2223
<>
2324
If you are having any trouble or just have a question,{" "}
2425
<A href="/support/new">
25-
<b>create a support ticket</b>
26+
<b>create a support ticket</b>{" "}
2627
</A>
27-
. You do NOT have to be a paying customer to open a ticket, though we
28-
prioritize customer requests.
28+
or{" "}
29+
<A href="https://calendly.com/cocalc">
30+
<b>book a video chat</b>
31+
</A>
32+
. You do NOT have to be a paying customer to open a ticket.
2933
<VideoItem
3034
width={800}
3135
style={{ margin: "15px 0" }}
@@ -49,6 +53,20 @@ const dataSource = [
4953
</>
5054
),
5155
},
56+
{
57+
link: "https://calendly.com/cocalc",
58+
title: "Book a Video Chat",
59+
logo: "video",
60+
description: (
61+
<>
62+
Book a{" "}
63+
<A href="https://calendly.com/cocalc">
64+
<b>video chat</b>
65+
</A>
66+
.
67+
</>
68+
),
69+
},
5270
{
5371
link: "/support/chatgpt",
5472
title: "ChatGPT Suppport",
@@ -80,8 +98,16 @@ const dataSource = [
8098
<A href="https://groups.google.com/forum/?fromgroups#!forum/cocalc">
8199
post to the mailing list.{" "}
82100
</A>
83-
We also have <A href="https://twitter.com/cocalc_com">a Twitter feed</A>{" "}
84-
and <A href="https://about.cocalc.com/cocalcs-blog/">a blog</A>.
101+
<SocialMediaIconList
102+
links={{
103+
facebook: "https://www.facebook.com/CoCalcOnline",
104+
github: "https://github.com/sagemathinc/cocalc",
105+
linkedin: "https://www.linkedin.com/company/sagemath-inc./",
106+
twitter: "https://twitter.com/cocalc_com",
107+
youtube: "https://www.youtube.com/c/SagemathCloud",
108+
}}
109+
iconFontSize={20}
110+
/>
85111
</>
86112
),
87113
},

0 commit comments

Comments
 (0)