-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
249 lines (220 loc) · 5.88 KB
/
index.html
File metadata and controls
249 lines (220 loc) · 5.88 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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
<!DOCTYPE html><html lang="bn">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>SofiqTech Eid Ultimate</title><link href="https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;600;700&display=swap" rel="stylesheet"><style>
*{margin:0;padding:0;box-sizing:border-box;font-family:'Hind Siliguri',sans-serif;}
body{
height:100vh;
color:gold;
display:flex;
justify-content:center;
align-items:center;
overflow:hidden;
background:black;
}
/* Video Background */
video{
position:absolute;
width:100%;
height:100%;
object-fit:cover;
z-index:-2;
filter:brightness(0.4);
}
/* Overlay */
.overlay{
position:absolute;
width:100%;
height:100%;
background:radial-gradient(circle,rgba(0,0,0,0.4),#000);
z-index:-1;
}
/* Glass UI */
.container{
width:90%;
max-width:400px;
padding:25px;
border-radius:20px;
background:rgba(255,255,255,0.08);
backdrop-filter:blur(15px);
border:1px solid rgba(255,215,0,0.3);
text-align:center;
box-shadow:0 0 30px rgba(255,215,0,0.25);
}
.hidden{display:none;}
/* Button */
button{
margin-top:15px;
padding:12px;
border:none;
border-radius:10px;
background:linear-gradient(45deg,gold,#ffd700);
color:black;
font-weight:bold;
cursor:pointer;
}
/* Gift */
.gift{
font-size:55px;
animation:pulse 1.5s infinite;
}
@keyframes pulse{
0%{transform:scale(1);}
50%{transform:scale(1.2);}
100%{transform:scale(1);}
}
/* Lantern */
.lantern{
font-size:50px;
animation:glow 2s infinite alternate;
}
@keyframes glow{
from{text-shadow:0 0 10px gold;}
to{text-shadow:0 0 30px gold;}
}
/* Poem */
.poem span{
display:block;
opacity:0;
transform:translateY(10px);
animation:fadeLine 0.8s forwards;
color:#fff3b0;
}
@keyframes fadeLine{
to{opacity:1;transform:translateY(0);}
}
/* Fireworks */
canvas{
position:absolute;
top:0;
left:0;
}
/* Watermark */
.watermark{
position:absolute;
bottom:15px;
right:15px;
font-size:12px;
color:#fff;
opacity:0.8;
}
</style></head><body><!-- Background Video --><video autoplay muted loop>
<source src="https://cdn.pixabay.com/video/2023/03/14/154449-807841996_large.mp4" type="video/mp4">
</video><div class="overlay"></div><!-- 🔊 YOUR CUSTOM AUDIO --><audio id="music" loop>
<source src="music.mp3" type="audio/mpeg">
</audio><canvas id="fireworks"></canvas>
<!-- Name Input --><div class="container" id="nameStep">
<h2> বাংলায় আপনার নাম লিখুন</h2>
<input type="text" id="username" placeholder="আপনার নাম...">
<button onclick="start()">শুরু করুন</button>
</div><!-- Gift --><div class="container hidden" id="step0">
<div class="gift">🎁</div>
<h2 id="welcomeText"></h2>
<button onclick="next(1)">সারপ্রাইজটি দেখুন</button>
</div><!-- Step 1 --><div class="container hidden" id="step1">
<h2>🌙 আকাশে ঈদের চাঁদ উঠেছে!</h2>
<button onclick="next(2)">পরবর্তী</button>
</div><!-- Step 2 --><div class="container hidden" id="step2">
<div class="lantern">🏮</div>
<h3 id="wishText"></h3>
<div id="poem" class="poem"></div>
<p>✨ ঈদ মোবারক ✨</p>
<button onclick="next(3)">শেষ ধাপ</button>
</div><!-- Final --><div class="container hidden" id="step3">
<h1 id="finalText"></h1>
<p>আপনার জীবনে আসুক সুখ, শান্তি ও সমৃদ্ধি</p>
<button onclick="share()">📲 Share</button>
</div><div class="watermark">✨ SofiqTech</div><script>
let name="";
function start(){
name=document.getElementById("username").value || "আপনি";
document.getElementById("nameStep").classList.add("hidden");
document.getElementById("step0").classList.remove("hidden");
document.getElementById("welcomeText").innerText=
name+" এর জন্য একটি বিশেষ সারপ্রাইজ!";
/* 🔊 PLAY CUSTOM AUDIO */
let music=document.getElementById("music");
music.volume=0;
music.play();
let vol=0;
let fade=setInterval(()=>{
if(vol<0.6){
vol+=0.05;
music.volume=vol;
}else{
clearInterval(fade);
}
},200);
}
function next(step){
document.querySelectorAll('.container').forEach(e=>e.classList.add('hidden'));
document.getElementById("step"+step).classList.remove("hidden");
if(step===2){
document.getElementById("wishText").innerText=
name+" এবং আপনার পরিবারের সবার জীবন আনন্দে ভরে উঠুক";
let poemLines=[
"🌙 "+name+" এর জীবনে আসুক নতুন আলো,",
"✨ সুখে ভরে উঠুক আগামীর প্রতিটি ভালো,",
"💖 হাসি থাকুক প্রতিটি ক্ষণে,",
"🎉 ঈদ আসুক আনন্দ হয়ে আপনার জীবনে।"
];
let box=document.getElementById("poem");
box.innerHTML="";
poemLines.forEach((line,i)=>{
let span=document.createElement("span");
span.innerText=line;
span.style.animationDelay=(i*0.7)+"s";
box.appendChild(span);
});
}
if(step===3){
document.getElementById("finalText").innerText="🌙 ঈদ মোবারক "+name+" 🌙";
startFireworks();
}
}
/* Fireworks */
const canvas=document.getElementById("fireworks");
const ctx=canvas.getContext("2d");
canvas.width=innerWidth;
canvas.height=innerHeight;
let particles=[];
function fire(){
for(let i=0;i<100;i++){
particles.push({
x:canvas.width/2,
y:canvas.height/2,
angle:Math.random()*2*Math.PI,
speed:Math.random()*6,
life:100
});
}
}
function animate(){
ctx.clearRect(0,0,canvas.width,canvas.height);
particles.forEach((p,i)=>{
p.x+=Math.cos(p.angle)*p.speed;
p.y+=Math.sin(p.angle)*p.speed;
p.life--;
ctx.fillStyle="gold";
ctx.fillRect(p.x,p.y,2,2);
if(p.life<=0)particles.splice(i,1);
});
requestAnimationFrame(animate);
}
function startFireworks(){
setInterval(fire,800);
animate();
}
/* Share */
function share(){
if(navigator.share){
navigator.share({
title:"Eid Mubarak",
text:"🌙 Eid Mubarak from SofiqTech!",
url:location.href
});
}
}
</script></body>
</html>