Skip to content

Commit

Permalink
docs: add discord invite link
Browse files Browse the repository at this point in the history
  • Loading branch information
moonrailgun committed Dec 24, 2023
1 parent 67f87e8 commit 2fbf2d6
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 10 deletions.
6 changes: 5 additions & 1 deletion website/src/components/JoinCommunity.less
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@
color: var(--ifm-color-emphasis-600);
}

div + div {
margin-top: 1rem;
}

.producthunt {
margin: 2rem 0;
margin: 1rem 0;
}
}
32 changes: 23 additions & 9 deletions website/src/components/JoinCommunity.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { inviteLink } from '../utils/consts';
import { discordLink, inviteLink } from '../utils/consts';
import Link from '@docusaurus/Link';
import Translate from '@docusaurus/Translate';
import './JoinCommunity.less';
Expand All @@ -16,14 +16,28 @@ export const JoinCommunity: React.FC = React.memo(() => {
product support, and more.
</Translate>
</p>
<Link
className="button button--primary button--lg"
href={inviteLink}
data-umami-event="joingroup"
data-tianji-event="joingroup"
>
<Translate>Join Our Group</Translate>
</Link>

<div>
<Link
className="button button--primary button--lg"
href={inviteLink}
data-umami-event="joingroup"
data-tianji-event="joingroup"
>
<Translate>Join Tailchat Group</Translate>
</Link>
</div>

<div>
<Link
className="button button--primary button--lg"
href={discordLink}
data-umami-event="joindiscord"
data-tianji-event="joindiscord"
>
<Translate>Join Discord</Translate>
</Link>
</div>

<div className="producthunt">
<a
Expand Down
2 changes: 2 additions & 0 deletions website/src/utils/consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ export const nightlyUrl = 'https://nightly.paw.msgbyte.com/';

export const inviteLink = 'https://nightly.paw.msgbyte.com/invite/8Jfm1dWb';

export const discordLink = 'https://discord.gg/JmQBGvSEbA';

export const releaseNoteUrl = '/blog/tags/release-note';

0 comments on commit 2fbf2d6

Please sign in to comment.