blob: 6613e3f7027587954e1940ff6fdb05665ab46375 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="css/pico.purged.css" rel="stylesheet" type="text/css">
<link rel="icon" href="/bellsprout.png">
<title>Bellsprout</title>
<style>
:host(:not([data-theme=dark])), :root:not([data-theme=dark]), [data-theme=light] {
--pico-primary: #7EB784;
--pico-primary-background: #7EB784;
--pico-primary-hover: #6B9A6F;
--pico-primary-hover-background: #6B9A6F;
}
.card {
padding: 1rem;
border: 1px solid #CFD5E2;
overflow: hidden;
margin-bottom: 1rem;
}
.card a {
vertical-align: middle;
display: inline-block;
max-width: 100%;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.card-photo {
width: 1rem;
height: 1rem;
border-radius: 100%;
}
.card-footer {
display: flex;
gap: 0.5rem;
flex-wrap: wrap;
}
</style>
</head>
<body>
<main class="container" style="max-width: 700px; display: flex; flex-direction: column; justify-content: center; min-height: 100dvh;">
<noscript>
<p>⚠️ "Send" works without JavaScript; but "Find" won't work and webmention won't display if not enabled.</p>
</noscript>
<section>
<h3>Send or find a webmention</h3>
<!--
For now it sends to /endpoint, oblivious about user's custom endpoint URL
Later it will uses weepinbell's sender API.
-->
<form method="post" action="/api/send">
<div class="grid">
<input id="input-wm-source" name="source" placeholder="source" />
<input id="input-wm-target" name="target" placeholder="target" />
</div>
<div class="grid">
<button id="find-wm" type="button">Find</button>
<button type="submit">Send</button>
</div>
</form>
</section>
<section id="cards"></section>
<hr/>
<footer class="grid">
<small>Bellsprout, frontend of <a href="https://codeberg.org/eltrac/weepinbell">weepinbell</a></small>
<small style="text-align: right;"><a href="https://indieweb.org/Webmention">What is Webmention?</a></small>
</footer>
</main>
<script src="js/compiled/bellsprout.js" type="text/javascript"></script>
</body>
</html>
|