feat: make single html and add schemas for socials
This commit is contained in:
parent
4c09d416cf
commit
a7ecb3a390
7 changed files with 190 additions and 23 deletions
15
src/main.ts
15
src/main.ts
|
|
@ -1,17 +1,8 @@
|
|||
import "~/styles/globals.css";
|
||||
import Jet from "~/assets/Jet.txt?ansi";
|
||||
import init, { start } from "cgol";
|
||||
|
||||
document.getElementById("ansi-art")!.innerHTML = Jet;
|
||||
|
||||
import("cgol")
|
||||
.then(async (cgolModule) => {
|
||||
if (typeof cgolModule.default === "function") {
|
||||
await cgolModule.default();
|
||||
}
|
||||
if (typeof cgolModule.start === "function") {
|
||||
cgolModule.start();
|
||||
}
|
||||
})
|
||||
.catch((error: unknown) => {
|
||||
console.error("Failed to initialize CGOL WebAssembly module:", error);
|
||||
});
|
||||
await init();
|
||||
start();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue