An open API service indexing awesome lists of open source software.

https://github.com/howtocodewell/header-menu

The header menu of How To Code Well which is shared across sites
https://github.com/howtocodewell/header-menu

Last synced: 3 months ago
JSON representation

The header menu of How To Code Well which is shared across sites

Awesome Lists containing this project

README

          

# How To Code Well header-menu
The header menu of How To Code Well which is shared across multiple sites

# Install

```bash
$ npm install --save @howtocodewell/header-menu
```

```bash
$ npm run build
```

## Usage
1) Create the following config file in `/src/config/headerMenu.json` and change `name` and `url` values.

```json
{
"items": [
{
"name": "Overriden",
"url": "https://howtocodewell.net/merch"
},
{
"name": "Courses",
"url": "https://howtocodewell.net/shop"
},
{
"name": "Tutorials",
"url": "https://howtocodewell.net/courses"
},
{
"name": "Orders",
"url": "https://codechallenges.howtocodewell.net"
}
]
}
```

2) Import the module and config
```javascript
import HeaderMenu from "@howtocodewell/header-menu"
import menu from "./config/headerMenu.json"
```
3) Load the `HeaderMenu` and pass the menu property
```javascript

```