<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>NK OFFERS – ₹10 Cashback</title>
<!-- Thumbnail / social preview -->
<meta property="og:title" content="NK OFFERS – ₹10 Cashback" />
<meta property="og:description" content="Enter your UPI ID to claim the offer and continue to registration." />
<meta property="og:image" content="thumbnail.jpg" /> <!-- replace with your hosted image URL -->
<meta name="theme-color" content="#34d399" />
<style>
:root{
--bg1:#221a49; --bg2:#2a1a61; --g1:#19e0c5; --g2:#a855f7; --card:#0b0f14;
--text:#e9f0ff; --muted:#b5c2ff; --accent:#10b981; --danger:#ef4444; --shadow:rgba(0,0,0,.4)
}
*{box-sizing:border-box}
body{margin:0;font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif;background:linear-gradient(135deg,var(--bg1),var(--bg2)) fixed;color:var(--text);}
.wrap{max-width:940px;margin:28px auto;padding:18px}
.hero{position:relative;border-radius:28px;padding:40px 24px;background:linear-gradient(135deg,var(--g1),var(--g2));box-shadow:0 20px 50px var(--shadow)}
.title{font-weight:800;letter-spacing:.6px;font-size:44px;margin:0 0 4px}
.subtitle{font-weight:800;color:#ffe46b;text-shadow:0 2px 0 rgba(0,0,0,.15);font-size:28px;margin:6px 0}
.card{background:rgba(9,12,20,.78);border:1px solid rgba(255,255,255,.06);backdrop-filter:blur(10px);border-radius:22px;padding:22px;margin-top:22px;box-shadow:0 8px 30px var(--shadow)}
label{display:block;margin:14px 0 8px;color:var(--muted);font-weight:700}
.input{
width:100%;padding:16px 18px;border-radius:14px;border:1.2px solid rgba(255,255,255,.16);background:#0f1522;color:var(--text);font-size:18px;outline:none;transition:.2s}
.input:focus{border-color:var(--g1);box-shadow:0 0 0 4px rgba(25,224,197,.15)}
.btn{
appearance:none;border:none;display:inline-flex;align-items:center;gap:10px;padding:16px 20px;border-radius:16px;background:linear-gradient(135deg,#22d3ee,#10b981);color:#081017;font-weight:800;font-size:18px;margin-top:16px;cursor:pointer;box-shadow:0 10px 25px var(--shadow);transition:transform .06s ease}
.btn:active{transform:translateY(1px)}
.steps h3{margin:0 0 12px;font-size:24px}
.steps li{margin:10px 0;line-height:1.55}
.notice{font-size:13px;color:#c7d2fe;opacity:.9}
.toast{position:fixed;left:50%;bottom:22px;transform:translateX(-50%);background:#0b0f14;color:var(--text);border:1px solid rgba(255,255,255,.08);padding:12px 16px;border-radius:12px;box-shadow:0 8px 24px var(--shadow);display:none}
.badge{display:inline-block;padding:8px 12px;border-radius:999px;background:rgba(255,255,255,.14);font-weight:700;margin-bottom:10px}
.footer{opacity:.8;text-align:center;font-size:12px;margin:26px 0}
@media (max-width:640px){.title{font-size:34px}.subtitle{font-size:22px}.wrap{padding:14px}}
</style>
</head>
<body>
<div class="wrap">
<div class="hero">
<div class="badge">NK OFFERS</div>
<h1 class="title">naukari campus – ₹10 cashback</h1>
<p class="subtitle">Enter your UPI ID 👇</p>
<div class="card">
<label for="upi">UPI ID</label>
<input id="upi" class="input" placeholder="example@upi" inputmode="email" autocomplete="off" />
<button id="submit" class="btn">🚀 Submit & Continue</button>
<p class="notice">By continuing you agree to the <a href="#" style="color:#9ef0ff">Terms</a> & <a href="#" style="color:#9ef0ff">Privacy Policy</a>. We do not auto-debit. Offer subject to verification.</p>
</div>
</div>
<div class="card steps">
<h3>📌 How to complete this offer</h3>
<ol>
<li>➡️ Enter your UPI ID and tap <b>Submit</b>.</li>
<li>➡️ You’ll be redirected to our partner site. Tap <b>Enroll</b> › <b>Register for Free</b>.
Enter your <b>Name</b>, <b>Email</b>, and <b>Mobile</b>. On the next step select <b>I am a Student</b>.</li>
<li>➡️ Finish registration. Cashback is processed after successful verification.</li>
</ol>
</div>
<p class="footer">© 2025 NK Offers • For support: support@nko.example</p>
</div>
<div id="toast" class="toast"></div>
<script>
// ====== EDIT THESE VALUES ======
const AFFILIATE_LINK = "https://example.com/your-affiliate-link"; // put your account-open link here
const SEND_TO_WEBHOOK = false; // set to true after adding your webhook URL below
const WEBHOOK_URL = ""; // e.g. your Google Apps Script / Form backend endpoint
// =================================
const elUpi = document.getElementById('upi');
const elBtn = document.getElementById('submit');
const toast = document.getElementById('toast');
function showToast(msg){
toast.textContent = msg; toast.style.display = 'block';
setTimeout(()=> toast.style.display='none', 2200);
}
// Basic UPI ID validation (name@bank or number@bank)
const upiRegex = /^[a-zA-Z0-9._-]{2,256}@[a-zA-Z]{3,64}$/;
async function sendToWebhook(upi){
if(!SEND_TO_WEBHOOK || !WEBHOOK_URL) return;
try{
await fetch(WEBHOOK_URL, {method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify({upi, ts: Date.now(), ua: navigator.userAgent})});
}catch(e){
console.warn('Webhook error', e);
}
}
function buildRedirectUrl(upi){
try{
const url = new URL(AFFILIATE_LINK);
// attach UTM-style params so you can see the UPI in your partner dashboard/logs
url.searchParams.set('upi', upi);
url.searchParams.set('src', 'nkoffers');
return url.toString();
}catch{ return AFFILIATE_LINK; }
}
elBtn.addEventListener('click', async ()=>{
const upi = (elUpi.value || '').trim();
if(!upiRegex.test(upi)){
showToast('Please enter a valid UPI ID like name@bank');
elUpi.focus();
return;
}
// Save locally for convenience
try{ localStorage.setItem('upi_id', upi); }catch{}
showToast('Verifying…');
await sendToWebhook(upi); // fire-and-forget
// Redirect
window.location.href = buildRedirectUrl(upi);
});
// prefill if user visited earlier
try{ const saved = localStorage.getItem('upi_id'); if(saved) elUpi.value = saved; }catch{}
</script>
</body>
</html>
Comments