Add music

This commit is contained in:
FullGreaM 2026-05-01 15:31:41 +03:00
parent 8b200a8019
commit 876b268cb6

View File

@ -1,9 +1,7 @@
import { GefestA } from "../modules/Gefest/primitives/a";
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 {
constructor(icon: FontAwesomeIcon) {
@ -36,9 +34,13 @@ class NavbarItemContainerUL extends DefaultElement {
const chatButton = new NavbarButton("fas fa-comments");
chatButton.onClick = () => alert("Chat clicked!") as void;
const musicButton = new NavbarButton("fas fa-music");
musicButton.onClick = () => alert("Music clicked!") as void;
super([
newsButton,
chatButton,
musicButton,
themeToggle
]);