-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
90 lines (81 loc) · 4.63 KB
/
index.html
File metadata and controls
90 lines (81 loc) · 4.63 KB
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DuckDuckGo Mailer</title>
<!-- Primary Meta Tags -->
<meta name="title" content="DuckDuckGo Mailer">
<meta name="description" content="Create custom forwarding addresses for your DuckDuckGo private email protection service">
<meta name="theme-color" content="#c13920">
<!-- Favicon / Icons -->
<link rel="icon" href="icons/icon.svg" type="image/svg+xml">
<link rel="manifest" href="manifest.json">
<link rel="stylesheet" href="styles.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
</head>
<body>
<div class="container">
<header>
<div class="theme-toggle">
<button id="themeToggle" aria-label="Toggle dark/light mode">
<svg class="sun-icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<circle cx="12" cy="12" r="5"></circle>
<line x1="12" y1="1" x2="12" y2="3"></line>
<line x1="12" y1="21" x2="12" y2="23"></line>
<line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line>
<line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line>
<line x1="1" y1="12" x2="3" y2="12"></line>
<line x1="21" y1="12" x2="23" y2="12"></line>
<line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line>
<line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line>
</svg>
<svg class="moon-icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path>
</svg>
</button>
</div>
<h1>DuckDuckGo Mailer</h1>
<p class="subtitle">Create custom forwarding addresses for your Duck email</p>
</header>
<div class="card">
<form id="emailForm">
<div class="form-group">
<label for="fromEmail">From</label>
<p class="helper-text">Your DuckDuckGo private email address</p>
</div>
<div class="form-group">
<label for="toEmail">To</label>
<p class="helper-text">The recipient's email address</p>
</div>
<button type="submit" class="generate-btn">Generate Email Address</button>
</form>
<div id="result" class="hidden">
<h2>Your Generated Address</h2>
<div class="result-container">
<input type="text" id="generatedEmail" readonly class="result-field">
<button id="copyBtn" class="icon-btn" aria-label="Copy to clipboard">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect>
<path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path>
</svg>
</button>
</div>
<p id="copyMessage" class="copy-message hidden">Copied to clipboard!</p>
<div class="action-buttons">
<a href="#" id="mailtoLink" class="btn">Open in Email Client</a>
<button id="resetBtn" class="btn btn-secondary">Start Over</button>
</div>
</div>
</div>
<footer>
<p>Learn more about <a href="https://duckduckgo.com/email/" target="_blank">DuckDuckGo Email Protection</a></p>
</footer>
</div>
<script src="script.js"></script>
</body>
</html>