Skip to content

Commit 8e2f2c8

Browse files
author
Super Dune
committed
Signup: brighter text, Solana wallet field, better spacing, visual sections
1 parent b1e9f5b commit 8e2f2c8

2 files changed

Lines changed: 26 additions & 15 deletions

File tree

index.html

Lines changed: 24 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -265,26 +265,35 @@ <h2>📬 Access Your Dashboard</h2>
265265
<h2>🔐 Get Your Email35 Address</h2>
266266
<p>Pairs with your existing email. Set up in 30 seconds. Free forever.</p>
267267
</div>
268-
<div style="padding:24px">
269-
<div class="setting">
270-
<label>Choose Your Username</label>
268+
<div style="padding:28px">
269+
<div class="setting" style="margin-bottom:28px">
270+
<label style="color:#ddd;font-size:.8rem;margin-bottom:8px">Choose Your Username</label>
271271
<div style="display:flex;align-items:center;gap:0">
272272
<input type="text" id="signupUsername" placeholder="yourname" style="border-radius:6px 0 0 6px;border-right:none" oninput="this.value=this.value.toLowerCase().replace(/[^a-z0-9]/g,'')">
273-
<div style="padding:12px 14px;background:var(--card2);border:1px solid var(--border);border-radius:0 6px 6px 0;font-family:var(--mono);font-size:.9rem;color:var(--muted);white-space:nowrap">@email35.com</div>
273+
<div style="padding:12px 14px;background:var(--card2);border:1px solid var(--border);border-radius:0 6px 6px 0;font-family:var(--mono);font-size:.9rem;color:var(--cyan);white-space:nowrap">@email35.com</div>
274274
</div>
275275
</div>
276-
<div class="setting">
277-
<label>Your Existing Email (paid emails forward here)</label>
276+
<div class="setting" style="margin-bottom:28px">
277+
<label style="color:#ddd;font-size:.8rem;margin-bottom:8px">Your Existing Email</label>
278278
<input type="email" id="signupForward" placeholder="your-real-email@gmail.com">
279-
<div style="font-size:.75rem;color:var(--dim);margin-top:4px">Gmail, Outlook, Yahoo, etc. — this is where approved emails land.</div>
279+
<div style="font-size:.8rem;color:#aaa;margin-top:6px">Paid emails will forward here — Gmail, Outlook, Yahoo, etc.</div>
280280
</div>
281-
<div class="setting">
282-
<label>Your Wallet Address (optional)</label>
283-
<input type="text" id="signupWallet" placeholder="0x... (Base network)">
284-
<div style="font-size:.75rem;color:var(--dim);margin-top:4px">Optional. If left blank, crypto payments go to Email35 treasury. You can add your wallet later in settings.</div>
281+
<div style="border-top:1px solid var(--border);margin:24px 0;padding-top:24px">
282+
<div style="font-size:.75rem;color:var(--cyan);text-transform:uppercase;letter-spacing:1px;margin-bottom:16px;font-family:var(--mono)">Wallet Addresses (optional)</div>
283+
<div class="setting" style="margin-bottom:20px">
284+
<label style="color:#ddd;font-size:.8rem;margin-bottom:8px">Base / Ethereum Wallet</label>
285+
<input type="text" id="signupWallet" placeholder="0x...">
286+
<div style="font-size:.8rem;color:#aaa;margin-top:6px">For receiving USDC payments on Base</div>
287+
</div>
288+
<div class="setting" style="margin-bottom:20px">
289+
<label style="color:#ddd;font-size:.8rem;margin-bottom:8px">Solana Wallet</label>
290+
<input type="text" id="signupSolWallet" placeholder="Your Solana address...">
291+
<div style="font-size:.8rem;color:#aaa;margin-top:6px">For receiving USDC payments on Solana</div>
292+
</div>
293+
<div style="font-size:.8rem;color:#aaa;margin-bottom:8px">Both optional. If left blank, payments go to Email35 treasury. You can add wallets later in settings.</div>
285294
</div>
286-
<div class="setting">
287-
<label>Price Per Email</label>
295+
<div class="setting" style="margin-bottom:28px">
296+
<label style="color:#ddd;font-size:.8rem;margin-bottom:8px">Price Per Email</label>
288297
<select id="signupPrice">
289298
<option value="10000" selected>$0.01 per email (recommended)</option>
290299
<option value="50000">$0.05 per email</option>
@@ -666,6 +675,7 @@ <h2 style="font-size:1.5rem;margin-bottom:4px">Your Dashboard</h2>
666675
const username = document.getElementById('signupUsername').value.trim();
667676
const forwardTo = document.getElementById('signupForward').value.trim();
668677
const wallet = document.getElementById('signupWallet').value.trim();
678+
const solWallet = document.getElementById('signupSolWallet').value.trim();
669679
const price = parseInt(document.getElementById('signupPrice').value);
670680
const errEl = document.getElementById('signupError');
671681
errEl.style.display = 'none';
@@ -680,7 +690,7 @@ <h2 style="font-size:1.5rem;margin-bottom:4px">Your Dashboard</h2>
680690
const resp = await fetch('/api/register', {
681691
method: 'POST',
682692
headers: {'Content-Type': 'application/json'},
683-
body: JSON.stringify({username, forwardTo, walletAddress: wallet, price})
693+
body: JSON.stringify({username, forwardTo, walletAddress: wallet, solanaWallet: solWallet, price})
684694
});
685695
const data = await resp.json();
686696
if (data.success) {

netlify/functions/register.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default async function handler(request) {
1111
}
1212

1313
try {
14-
const { username, forwardTo, walletAddress, price } = await request.json();
14+
const { username, forwardTo, walletAddress, solanaWallet, price } = await request.json();
1515

1616
// Validate required fields
1717
if (!username || !forwardTo) {
@@ -44,6 +44,7 @@ export default async function handler(request) {
4444
const user = await setUser(usernameClean, {
4545
forwardTo,
4646
walletAddress: walletAddress || "0xDf2FD1fBA88BCC38Edee237a069A880FD4997Bc3",
47+
solanaWallet: solanaWallet || "F7jxXcCRPM9LuswschkSyC5hhvL454NsyjKa5piiKUR8",
4748
price: price || 0.5,
4849
accessKey,
4950
});

0 commit comments

Comments
 (0)