-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.js
28 lines (25 loc) · 795 Bytes
/
main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
class HeaderComponent extends HTMLElement {
connectedCallback(){
this.innerHTML = `
<div class="header">
<div class="logo"><img src="./images/see.png" alt="FOH RSA"></div>
<nav>
<ul>
<li><a href="./index.html">Music</a></li>
<li><a href="./about.html"">ABOUT</a></li>
<li><a href=" http://www.geniusmuzik.com/search/label/FOH">Bookings</a></li>
</ul>
</nav>
</div>
`
}
}
customElements.define(`header-component`,HeaderComponent)
class FooterComponent extends HTMLElement{
connectedCallback(){
this.innerHTML =`
<div class="footer"><p>Powered by Dev Familiar</p></div>
`
}
}
customElements.define(`footer-component`,FooterComponent)