-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathend.html
More file actions
125 lines (112 loc) · 3.16 KB
/
Copy pathend.html
File metadata and controls
125 lines (112 loc) · 3.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Congratulations!</title>
<style>
body {
margin: 0;
padding: 0;
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
background: linear-gradient(135deg, #ff9a9e, #fad0c4);
overflow: hidden;
font-family: "Arial", sans-serif;
}
.container {
text-align: center;
background: #ffffff;
padding: 40px;
border-radius: 15px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
position: relative;
overflow: hidden;
}
h1 {
font-size: 2.5rem;
color: #4caf50;
margin: 0 0 15px;
}
p {
font-size: 1.5rem;
color: #333;
margin: 15px 0;
}
.highlight {
color: #f50057;
font-weight: bold;
}
.confetti {
position: absolute;
width: 100%;
height: 100%;
pointer-events: none;
overflow: hidden;
}
.confetti-piece {
position: absolute;
width: 10px;
height: 10px;
background-color: hsl(0, 100%, 50%);
animation: fall linear infinite;
}
@keyframes fall {
0% {
transform: translateY(-100vh) rotate(0deg);
opacity: 1;
}
100% {
transform: translateY(100vh) rotate(360deg);
opacity: 0;
}
}
button {
margin-top: 25px;
padding: 15px 30px;
font-size: 1.2rem;
background-color: #4caf50;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
}
button:hover {
background-color: #388e3c;
}
</style>
</head>
<body>
<div class="container">
<h1>🎉 Congratulations! 🎉</h1>
<p>
You are one of the <b>Buy N' Go's 2025 special offer winners</b>!<br />
Your purchase will arrive for <span class="highlight">FREE</span> on the
<b>29th of February 2025</b>. 🚚🎁
</p>
<button onclick="location.reload()">Celebrate Again</button>
</div>
<div class="confetti" id="confetti"></div>
<script>
const confettiContainer = document.getElementById("confetti");
const confettiCount = 150;
function createConfettiPiece() {
const piece = document.createElement("div");
piece.classList.add("confetti-piece");
piece.style.backgroundColor = `hsl(${Math.random() * 360}, 70%, 50%)`;
piece.style.left = `${Math.random() * 100}%`;
piece.style.animationDuration = `${Math.random() * 3 + 2}s`;
piece.style.animationDelay = `${Math.random() * 2}s`;
confettiContainer.appendChild(piece);
setTimeout(() => {
piece.remove();
}, 5000);
}
for (let i = 0; i < confettiCount; i++) {
createConfettiPiece();
}
</script>
</body>
</html>