Skip to content

Commit 6fb3bce

Browse files
Replaced navbar-emojis with professional icon
1 parent 18fc80e commit 6fb3bce

File tree

2 files changed

+20
-18
lines changed

2 files changed

+20
-18
lines changed

docusaurus.config.ts

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ const config: Config = {
8787
items: [
8888
{
8989
type: "dropdown",
90-
html: '<span class="nav-emoji">📚</span> Docs',
90+
html: '<span id="nav-docs"></span> Docs',
9191
position: "left",
9292
items: [
9393
{
@@ -135,62 +135,62 @@ const config: Config = {
135135
},
136136
{
137137
to: "/showcase",
138-
html: '<span class="nav-emoji">🌍</span> Showcase',
138+
html: '<span id="nav-showcase"></span> Showcase',
139139
position: "left",
140140
},
141141
{
142142
to: "/dashboard",
143-
html: '<span class="nav-emoji">📊</span> Dashboard',
143+
html: '<span id="nav-dashboard"></span> Dashboard',
144144
position: "left",
145145
},
146146
{
147147
to: "/our-sponsors/",
148-
html: '<span class="nav-emoji">💰</span> Donate',
148+
html: '<span id="nav-donate"></span> Donate',
149149
position: "left",
150150
},
151151
{
152152
type: "dropdown",
153-
html: '<span class="nav-emoji">👩🏻‍💻</span> Devfolio',
153+
html: '<span id="nav-devfolio"></span> Devfolio',
154154
position: "left",
155155
items: [
156156
{
157-
label: "💻GitHub Profiles",
157+
html: '<span id="nav-github" style="display:inline-flex;align-items:center;"></span> GitHub Profiles',
158158
to: "https://dev.recodehive.com/devfolio",
159159
},
160160
{
161-
label: "🎖️ GitHub Badges",
161+
html: '<span id="nav-badges" style="display:inline-flex;align-items:center;"></span> GitHub Badges',
162162
to: "/badges/github-badges/",
163163
},
164164
],
165165
},
166166
{
167167
to: "/blogs",
168-
html: '<span class="nav-emoji">📰</span> Blogs',
168+
html: '<span id="nav-blogs"></span> Blogs',
169169
position: "left",
170170
},
171171
{
172172
type: "dropdown",
173-
html: '<span class="nav-emoji">🔗</span> More',
173+
html: '<span id="nav-more"></span> More',
174174
position: "left",
175175
items: [
176176
{
177-
label: "📚 E-books",
177+
html: '<span id="nav-ebooks" style="display:inline-flex;align-items:center;"></span> E-books',
178178
to: "https://learn.recodehive.com/datascience",
179179
},
180180
{
181-
label: "🛣️ Roadmap",
181+
html: '<span id="nav-roadmap" style="display:inline-flex;align-items:center;"></span> Roadmap',
182182
to: "#",
183183
},
184184
{
185-
label: "🤝 Community",
185+
html: '<span id="nav-community" style="display:inline-flex;align-items:center;"></span> Community',
186186
to: "/community",
187187
},
188188
{
189-
label: "📺 Broadcast",
189+
html: '<span id="nav-broadcast" style="display:inline-flex;align-items:center;"></span> Broadcast',
190190
to: "/broadcasts/",
191191
},
192192
{
193-
label: "🎙️ Podcast",
193+
html: '<span id="nav-podcast" style="display:inline-flex;align-items:center;"></span> Podcast',
194194
to: "/podcasts/",
195195
},
196196
],

src/theme/Navbar/index.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
1-
import React, {type ReactNode} from 'react';
2-
import Navbar from '@theme-original/Navbar';
3-
import type NavbarType from '@theme/Navbar';
4-
import type {WrapperProps} from '@docusaurus/types';
1+
import React, { type ReactNode } from "react";
2+
import Navbar from "@theme-original/Navbar";
3+
import type NavbarType from "@theme/Navbar";
4+
import type { WrapperProps } from "@docusaurus/types";
5+
import NavbarIconInjector from "../../components/navbar/NavbarIconInjector";
56

67
type Props = WrapperProps<typeof NavbarType>;
78

89
export default function NavbarWrapper(props: Props): ReactNode {
910
return (
1011
<>
1112
<Navbar {...props} />
13+
<NavbarIconInjector />
1214
</>
1315
);
1416
}

0 commit comments

Comments
 (0)