Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 278e9c9

Browse files
committed
Add chatroom to nav
1 parent 05f67b4 commit 278e9c9

File tree

4 files changed

+31
-2
lines changed

4 files changed

+31
-2
lines changed

next.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ module.exports = {
1010
'https://github.com/coderplex-org/coderplex-org/wiki/Markdown-Guide',
1111
permanent: false,
1212
},
13+
{
14+
source: '/chat',
15+
destination: 'https://chat.coderplex.org',
16+
permanent: true,
17+
},
1318
]
1419
},
1520
}

src/components/AppNavBar.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ const navbarItems = [
1919
value: 'members',
2020
href: '/members',
2121
},
22+
{
23+
title: 'Our Chatroom',
24+
value: 'our-chatroom',
25+
href: '/chat',
26+
},
2227
]
2328

2429
export default function AppNavBar() {

src/components/Hero.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ export default function Hero() {
1212
</span>
1313
</h1>
1414
<p className="mt-3 max-w-md mx-auto text-base text-gray-500 sm:text-lg md:mt-5 md:text-xl md:max-w-3xl">
15-
Our mission is to help each other to learn more, create awesome
16-
things, and become better developers.
15+
Achieve your goals with a community of passionate self-learners by
16+
joining the Coderplex Community
1717
</p>
1818
<div className="mt-5 max-w-xl mx-auto sm:flex sm:justify-center md:mt-8">
1919
<div className="rounded-md shadow">

src/components/HomePageFeed.tsx

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ import {
3535
import { Goal } from './goals'
3636
import type { GoalResponse } from 'src/pages/[username]'
3737
import { scrollToContentWithId } from 'src/utils'
38+
import { IconBrandDiscord } from 'tabler-icons'
3839

3940
type LikeData = {
4041
count: number
@@ -351,6 +352,15 @@ function HomePageSideNavBar() {
351352
<Gear className="text-gray-400 group-hover:text-gray-500 flex-shrink-0 -ml-1 mr-3 h-6 w-6" />
352353
<span className="truncate">Settings</span>
353354
</A>
355+
356+
<A
357+
href="/chat"
358+
className="text-gray-600 hover:bg-gray-50 group flex items-center px-3 py-2 text-sm font-medium rounded-md"
359+
aria-current="false"
360+
>
361+
<IconBrandDiscord className="text-gray-400 group-hover:text-gray-500 flex-shrink-0 -ml-1 mr-3 h-6 w-6" />
362+
<span className="truncate">Our Chatroom</span>
363+
</A>
354364
</>
355365
)}
356366
{!session && (
@@ -363,6 +373,15 @@ function HomePageSideNavBar() {
363373
<Users className="text-gray-400 group-hover:text-gray-500 flex-shrink-0 -ml-1 mr-3 h-6 w-6" />
364374
<span className="truncate">Members</span>
365375
</A>
376+
<A
377+
href="/chat"
378+
target="_blank"
379+
className="text-gray-600 hover:bg-gray-50 group flex items-center px-3 py-2 text-sm font-medium rounded-md"
380+
aria-current="false"
381+
>
382+
<IconBrandDiscord className="text-gray-400 group-hover:text-gray-500 flex-shrink-0 -ml-1 mr-3 h-6 w-6" />
383+
<span className="truncate">Our Chatroom</span>
384+
</A>
366385
</>
367386
)}
368387
</div>

0 commit comments

Comments
 (0)