feat: finish landing page

This commit is contained in:
Ananth Venkatesh 2025-02-09 00:41:36 -05:00
parent ac6f601c58
commit d4dc6ab11f
Signed by: ananthv
GPG key ID: 4BB578E748CFE4FF
3 changed files with 67 additions and 2 deletions

View file

@ -6,7 +6,7 @@
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Imbue:opsz,wght@10..100,100..900&display=swap"
href="https://fonts.googleapis.com/css2?family=Imbue:opsz,wght@10..100,100..900&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap"
rel="stylesheet"
/>
</head>
@ -18,6 +18,15 @@
node: document.getElementById("app"),
flags: [window.innerWidth, window.innerHeight],
});
app.ports.copyToClipboard.subscribe((text) => {
var textArea = document.createElement("textarea");
textArea.value = text;
document.body.appendChild(textArea);
textArea.select();
document.execCommand("copy");
document.body.removeChild(textArea);
});
</script>
</body>
</html>