Spaces:
Running
Running
Glossy black SparkScript redesign
Browse files123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>SparkScript - AI Dating Opener</title><style>:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#26342d;background:#f5f1ed;}*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at top right,#f3ddd7 0,transparent 35%),#f5f1ed;}.wrap{max-width:980px;margin:auto;padding:36px 20px 70px;}.hero{background:linear-gradient(135deg,#496556,#607d6d);color:white;padding:34px;border-radius:26px;box-shadow:0 14px 35px rgba(0,0,0,.08);}.brand{font-size:14px;opacity:.8;margin-bottom:5px;}.hero h1{margin:0;font-size:38px;}.hero p{margin:9px 0 0;font-size:17px;opacity:.92;}.card{background:white;margin-top:18px;padding:24px;border-radius:21px;box-shadow:0 7px 24px rgba(0,0,0,.045);}h2{margin-top:0;margin-bottom:14px;}textarea{width:100%;min-height:220px;border:1px solid #ddd8d2;border-radius:15px;padding:16px;font-size:15px;line-height:1.5;resize:vertical;outline:none;}textarea:focus{border-color:#607d6d;}.row{display:flex;gap:10px;flex-wrap:wrap;align-items:center;}select,button{border:0;border-radius:12px;padding:12px 17px;font-size:15px;}select{background:#f4f1ed;}button{background:#496556;color:white;font-weight:700;cursor:pointer;}button:hover{opacity:.92;}button.secondary{background:#eeeae5;color:#26342d;}.chips span{display:inline-block;background:#edf2ee;padding:8px 11px;border-radius:999px;margin:4px 5px 3px 0;font-size:14px;}.result{white-space:pre-wrap;background:#f8f6f3;border:1px solid #ebe6df;padding:18px;border-radius:15px;min-height:110px;font-size:16px;line-height:1.55;}.counter{font-size:13px;color:#69736d;margin-left:auto;}.tip{color:#6b746f;font-size:13px;line-height:1.5;}.badge{display:inline-block;background:#ffffff22;padding:6px 10px;border-radius:999px;margin-top:15px;font-size:13px;}</style></head><body><div class="wrap"><div class="hero"><div class="brand">AI DATING OPENER</div><h1>✨ SparkScript</h1><p>Turn something from their profile into a conversationthat actually sounds like you.</p><div class="badge">Free • Local-first • You decide what gets sent</div></div><div class="card"><h2>1. Drop in the profile</h2><textareaid="profile"placeholder="Paste their About Me, interests, qualities, faith, hobbies or other profile text here..."></textarea></div><div class="card"><h2>2. Pick your vibe</h2><div class="row"><select id="style"><option value="natural">🙂 Natural & Catchy</option><option value="playful">😄 Playful</option><option value="faith">🙏 Faith & Values</option></select><button onclick="generateMessage()">✨ Write My Opener</button></div></div><div class="card"><h2>What caught our attention</h2><div id="signals" class="chips"><span>Waiting for profile...</span></div></div><div class="card"><h2>Your opener</h2><div id="result" class="result">Your message will appear here.</div><div class="row" style="margin-top:14px"><button onclick="copyMessage()">📋 Copy</button><button class="secondary" onclick="anotherMessage()">↻ Try Another</button><span id="counter" class="counter">0 / 399</span></div></div><div class="card tip"><strong>How SparkScript works</strong><br><br>SparkScript looks for genuine conversation hooks in theprofile and turns them into a casual opener.It doesn't send anything automatically. Read the suggestion,change anything you want, copy it and decide whether youwant to send it.</div></div><script>let variant = 0;const hooks = [{words:["children","kids","child","teacher","teaching"],label:"Working with children"},{words:["concert","concerts","music","songs","singing"],label:"Music & concerts"},{words:["travel","traveling","travelling","adventure","new places"],label:"Travel & experiences"},{words:["jesus","christ","christian","church","faith","god"],label:"Faith"},{words:["family","family oriented","family-oriented"],label:"Family"},{words:["honesty","communication","consistency","consistent"],label:"Communication & honesty"},{words:["hiking","outdoors","nature","camping"],label:"Outdoors"},{words:["coffee","food","cooking","restaurants"],label:"Food & coffee"},{words:["dog","dogs","cat","cats","animals","horse","horses"],label:"Animals"}];function findSignals(text){const lower=text.toLowerCase();return hooks.filter(h=>h.words.some(w=>lower.includes(w))).map(h=>h.label);}function findName(text){const lines=text.split("\n");for(const line of lines){const cleaned=line.trim();const match=cleaned.match(/^([A-ZÀ-ÖØ-Þ][A-Za-zÀ-ÿ'’.-]{1,25})(?:\s*,?\s*\d{2})?$/);if(match){return match[1];}}return "";}function createNatural(name,a,b){const greeting=name ? `Hey ${name}!` : "Hey!";const options=[`${greeting} I actually enjoyed reading your profile. The part about ${a.toLowerCase()}${b ? ` and ${b.toLowerCase()}` : ""} caught my attention. You seem like someone who'd be fun to actually talk to, so I figured I'd say hi instead of just leaving a like. What's something you've been really enjoying lately?`,`${greeting} Your profile actually gave me something better to say than the usual “hey, how are you?” 😄 I noticed the part about ${a.toLowerCase()}${b ? ` and ${b.toLowerCase()}` : ""}. So I'll start with something real—what's something you could happily talk about for way too long?`,`${greeting} Something about what you wrote about ${a.toLowerCase()} caught my attention. I like when a profile gives you an actual glimpse of someone's personality instead of three random answers 😂 What's something about you that probably doesn't come across very well on a dating profile?`];return options[variant % options.length];}function createPlayful(name,a,b){const greeting=name ? `Hey ${name}!` : "Hey!";const options=[`${greeting} Okay, your profile actually made me stop scrolling 😄 The part about ${a.toLowerCase()}${b ? ` plus ${b.toLowerCase()}` : ""} caught my attention. I'm skipping the boring interview questions though—if you suddenly had a completely free Saturday with zero responsibilities, what are we most likely finding you doing?`,`${greeting} I was going to come up with an unnecessarily clever opening line, but your profile gave me an easier option 😂 You mentioned ${a.toLowerCase()}, so now I'm curious—what's something you're into right now that you could probably convince someone else to try?`,`${greeting} You actually gave me enough in your profile to avoid sending the world's most boring “hey” 😄 I noticed ${a.toLowerCase()}. So here's my slightly better question: what's something you've done once and immediately thought, “yeah, I'm definitely doing that again”?`];return options[variant % options.length];}function createFaith(name,a){const greeting=name ? `Hey ${name}!` : "Hey!";const options=[`${greeting} I liked reading your profile, especially what you shared about ${a.toLowerCase()}. Faith is important in my life too, and I appreciate when someone can talk about what matters to them without making it feel forced. Outside of the normal Sunday answer 😄 what's something that's really strengthened your faith?`,`${greeting} Your profile caught my attention, especially the part about ${a.toLowerCase()}. I'm involved in my church community too, so I figured I'd actually say hi instead of quietly leaving a like 😄 What part of your faith or church life do you genuinely enjoy the most?`,`${greeting} I liked that your profile actually says something about what matters to you. The part about ${a.toLowerCase()} stood out to me because faith is a big part of my life too. I'm curious—what's one thing you've learned through your faith that has genuinely changed how you look at life?`];return options[variant % options.length];}function sisterProfile(name,a){const greeting=name ? `Hey ${name}!` : "Hey!";return `${greeting} I noticed the part about your sister helping with your profile and honestly that made me smile 😄 definitely not something you see every day. I also noticed ${a.toLowerCase()}, which gave me another reason to say hi. Since she handled the introduction, I'll let you handle this part 😂 what's something about you she probably forgot to mention?`;}function generateMessage(){const text=document.getElementById("profile").value.trim();if(!text){alert("Paste the profile text first.");return;}const signals=findSignals(text);const name=findName(text);const a=signals[0] || "what you wrote in your profile";const b=signals[1] || "";const style=document.getElementById("style").value;document.getElementById("signals").innerHTML=(signals.length ? signals : ["Thoughtful profile"]).slice(0,6).map(x=>`<span>✓ ${x}</span>`).join("");let message;if(/profile is (ran|run|managed) by (her|his|their) sister/i.test(text)){message=sisterProfile(name,a);}else if(style==="playful"){message=createPlayful(name,a,b);}else if(style==="faith"){message=createFaith(name,signals.includes("Faith") ? "your faith" : a);}else{message=createNatural(name,a,b);}/* Absolute Christian Mingle limit */if(message.length>399){message=message.substring(0,396).trim()+"...";}document.getElementById("result").textContent=message;document.getElementById("counter").textContent=message.length+" / 399";}function anotherMessage(){variant++;generateMessage();}async function copyMessage(){const message=document.getElementById("result").textContent;await navigator.clipboard.writeText(message);document.getElementById("counter").textContent =message.length+" / 399 • Copied ✓";}</script></body></html>123456789<!doctype html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>SparkScript</title><style>*{box-sizing:border-box}body{margin:0;min-height:100vh;font-family:Inter,system-ui;background:radial-gradient(circle at 75% 0%,rgba(255,212,0,.15),transparent 30%),linear-gradient(145deg,#050505,#0b0b0b 60%,#020202);color:#fff}.wrap{max-width:940px;margin:auto;padding:55px 20px}.hero{text-align:center;padding:35px}h1{font-size:52px;margin:0;letter-spacing:-2px}.y{color:#ffd400;text-shadow:0 0 25px rgba(255,212,0,.32)}.tag{color:#aaa;letter-spacing:2px;text-transform:uppercase;font-size:12px}.card{background:linear-gradient(145deg,#171717,#090909);border:1px solid #252525;border-radius:22px;padding:23px;margin-top:18px;box-shadow:inset 0 1px rgba(255,255,255,.06),0 20px 50px #000}textarea{width:100%;min-height:210px;background:#080808;color:#fff;border:1px solid #292929;border-radius:14px;padding:15px;font-size:15px}button,select{padding:12px 16px;border-radius:11px;font-size:15px}button{border:0;background:linear-gradient(135deg,#ffe033,#ffbd00);font-weight:850;color:#080808;cursor:pointer;box-shadow:0 0 22px rgba(255,212,0,.18)}select{background:#101010;color:#eee;border:1px solid #292929}.row{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}#result{line-height:1.6;color:#f3f3f3;min-height:70px}.small{color:#777;font-size:12px}</style></head><body><div class="wrap"><div class="hero"><h1>✦ Spark<span class="y">Script</span></h1><div class="tag">Say something worth replying to</div></div><div class="card"><h2>Drop in the profile</h2><textarea id="profile" placeholder="Paste profile text here..."></textarea><div class="row"><select id="style"><option>Natural & Catchy</option><option>Playful</option><option>Faith & Values</option></select><button onclick="make()">⚡ WRITE MY OPENER</button></div></div><div class="card"><div class="small y">YOUR OPENER</div><div id="result"><br>Your message will appear here.</div><div class="row"><button onclick="copy()">COPY MESSAGE</button><span id="count" class="small"></span></div></div></div><script>function make(){let t=document.getElementById('profile').value.trim();if(!t)return alert('Paste profile text first.');let n=(t.match(/^([A-ZÀ-ÖØ-Þ][A-Za-zÀ-ÿ'’.-]{1,25})(?:\s*,?\s*\d{2})?$/m)||[])[1]||'there';let topics=[['faith','faith'],['church','church'],['concert','music/concerts'],['travel','travel'],['children','working with children'],['coffee','coffee'],['family','family']];let a=(topics.find(x=>t.toLowerCase().includes(x[0]))||['','what you wrote in your profile'])[1];let m=`Hey ${n}! Your profile actually gave me something better to say than the usual “hey, how are you?” 😄 The part about ${a} caught my attention, so I figured I’d say hi instead of just leaving a like. What’s something you’ve been really enjoying lately that you could happily talk about for way too long?`;if(m.length>399)m=m.slice(0,396)+'...';document.getElementById('result').textContent=m;document.getElementById('count').textContent=m.length+' / 399'}async function copy(){await navigator.clipboard.writeText(document.getElementById('result').textContent)}</script></body></html>
index.html+9-547