Skip to content

Commit 52882cd

Browse files
feat:add discord icon to header (#1444)
* feat:add discord icon to header #1443 * feat:add discord icon to header #1444(changes done) * chore: added a `,` --------- Signed-off-by: Priyankar Pal <[email protected]> Co-authored-by: Priyankar Pal <[email protected]>
1 parent 5087188 commit 52882cd

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

src/common/header/HeaderNav.jsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { useState } from 'react';
22
import { Link } from 'react-router-dom';
33
import { BsGithub, BsTrophyFill } from 'react-icons/bs';
44
import { FaLightbulb } from 'react-icons/fa';
5-
import { FaXTwitter } from 'react-icons/fa6';
5+
import { FaXTwitter, FaDiscord } from 'react-icons/fa6';
66
import { BiMoney } from 'react-icons/bi';
77
import { IoAddSharp, IoShareSocial, IoHeartSharp } from 'react-icons/io5';
88
import { MdManageSearch, MdClose, MdEvent } from 'react-icons/md';
@@ -68,6 +68,15 @@ const HeaderNav = ({ showBrowse }) => {
6868
iconClass: 'icon twitter-icon',
6969
label: 'Twitter'
7070
},
71+
{
72+
type: 'a',
73+
testId: 'discord-btn',
74+
href: 'https://discord.gg/9nFHKdfWMx',
75+
title: 'Discord',
76+
icon: FaDiscord,
77+
iconClass: 'icon discord-icon',
78+
label: 'Discord'
79+
},
7180
{
7281
type: 'button',
7382
testId: 'share-btn',

src/common/header/header.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,10 @@
267267
fill: #ffffff;
268268
}
269269

270+
.header-links > li > .app-header-btn:hover .discord-icon {
271+
fill: #7289da;
272+
}
273+
270274
.header-links > li > .app-header-btn .btn-label {
271275
font-size: var(--fs-sm);
272276
font-weight: var(--fw-semibold);

0 commit comments

Comments
 (0)