2020-06-29 01:55:29 +02:00
|
|
|
|
<!doctype html>
|
|
|
|
|
<html>
|
|
|
|
|
<head>
|
|
|
|
|
<title>FediBlock prototype</title>
|
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
|
<style>
|
|
|
|
|
label
|
|
|
|
|
{
|
|
|
|
|
display: block;
|
|
|
|
|
float: left;
|
|
|
|
|
width: 11ch;
|
|
|
|
|
text-align: right;
|
|
|
|
|
margin-right: 1ch;
|
|
|
|
|
}
|
|
|
|
|
input[type=text], input[type=url]
|
|
|
|
|
{
|
|
|
|
|
width: 60ch;
|
|
|
|
|
}
|
|
|
|
|
input[type=button]
|
|
|
|
|
{
|
|
|
|
|
padding: 0;
|
|
|
|
|
}
|
2020-06-30 03:12:15 +02:00
|
|
|
|
span.optional
|
|
|
|
|
{
|
|
|
|
|
font-style: italic;
|
|
|
|
|
}
|
2020-06-29 01:55:29 +02:00
|
|
|
|
</style>
|
|
|
|
|
</head>
|
|
|
|
|
<body>
|
|
|
|
|
<h1>FediBlock</h1>
|
|
|
|
|
|
|
|
|
|
<h2>What is this?</h2>
|
|
|
|
|
<p>This is a prototype for FediBlock, a central blocklist for the Fediverse.</p>
|
|
|
|
|
|
|
|
|
|
<h2>Form</h2>
|
2020-06-29 21:09:48 +02:00
|
|
|
|
<form method="post" action="/add" enctype="multipart/form-data">
|
2020-06-29 01:55:29 +02:00
|
|
|
|
<label for="instance">Instance:</label>
|
2020-07-02 06:29:09 +02:00
|
|
|
|
<input type="text" id="instance" name="instance" placeholder="example.com" autofocus required>
|
|
|
|
|
<br>
|
2020-06-29 01:55:29 +02:00
|
|
|
|
|
|
|
|
|
<label for="tags">Tags:</label>
|
|
|
|
|
<input type="text" id="tags" name="tags" placeholder="tag1,tag2" autocomplete="on" required>
|
|
|
|
|
<input type="button" id="add_tag" value="➕" disabled><br>
|
|
|
|
|
|
|
|
|
|
<label for="receipts">Receipts:</label>
|
2020-07-02 06:29:09 +02:00
|
|
|
|
<input type="url" id="receipts" name="receipts"
|
|
|
|
|
placeholder="https://example.com/@user/1234567890" required>
|
2020-06-29 01:55:29 +02:00
|
|
|
|
<input type="button" id="add_receipt" value="➕" disabled><br>
|
|
|
|
|
|
2020-06-29 21:09:48 +02:00
|
|
|
|
<label for="screenshot">Screenshot:</label>
|
2020-06-30 03:12:15 +02:00
|
|
|
|
<input type="file" id="screenshot" name="screenshot">
|
|
|
|
|
<span class="optional">(optional)</span><br>
|
2020-06-29 21:09:48 +02:00
|
|
|
|
|
2020-06-29 01:55:29 +02:00
|
|
|
|
<label for="description">Description:</label><br>
|
|
|
|
|
<textarea id="description" name="description" cols="80" rows="20" required></textarea><br>
|
|
|
|
|
|
|
|
|
|
<input type="submit">
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
|
|
<h2>TODO</h2>
|
|
|
|
|
<ul>
|
|
|
|
|
<li>Dynamically add input fields for tags and receipts.</li>
|
|
|
|
|
<li>Autocomplete tags.</li>
|
|
|
|
|
<li>Make it look okay on all sorts of screen sizes.</li>
|
|
|
|
|
</ul>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|