diff options
| author | Theo Browne <me@t3.gg> | 2025-02-14 21:30:33 -0800 |
|---|---|---|
| committer | Theo Browne <me@t3.gg> | 2025-02-14 21:30:33 -0800 |
| commit | 92ab49147f68f0949683df0a17f8556cf1d4a12a (patch) | |
| tree | a2117e77cd50ba2e2bc5d3fa56084d47e05e9fe6 /src/main.ts | |
| download | unkagi-92ab49147f68f0949683df0a17f8556cf1d4a12a.tar.xz unkagi-92ab49147f68f0949683df0a17f8556cf1d4a12a.zip | |
init
Diffstat (limited to 'src/main.ts')
| -rw-r--r-- | src/main.ts | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/main.ts b/src/main.ts new file mode 100644 index 0000000..6396b50 --- /dev/null +++ b/src/main.ts @@ -0,0 +1,24 @@ +import './style.css' +import typescriptLogo from './typescript.svg' +import viteLogo from '/vite.svg' +import { setupCounter } from './counter.ts' + +document.querySelector<HTMLDivElement>('#app')!.innerHTML = ` + <div> + <a href="https://vite.dev" target="_blank"> + <img src="${viteLogo}" class="logo" alt="Vite logo" /> + </a> + <a href="https://www.typescriptlang.org/" target="_blank"> + <img src="${typescriptLogo}" class="logo vanilla" alt="TypeScript logo" /> + </a> + <h1>Vite + TypeScript</h1> + <div class="card"> + <button id="counter" type="button"></button> + </div> + <p class="read-the-docs"> + Click on the Vite and TypeScript logos to learn more + </p> + </div> +` + +setupCounter(document.querySelector<HTMLButtonElement>('#counter')!) |
