summaryrefslogtreecommitdiffstats
path: root/static/index.html
blob: 84264b724233525910d5f94d65d635876c27bbda (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
62
63
64
65
<!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">
    <script src="/theme-init.js"></script>
</head>
<body>
<div class="card">

    <button id="theme-toggle" class="theme-toggle" type="button" aria-label="Toggle light/dark theme"></button>

    <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">
        <div class="message-header">
            <label for="message">Message</label>
            <button type="button" id="preview-toggle" class="preview-toggle">Preview</button>
        </div>
        <textarea id="message" placeholder="Write your message here (Markdown supported). It will be encrypted before leaving your browser."></textarea>
        <div id="message-preview" class="md-preview" hidden></div>

        <div class="file-section">
            <label>Attachment (optional)</label>
            <label class="file-label" for="file">&#128206; Choose file</label>
            <span class="file-limit">Max 8MB for now</span>
            <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 src="/markdown.js"></script>
<script src="/app.js"></script>
</body>
</html>