Skip to content

Commit 2b81c52

Browse files
committed
links: github discussion --> discord
1 parent fb477d7 commit 2b81c52

File tree

3 files changed

+38
-22
lines changed

3 files changed

+38
-22
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ enum SocialMediaType {
1111
LINKEDIN = "linkedin",
1212
TWITTER = "twitter",
1313
YOUTUBE = "youtube",
14+
DISCORD = "discord",
1415
}
1516

1617
const ICON_MAP: Record<SocialMediaType, IconName> = {
@@ -20,6 +21,7 @@ const ICON_MAP: Record<SocialMediaType, IconName> = {
2021
[SocialMediaType.LINKEDIN]: "linkedin-filled",
2122
[SocialMediaType.TWITTER]: "twitter",
2223
[SocialMediaType.YOUTUBE]: "youtube-filled",
24+
[SocialMediaType.DISCORD]: "discord",
2325
};
2426

2527
export interface SocialMediaIconListProps {

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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import { MAX_WIDTH } from "lib/config";
1111
import { Customize } from "lib/customize";
1212
import withCustomize from "lib/with-customize";
1313
import MailingList from "public/info/cocalc-mailing-list.png";
14+
import Discord from "public/info/discord.png";
1415
import { COLORS } from "@cocalc/util/theme";
1516
import Facebook from "public/info/facebook.png";
1617
import GitHubDiscussions from "public/info/github-discussions.png";
@@ -22,6 +23,24 @@ import Twitter from "public/info/twitter.png";
2223
const imageWidth = "300px";
2324

2425
const dataSource = [
26+
{
27+
link: "https://discord.gg/nEHs2GK",
28+
title: (
29+
<>
30+
<b>Chat</b> about CoCalc on Discord
31+
</>
32+
),
33+
logo: "comment",
34+
image: Discord,
35+
imageWidth,
36+
description: (
37+
<>
38+
Visit the{" "}
39+
<A href="https://discord.gg/EugdaJZ8">CoCalc Discord server</A> to chat
40+
with other CoCalc users, ask questions, and give us quick feedback.
41+
</>
42+
),
43+
},
2544
{
2645
link: "https://github.com/sagemathinc/cocalc",
2746
logo: "github",

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

Lines changed: 17 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -73,39 +73,19 @@ const dataSource = [
7373
</>
7474
),
7575
},
76-
{
77-
link: "/support/chatgpt",
78-
title: "ChatGPT Suppport",
79-
logo: "robot",
80-
hide: (customize) => !customize.openaiEnabled || !customize.onCoCalcCom,
81-
description: (
82-
<>
83-
Our <A href="/support/chatgpt">integrated ChatGPT support</A> is free
84-
and often very helpful since it knows so much about the open source
85-
software in CoCalc.
86-
<ChatGPTHelp
87-
style={{ marginTop: "15px" }}
88-
size="large"
89-
tag="support-index"
90-
/>
91-
</>
92-
),
93-
},
9476
{
9577
link: "/support/community",
9678
title: "CoCalc Community Support",
9779
logo: "users",
9880
description: (
9981
<>
100-
<A href="https://github.com/sagemathinc/cocalc/discussions">
101-
Join a discussion
102-
</A>{" "}
103-
or{" "}
82+
<A href="https://discord.gg/EugdaJZ8">Join our Discord server</A> or{" "}
10483
<A href="https://groups.google.com/forum/?fromgroups#!forum/cocalc">
10584
post to the mailing list.{" "}
10685
</A>
10786
<SocialMediaIconList
10887
links={{
88+
discord: "https://discord.gg/EugdaJZ8",
10989
facebook: "https://www.facebook.com/CoCalcOnline",
11090
github: "https://github.com/sagemathinc/cocalc",
11191
linkedin: "https://www.linkedin.com/company/sagemath-inc./",
@@ -117,6 +97,21 @@ const dataSource = [
11797
</>
11898
),
11999
},
100+
{
101+
link: "/support/chatgpt",
102+
title: "ChatGPT",
103+
logo: "robot",
104+
hide: (customize) => !customize.openaiEnabled || !customize.onCoCalcCom,
105+
description: (
106+
<>
107+
<ChatGPTHelp
108+
style={{ marginTop: "15px" }}
109+
size="large"
110+
tag="support-index"
111+
/>
112+
</>
113+
),
114+
},
120115
{
121116
landingPages: true,
122117
link: ({ supportVideoCall }: CustomizeType) => supportVideoCall,

0 commit comments

Comments
 (0)