import Jet from "~/assets/Jet.txt?ansi"; import { frostedBox } from "~/components/frosted-box"; export function homePage(outlet: HTMLElement) { outlet.classList.remove("qa-outlet"); outlet.innerHTML = `
${frostedBox(`

Jet Pham

Software Extremist

A picture of Jet wearing a beanie in purple and blue lighting
Contact
Links
  1. Forgejo
  2. GitHub
  3. X
  4. Bluesky
`)}
`; const copyButton = document.getElementById("copy-email") as HTMLButtonElement; const copyStatus = document.getElementById( "copy-email-status", ) as HTMLSpanElement; let resetTimer: number | null = null; copyButton.addEventListener("click", async () => { try { await navigator.clipboard.writeText("jet@extremist.software"); copyStatus.textContent = "copied"; copyStatus.style.color = "var(--light-green)"; } catch { copyStatus.textContent = "copy failed"; copyStatus.style.color = "var(--light-red)"; } if (resetTimer !== null) window.clearTimeout(resetTimer); resetTimer = window.setTimeout(() => { copyStatus.textContent = ""; resetTimer = null; }, 1400); }); }