Skip to content

Commit a295f68

Browse files
committed
Update nav bar
1 parent 17ef2b1 commit a295f68

File tree

8 files changed

+710
-177
lines changed

8 files changed

+710
-177
lines changed

docusaurus.config.js

Lines changed: 13 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,12 @@ const {
1212
MM_RPC_URL,
1313
} = require('./src/plugins/plugin-json-rpc')
1414
const codeTheme = themes.dracula
15-
const helpDropdown = fs.readFileSync('./src/components/NavDropdown/DeveloperTools.html', 'utf-8')
16-
const connectDropdown = fs.readFileSync(
17-
'./src/components/NavDropdown/ConnectMetaMask.html',
15+
const learnDropdown = fs.readFileSync('./src/components/NavDropdown/Learn.html', 'utf-8')
16+
const productsDropdown = fs.readFileSync(
17+
'./src/components/NavDropdown/Products.html',
1818
'utf-8'
1919
)
2020
const baseUrl = process.env.DEST || '/';
21-
const embedDropdown = fs.readFileSync('./src/components/NavDropdown/EmbedMetaMask.html', 'utf-8')
22-
const extendDropdown = fs.readFileSync('./src/components/NavDropdown/ExtendScale.html', 'utf-8')
2321
const npm2yarnPlugin = [require('@docusaurus/remark-plugin-npm2yarn'), { sync: true }]
2422
/** @type {import('@docusaurus/types').Config} */
2523
const config = {
@@ -307,31 +305,21 @@ const config = {
307305
items: [
308306
{
309307
type: 'dropdown',
310-
label: 'Connect to MetaMask',
308+
label: 'Products',
311309
items: [
312310
{
313311
type: 'html',
314-
value: connectDropdown,
312+
value: productsDropdown,
315313
},
316314
],
317315
},
318316
{
319317
type: 'dropdown',
320-
label: 'Embed MetaMask',
318+
label: 'Learn',
321319
items: [
322320
{
323321
type: 'html',
324-
value: embedDropdown,
325-
},
326-
],
327-
},
328-
{
329-
type: 'dropdown',
330-
label: 'Extend and scale',
331-
items: [
332-
{
333-
type: 'html',
334-
value: extendDropdown,
322+
value: learnDropdown,
335323
},
336324
],
337325
},
@@ -341,18 +329,14 @@ const config = {
341329
position: 'left',
342330
},
343331
{
344-
type: 'dropdown',
345-
label: 'Developer tools',
346-
items: [
347-
{
348-
type: 'html',
349-
value: helpDropdown,
350-
},
351-
],
332+
to: 'developer-tools/faucet/',
333+
label: "Faucet",
334+
position: 'right',
335+
excludeUrl: REF_ALLOW_LOGIN_PATH,
352336
},
353337
{
354-
to: 'whats-new',
355-
label: "What's new?",
338+
to: 'https://community.metamask.io/',
339+
label: "Help ↗",
356340
position: 'right',
357341
},
358342
{

src/components/NavDropdown/ConnectMetaMask.html

Lines changed: 0 additions & 35 deletions
This file was deleted.

src/components/NavDropdown/DeveloperTools.html

Lines changed: 0 additions & 33 deletions
This file was deleted.

src/components/NavDropdown/EmbedMetaMask.html

Lines changed: 0 additions & 38 deletions
This file was deleted.

src/components/NavDropdown/ExtendScale.html

Lines changed: 0 additions & 38 deletions
This file was deleted.

src/components/NavDropdown/Learn.html

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<div class="sdk-menu">
2+
<span class="sdk-selection-menu selected-menu" id="features-menu">
3+
<ul>
4+
<li>
5+
<a href="/features/">
6+
<div>
7+
<h2>Features</h2>
8+
<p>Explore Metamask features and capabilities for developers.</p>
9+
</div>
10+
</a>
11+
</li>
12+
<li>
13+
<a href="/tutorials/">
14+
<div>
15+
<h2>Tutorials</h2>
16+
<p>Step by step guides to help you build with MetaMask.</p>
17+
</div>
18+
</a>
19+
</li>
20+
21+
</ul>
22+
</span>
23+
</div>

0 commit comments

Comments
 (0)