-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathembed.html
More file actions
133 lines (121 loc) · 6.2 KB
/
embed.html
File metadata and controls
133 lines (121 loc) · 6.2 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>MailLayer | Send Email</title>
<!-- Google Fonts -->
<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@400;500;600;700;800&display=swap" rel="stylesheet">
<!-- Quill.js Styles -->
<link href="https://cdn.quilljs.com/1.3.6/quill.snow.css" rel="stylesheet">
<link rel="stylesheet" href="embed.css">
</head>
<body class="maillayer-embed">
<div class="maillayer-modal-container">
<!-- Provider Selection Screen (Hidden by default) -->
<div class="maillayer-selector-overlay" id="ml-selector-screen" style="display: none;">
<div class="selector-content">
<h3>Choose your email service</h3>
<p>Send this email using your preferred account</p>
<div class="selector-options">
<button class="selector-btn" data-provider="gmail">
<img src="https://upload.wikimedia.org/wikipedia/commons/7/7e/Gmail_icon_%282020%29.svg" alt="Gmail" width="32">
<span>Gmail</span>
</button>
<button class="selector-btn" data-provider="outlook">
<img src="https://upload.wikimedia.org/wikipedia/commons/d/df/Microsoft_Office_Outlook_%282018%E2%80%93present%29.svg" alt="Outlook" width="32">
<span>Outlook</span>
</button>
</div>
</div>
</div>
<!-- Header -->
<div class="maillayer-header" id="maillayer-drag-handle">
<div class="maillayer-logo-section">
<svg width="24" height="24" viewBox="0 0 24 24" fill="white">
<path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/>
</svg>
</div>
<div class="maillayer-header-actions">
<button class="maillayer-close-btn" id="ml-close-btn" aria-label="Close">×</button>
</div>
</div>
<!-- Body -->
<div class="maillayer-body">
<!-- To Field -->
<div class="maillayer-row">
<div class="maillayer-label-cell">To</div>
<div class="maillayer-input-cell">
<input type="text" id="ml-to" placeholder="Recipient email">
<div class="maillayer-field-toggles">
<span id="ml-toggle-cc">CC</span>
<span id="ml-toggle-bcc">BCC</span>
</div>
</div>
</div>
<!-- CC Field (Hidden by default) -->
<div class="maillayer-row" id="ml-cc-row" style="display: none;">
<div class="maillayer-label-cell">CC</div>
<div class="maillayer-input-cell">
<input type="text" id="ml-cc" placeholder="Carbon copy">
</div>
</div>
<!-- BCC Field (Hidden by default) -->
<div class="maillayer-row" id="ml-bcc-row" style="display: none;">
<div class="maillayer-label-cell">BCC</div>
<div class="maillayer-input-cell">
<input type="text" id="ml-bcc" placeholder="Blind carbon copy">
</div>
</div>
<!-- Subject Field -->
<div class="maillayer-row">
<div class="maillayer-label-cell">Subject</div>
<div class="maillayer-input-cell">
<input type="text" id="ml-subject" placeholder="What's this about?">
</div>
</div>
<!-- Attachment Trigger -->
<div class="maillayer-attachment-trigger">
<button class="maillayer-btn-icon" id="ml-attach-btn" title="Add Attachment">
<svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor">
<path d="M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5c0 1.66 1.34 3 3 3s3-1.34 3-3V5c0-2.48-2.02-4.5-4.5-4.5S7 2.52 7 5v12.5c0 3.59 2.91 6.5 6.5 6.5s6.5-2.91 6.5-6.5V6h-1.5z"/>
</svg>
<span>Add Attachment</span>
</button>
<input type="file" id="ml-file-input" multiple style="display:none;">
</div>
<!-- Attachments List -->
<div id="ml-attachments-list"></div>
<!-- Editor -->
<div class="maillayer-editor-row">
<div id="ml-editor-container"></div>
</div>
</div>
<!-- Footer -->
<div class="maillayer-footer">
<div class="maillayer-branding">
<a href="https://github.com/Spuds0588/MailLayer-Embedded" target="_blank">⚡ Powered by MailLayer Embedded</a>
</div>
<div class="maillayer-footer-actions">
<button class="maillayer-btn maillayer-btn-secondary" id="ml-discard-btn">Discard</button>
<div class="maillayer-send-group">
<button class="maillayer-btn maillayer-btn-primary" id="ml-send-btn">Send with Gmail</button>
<button class="maillayer-btn-icon" id="ml-provider-toggle" title="Switch Provider">
<svg width="12" height="12" viewBox="0 0 24 24" fill="white"><path d="M7 10l5 5 5-5z"/></svg>
</button>
<div class="maillayer-provider-menu" id="ml-provider-menu">
<div class="menu-item" data-provider="gmail">Gmail</div>
<div class="menu-item" data-provider="outlook">Outlook</div>
</div>
</div>
</div>
</div>
</div>
<!-- Quill.js Library -->
<script src="https://cdn.quilljs.com/1.3.6/quill.min.js"></script>
<script src="services.js"></script>
<script src="embed.js"></script>
</body>
</html>