Skip to content

Commit 3d916bb

Browse files
committed
feat(HomePage): add Discord link to footer and update description for community focus
1 parent 419dd30 commit 3d916bb

1 file changed

Lines changed: 27 additions & 12 deletions

File tree

packages/webapp/src/components/pages/home/HomePage.tsx

Lines changed: 27 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import Modal from '@components/ui/Modal'
1212
import TabLayout from '../TabLayout'
1313
import { useAuthStore, useStore } from '@stores'
1414
import { LuGithub, LuMessageCircle } from 'react-icons/lu'
15+
import { FaDiscord } from 'react-icons/fa'
1516

1617
const SignInPanel = dynamic(() => import('@pages/panels/SignInPanel'), {
1718
loading: () => <Loading />
@@ -110,7 +111,7 @@ const HomePage = ({ hostname }: HomePageProps) => {
110111
Get everyone on the same page
111112
</h1>
112113
<p className="text-sm text-slate-500 sm:text-lg">
113-
Free, open-source collaborative documents for teams
114+
Free, open-source collaborative documents for teams & communities
114115
</p>
115116
</div>
116117

@@ -195,18 +196,32 @@ const HomePage = ({ hostname }: HomePageProps) => {
195196
</main>
196197

197198
{/* Footer */}
198-
<footer className="flex shrink-0 flex-wrap items-center justify-center gap-2 px-4 py-3 text-sm text-slate-500 sm:gap-4 sm:py-6">
199-
<a
200-
href="https://github.com/docs-plus/docs.plus"
201-
className="flex items-center gap-1.5 rounded-full bg-slate-800 px-3 py-1.5 text-xs text-white transition-colors hover:bg-slate-700 sm:px-4 sm:py-2 sm:text-sm">
202-
<LuGithub size={16} />
203-
<span>GitHub</span>
204-
</a>
199+
<footer className="flex shrink-0 items-center justify-center gap-3 px-4 py-3 text-sm text-slate-500 sm:gap-4 sm:py-6">
200+
{/* GitHub group */}
201+
<div className="flex items-center gap-2">
202+
<a
203+
href="https://github.com/docs-plus/docs.plus"
204+
className="flex items-center gap-1.5 rounded-full bg-slate-800 px-3 py-1.5 text-xs text-white transition-colors hover:bg-slate-700 sm:px-4 sm:py-2 sm:text-sm">
205+
<LuGithub size={16} />
206+
<span>GitHub</span>
207+
</a>
208+
<a
209+
href="https://github.com/docs-plus/docs.plus/discussions"
210+
className="flex items-center gap-1.5 rounded-full border border-slate-300 px-3 py-1.5 text-xs transition-colors hover:bg-slate-100 sm:px-4 sm:py-2 sm:text-sm">
211+
<LuMessageCircle size={16} />
212+
<span>Discuss</span>
213+
</a>
214+
</div>
215+
216+
{/* Divider */}
217+
<div className="h-6 w-px bg-slate-300" />
218+
219+
{/* Discord */}
205220
<a
206-
href="https://github.com/docs-plus/docs.plus/discussions"
207-
className="flex items-center gap-1.5 rounded-full border border-slate-300 px-3 py-1.5 text-xs transition-colors hover:bg-slate-100 sm:px-4 sm:py-2 sm:text-sm">
208-
<LuMessageCircle size={16} />
209-
<span>Discuss</span>
221+
href="https://discord.com/invite/25JPG38J59"
222+
className="flex items-center gap-1.5 rounded-full bg-[#5865F2] px-3 py-1.5 text-xs text-white transition-colors hover:bg-[#4752C4] sm:px-4 sm:py-2 sm:text-sm">
223+
<FaDiscord size={16} />
224+
<span>Discord</span>
210225
</a>
211226
</footer>
212227
</div>

0 commit comments

Comments
 (0)