feat(cozy): minimal code to for form submission

This commit is contained in:
Ayo Ayco 2025-06-28 00:33:34 +02:00
parent 0bf0a09300
commit d1b6cdcbd8

View file

@ -1,20 +1,21 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<my-head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Cozy (McFly)</title> <title>Cozy</title>
<script server:setup> <script server:setup>
const appName = "Cozy"
console.log('>>> Event (from app)', McFly.event)
const url = McFly.event.query.url const url = McFly.event.query.url
</script> </script>
</my-head> </head>
<body> <body>
<h1>{{ appName }} - {{McFly.hello}}</h1> <h1>Cozy</h1>
<form method="get"> <form>
<input required type="url" id="url" name="url" value={{ url }} /> <input required type="url" name="url" id="url" value={{ url }} />
<button type="submit">Extract</button> <button type="submit">Extract</button>
</form> </form>
<p>
{{ McFly }}
</p>
</body> </body>
</html> </html>