Untitled
Anonymous
plain_text
02/13/2026 12:37 PM
3.5 KB
11
Indexable
<!DOCTYPE html>
<html lang="cs">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Pro Peťulku ❤️</title>
<style>
body {
display: flex; justify-content: center; align-items: center;
height: 100vh; margin: 0; background-color: #ffeef2;
font-family: 'Segoe UI', sans-serif; overflow: hidden; text-align: center;
}
.container {
background-color: white; padding: 3rem; border-radius: 20px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); position: relative; z-index: 10;
}
h1 { color: #d63384; font-size: 2.5rem; margin-bottom: 2rem; }
.buttons { display: flex; justify-content: center; gap: 20px; }
button { padding: 15px 30px; font-size: 1.2rem; border: none; border-radius: 50px; cursor: pointer; }
#yesBtn { background-color: #ff4d6d; color: white; transition: 0.3s; }
#noBtn { background-color: #6c757d; color: white; position: absolute; }
.heart {
position: fixed; top: -10px; font-size: 20px;
animation: fall linear forwards; z-index: 1;
}
@keyframes fall {
to { transform: translateY(105vh) rotate(360deg); }
}
</style>
</head>
<body>
<div class="container" id="mainCard">
<h1>Peťulko, <br> will you be my Valentine? 🌹</h1>
<div class="buttons">
<button id="yesBtn">ANO! ❤️</button>
<button id="noBtn">Ne</button>
</div>
</div>
<script>
const noBtn = document.getElementById('noBtn');
const yesBtn = document.getElementById('yesBtn');
noBtn.addEventListener('mouseover', () => {
const x = Math.random() * (window.innerWidth - 100);
const y = Math.random() * (window.innerHeight - 50);
noBtn.style.left = x + 'px';
noBtn.style.top = y + 'px';
});
yesBtn.addEventListener('click', () => {
document.body.innerHTML = '<h1 style="color: #ff4d6d; font-size: 4rem;">Jupííí! Miluju tě! ❤️✨</h1>';
setInterval(createHeart, 150);
});
function createHeart() {
const heart = document.createElement('div');
heart.classList.add('heart');
heart.innerHTML = '❤️';
heart.style.left = Math.random() * 100 + 'vw';
heart.style.animationDuration = Math.random() * 2 + 3 + 's';
document.body.appendChild(heart);
}
</script>
</body>
</html>Editor is loading...
Leave a Comment