1export function failure(text: string): void {
2 const note = document.createElement("div")
3
4 note.className = "flex flex-col font-body items-center h-screen italic justify-center leading-relaxed px-4 text-center text-base text-white"
5 note.innerHTML = `
6 <a class="block logo mb-5" href="../">
7 <img src="../images/diffuse-light.svg" />
8 </a>
9
10 <p class="max-w-sm opacity-60">
11 ${text}
12 </p>
13 `
14
15 document.body.appendChild(note)
16
17 // Remove loader
18 const elm = document.querySelector("#elm")
19 elm?.parentNode?.removeChild(elm)
20}