Updated the website
This commit is contained in:
parent
74736d9b40
commit
02a8d891bc
4 changed files with 223 additions and 144 deletions
26
header.js
26
header.js
|
@ -17,7 +17,6 @@
|
|||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
class Header extends HTMLElement {
|
||||
constructor() {
|
||||
super();
|
||||
|
@ -25,20 +24,23 @@ class Header extends HTMLElement {
|
|||
|
||||
connectedCallback() {
|
||||
this.innerHTML = `
|
||||
<header>
|
||||
<div class="header-content">
|
||||
<div><a href="index.html" class="project-name">Interstellar Development</a></div>
|
||||
<ul>
|
||||
<li><a href="index.html#project">Our Projects</a></li>
|
||||
<li><a href="index.html#about">Our Team</a></li>
|
||||
<li><a href="index.html#vision">Our Vision</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</header>
|
||||
<header>
|
||||
<div class="header-content">
|
||||
<div><a href="index.html" class="project-name">Interstellar Development</a></div>
|
||||
<button class="burger-menu" onclick="toggleMenu()">☰</button>
|
||||
</div>
|
||||
</header>
|
||||
<div class="div-menu">
|
||||
<ul class="menu">
|
||||
<li><a href="index.html#project">Our Projects</a></li>
|
||||
<li><a href="index.html#cards">Our Team</a></li>
|
||||
<li><a href="index.html#about">About us</a></li>
|
||||
<li><a href="index.html#vision">Our Vision</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
`;
|
||||
}
|
||||
}
|
||||
|
||||
customElements.define('header-component', Header);
|
||||
|
||||
// @license-end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue