freettrpg/header.js

34 lines
1,009 B
JavaScript
Raw Normal View History

2024-06-30 00:17:59 +02:00
// @license https://creativecommons.org/licenses/by-sa/4.0/ CC-BY-SA-4.0
class Header extends HTMLElement {
constructor() {
super();
}
connectedCallback() {
this.innerHTML = `
<style>
</style>
<header>
<div class="header-content">
<div><a href="index.html" class="project-name">FreeTTRPG</a></div>
<button class="burger-menu" onclick="toggleMenu()"></button>
</div>
</header>
<div class="div-menu">
<ul class="menu">
<li><a href="#section1">The Game</a></li>
2024-06-30 00:50:34 +02:00
<li><a href="#section2">Our Goal</a></li>
<li><a href="#section3">Community-Driven Platform<</a></li>
<li><a href="#section4">Join Us</a></li>
<li><a href="#section5">Our Code</a></li>
<li><a href="#section6">Copyright Note</a></li>
2024-06-30 00:17:59 +02:00
<li><a href="#section7">Game Assets</a></li>
</ul>
</div>
`;
}
}
customElements.define('header-component', Header);
// @license-end