summaryrefslogtreecommitdiffstats
path: root/static/index.html
blob: c957a0140aa49c70b460ccc1f5a6aea168cbea22 (plain) (blame)
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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="referrer" content="no-referrer">
    <title>NymDrop — Secure Submission</title>
    <link rel="stylesheet" href="/style.css">
</head>
<body>
<div class="card">

    <div class="logo">
        <div class="logo-icon">⬡</div>
        <h1>NYMDROP</h1>
    </div>
    <p class="tagline">Anonymous document submission — encrypted in your browser, delivered over Nym mixnet.</p>

    <div class="badges">
        <span class="badge badge-green">END-TO-END ENCRYPTED</span>
        <span class="badge badge-blue">NYM MIXNET</span>
        <span class="badge badge-gray">NO LOGS</span>
        <span class="badge badge-gray">NO METADATA</span>
    </div>

    <form id="drop-form">
        <label for="message">Message</label>
        <textarea id="message" placeholder="Write your message here. It will be encrypted before leaving your browser."></textarea>

        <div class="file-section">
            <label>Attachment (optional)</label>
            <label class="file-label" for="file">&#128206; Choose file</label>
            <input type="file" id="file">
            <span id="filename"></span>
        </div>

        <button type="submit" class="submit-btn">&#128274; Submit securely</button>
    </form>

    <div id="status"></div>

    <hr class="divider">

    <p class="notice">
        <span>Your submission is encrypted in this browser before being sent.</span>
        The server never sees the content and retains no logs.
        Once delivered over the Nym mixnet, no record of this submission exists on this server.
        For maximum anonymity, submit from a public network.
    </p>

</div>
<div class="footer">NYMDROP &nbsp;·&nbsp; ZERO KNOWLEDGE &nbsp;·&nbsp; ZERO LOGS</div>
<script src="/crypto.js"></script>
<script>
    document.getElementById('file').addEventListener('change', function() {
        const name = this.files.length ? this.files[0].name : '';
        document.getElementById('filename').textContent = name;
    });
</script>
</body>
</html>