Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/ether1project/ethocomponents


https://github.com/ether1project/ethocomponents

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# ethocomponents

Here the header and footer components for the ETHO project websites. Aim is to have a joint footer for all projects.
It is pretty straight forward and an index.html template is provided.

You need to have in the the following:

First a initiation of a config variable:
The component is configurable by providing additional menus via the ethocomponent_menu variable in the section.
If you do not want to have any additional menus (maybe you have a side menue) then configure the following:
```
let ethocomponent_menu='';

```

Otherwise use the following.

```
let ethocomponent_menu='' +
'<li class="nav-item"><a class="nav-link" href="#">Item 1</a></li>' +
'<li class="nav-item"><a class="nav-link" href="#">Item 2</a></li>' +
'<li class="nav-item"><a class="nav-link" href="#">Item 3</a></li>' +
'';

```

It is important to have the valiable config before the css loadings

```



```



And then add in the beginning of the the header statement (if you want a menu component)
```

```

and at the end the footer statement

```

```

after the body you need to load the js scripts:

```

```

It should like this
Screenshot 2023-01-04 at 15 48 56