Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
104 changes: 104 additions & 0 deletions Qr by shop
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
<!DOCTYPE html><html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Bilal Gold Smith Discount</title>
<style>
body {
margin: 0;
background: #000;
overflow: hidden;
font-family: Arial, sans-serif;
color: #fff;
text-align: center;
}
.message {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 2rem;
font-weight: bold;
opacity: 0;
animation: fadeInScale 3s ease-out forwards;
}@keyframes fadeInScale {
0% { transform: translate(-50%, -50%) scale(0.3); opacity: 0; }
60% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* Heavy particle animation */
canvas {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}

</style>
</head>
<body>
<canvas id="particles"></canvas>
<div class="message">
🎉 You received discount by <b>Bilal Gold Smith</b><br>
Thanks for shopping!<br>
Never forget to follow on TikTok ❤️
</div><script>
// Heavy particle explosion animation
const canvas = document.getElementById("particles");
const ctx = canvas.getContext("2d");

canvas.width = window.innerWidth;
canvas.height = window.innerHeight;

let particles = [];

class Particle {
constructor(x, y, color) {
this.x = x;
this.y = y;
this.radius = Math.random() * 4 + 2;
this.color = color;
this.speedX = (Math.random() - 0.5) * 10;
this.speedY = (Math.random() - 0.5) * 10;
this.alpha = 1;
}

update() {
this.x += this.speedX;
this.y += this.speedY;
this.alpha -= 0.01;
}

draw() {
ctx.globalAlpha = this.alpha;
ctx.beginPath();
ctx.arc(this.x, this.y, this.radius, 0, Math.PI * 2);
ctx.fillStyle = this.color;
ctx.fill();
ctx.globalAlpha = 1;
}
}

function explosion() {
const colors = ["#FFD700", "#FF4500", "#FFFFFF", "#FFA500"]; // gold + fire effect
for (let i = 0; i < 200; i++) {
particles.push(new Particle(canvas.width/2, canvas.height/2, colors[Math.floor(Math.random()*colors.length)]));
}
}

function animate() {
ctx.clearRect(0, 0, canvas.width, canvas.height);
particles.forEach((p, index) => {
p.update();
p.draw();
if (p.alpha <= 0) particles.splice(index, 1);
});
requestAnimationFrame(animate);
}

explosion();
animate();
</script></body>
</html>