From 00d9eaf1d29c6773e1d04b2e1d260ec0685d11bf Mon Sep 17 00:00:00 2001 From: mudkipdev Date: Sun, 1 Dec 2024 22:15:22 -0700 Subject: [PATCH] add chat notice --- src/components/chat/Chat.astro | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/chat/Chat.astro b/src/components/chat/Chat.astro index c5079b7..0569112 100644 --- a/src/components/chat/Chat.astro +++ b/src/components/chat/Chat.astro @@ -33,6 +33,11 @@ console.error("could not find chat elements"); } + let welcomeElement = document.createElement("li"); + welcomeElement.innerHTML = "welcome to the chat, this isn't a real thing yet"; + welcomeElement.style.color = "var(--surface-5)"; + history.appendChild(welcomeElement); + input.addEventListener("keydown", (event: KeyboardEvent) => { if (event.key === "Enter") { event.preventDefault();