Add music
This commit is contained in:
parent
8b200a8019
commit
876b268cb6
@ -1,9 +1,7 @@
|
|||||||
import { GefestA } from "../modules/Gefest/primitives/a";
|
import { GefestA } from "../modules/Gefest/primitives/a";
|
||||||
import { GefestI } from "../modules/Gefest/primitives/i";
|
import { GefestI } from "../modules/Gefest/primitives/i";
|
||||||
import { DefaultElement } from "./default-element";
|
import { DefaultElement, FontAwesomeIcon } from "./default-element";
|
||||||
|
|
||||||
type FontAwesomeGroup = "fas" | "far" | "fab"; // e.g. "fas fa-home"
|
|
||||||
type FontAwesomeIcon = `${FontAwesomeGroup} fa-${string}`;
|
|
||||||
|
|
||||||
class NavbarButton extends DefaultElement {
|
class NavbarButton extends DefaultElement {
|
||||||
constructor(icon: FontAwesomeIcon) {
|
constructor(icon: FontAwesomeIcon) {
|
||||||
@ -36,9 +34,13 @@ class NavbarItemContainerUL extends DefaultElement {
|
|||||||
const chatButton = new NavbarButton("fas fa-comments");
|
const chatButton = new NavbarButton("fas fa-comments");
|
||||||
chatButton.onClick = () => alert("Chat clicked!") as void;
|
chatButton.onClick = () => alert("Chat clicked!") as void;
|
||||||
|
|
||||||
|
const musicButton = new NavbarButton("fas fa-music");
|
||||||
|
musicButton.onClick = () => alert("Music clicked!") as void;
|
||||||
|
|
||||||
super([
|
super([
|
||||||
newsButton,
|
newsButton,
|
||||||
chatButton,
|
chatButton,
|
||||||
|
musicButton,
|
||||||
|
|
||||||
themeToggle
|
themeToggle
|
||||||
]);
|
]);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user