FeDirect/static/crossroad.html
CenTdemeern1 8e6a2d20b4 AddInstance dialog, fixed
This time with less technical debt!
2025-01-13 06:59:58 +01:00

44 lines
No EOL
1.4 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>FeDirect</title>
<link rel="stylesheet" href="/static/crossroad.css">
</head>
<body>
<script type="module">
Object.assign(globalThis, await import("/static/crossroad.mjs"));
getMainDialog().show(); // Don't show until the page is ready
</script>
<div class="flex-vcenter">
<dialog id="mainDialog">
<h1>FeDirect</h1>
<p>By Nekomata</p>
<form>
<input id="radio" type="radio" />
<label for="radio">
Instances and stuff go here!
</label>
</form>
<br>
<button onclick="showAddInstanceDialog()">Add an instance</button>
</dialog>
</div>
<dialog id="addInstance">
<h1>Add an instance</h1>
<form method="dialog" class="addInstanceForm">
<label for="instanceHost">Instance hostname or URL<br>
(for example <code>mastodon.social</code> or <code>https://kitsunes.club/</code>)<br>
</label>
<input id="instanceHost" type="text" name="instanceHost" />
<br>
<button type="submit">OK</button>
<button type="reset" class="close">Cancel</button>
</form>
</dialog>
</body>
</html>