File: /home/u503286720/domains/vistasadindia.com/public_html/thank-you.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Thank You!</title>
<style>
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: #242424;
color: white;
font-family: Arial, sans-serif;
overflow: hidden;
margin: 0;
position: relative;
flex-direction: column;
}
.thank-you-container {
text-align: center;
opacity: 0;
transform: scale(0.5);
animation: fadeInScale 1s forwards ease-out;
position: relative;
}
@keyframes fadeInScale {
to {
opacity: 1;
transform: scale(1);
}
}
.confetti {
position: absolute;
width: 10px;
height: 10px;
background: gold;
opacity: 0.7;
animation: fall 2s linear infinite;
}
@keyframes fall {
from {
transform: translateY(-100vh) rotate(0deg);
}
to {
transform: translateY(100vh) rotate(360deg);
}
}
.close-btn {
margin-top: 20px;
background: red;
color: white;
border: none;
padding: 15px 20px;
font-size: 18px;
cursor: pointer;
border-radius: 8px;
}
</style>
</head>
<body>
<div class="thank-you-container">
<h1>Thank You!</h1>
<p>Your submission has been received.</p>
</div>
<button class="close-btn" onclick="redirectToPage()">Close</button>
<script>
function createConfetti() {
for (let i = 0; i < 100; i++) {
let confetti = document.createElement("div");
confetti.className = "confetti";
document.body.appendChild(confetti);
let size = Math.random() * 10 + 5;
confetti.style.width = `${size}px`;
confetti.style.height = `${size}px`;
confetti.style.left = `${Math.random() * 100}vw`;
confetti.style.backgroundColor = `hsl(${Math.random() * 360}, 100%, 50%)`;
confetti.style.animationDuration = `${Math.random() * 2 + 1}s`;
}
}
createConfetti();
function redirectToPage() {
window.location.href = "https://vistasadindia.com/";
}
</script>
</body>
</html>