-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplaced.html
More file actions
95 lines (90 loc) · 2.74 KB
/
placed.html
File metadata and controls
95 lines (90 loc) · 2.74 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Order Placed ✅</title>
<style>
body {
font-family: Arial, sans-serif;
text-align: center;
background-color: #f8f9fa;
padding-top: 100px;
}
.order-container {
display: none;
flex-direction: column;
align-items: center;
justify-content: center;
background: white;
padding: 30px;
border-radius: 15px;
box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
animation: fadeIn 0.8s ease-in-out;
}
.checkmark {
width: 80px;
height: 80px;
background-color: #4CAF50;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 20px;
animation: pop 0.6s ease-in-out;
}
.checkmark::after {
content: '✔';
font-size: 40px;
color: white;
font-weight: bold;
}
.order-text {
font-size: 24px;
font-weight: bold;
color: #333;
animation: pop 0.6s ease-in-out;
}
@keyframes fadeIn {
from { opacity: 0; transform: scale(0.8); }
to { opacity: 1; transform: scale(1); }
}
@keyframes pop {
0% { transform: scale(0.5); opacity: 0; }
80% { transform: scale(1.1); opacity: 1; }
100% { transform: scale(1); }
}
.btn {
padding: 12px 20px;
font-size: 18px;
border: none;
background-color: #4CAF50;
color: white;
cursor: pointer;
border-radius: 8px;
transition: 0.3s;
margin-top: 20px;
}
.btn:hover {
background-color: #45a049;
}
</style>
</head>
<body>
<button class="btn" onclick="placeOrder()">Place Order</button>
<div class="order-container" id="orderMessage">
<div class="checkmark"></div>
<p class="order-text">Order Placed Successfully! 🎉</p>
</div>
<script>
function placeOrder() {
let orderMessage = document.getElementById('orderMessage');
orderMessage.style.display = 'flex';
// Hide animation after 3 seconds (optional)
setTimeout(() => {
orderMessage.style.display = 'none';
}, 3000);
}
</script>
</body>
</html>