Areba / Index.html
Pesasmart's picture
Update Index.html
2d8c807 verified
Raw History Blame Contribute Delete
1.4 kB
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>PesaSmart</title>
</head>
<body style="background:#0f172a; color:white; font-family:Arial; text-align:center; padding:20px;">
<h1 style="color:#22c55e;">💰 PesaSmart</h1>
<p>Your advisor from Eldoret</p>
<div style="background:white; color:black; padding:25px; border-radius:20px; max-width:400px; margin:20px auto;">
<h3>How much you earn per week?</h3>
<input id="earn" type="number" placeholder="e.g. 5000" style="width:90%; padding:15px; border:2px solid green; border-radius:10px; font-size:18px; text-align:center;">
<br><br>
<button onclick="plan()" style="background:green; color:white; padding:15px; width:95%; border:none; border-radius:10px; font-size:18px; font-weight:bold;">Get My Plan</button>
<div id="answer" style="margin-top:20px; background:#f0fdf4; padding:15px; border-radius:10px; display:none; color:green; text-align:left;"></div>
</div>
<script>
function plan(){
let e = document.getElementById('earn').value;
if(!e){ alert('Weka pesa!'); return; }
let needs = e*0.5; let wants = e*0.3; let save = e*0.2;
let a = document.getElementById('answer');
a.style.display='block';
a.innerHTML = 'For KES '+e+':<br><br>🍚 Needs (50%): KES '+needs+'<br>📱 Wants (30%): KES '+wants+'<br>🔒 Save (20%): KES '+save;
}
</script>
</body>
</html>