-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.html
138 lines (130 loc) · 5.2 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<!-- <link rel="website icon" type="png" href="image/heart.png"> -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css" integrity="sha512-MV7K8+y+gLIBoVD59lQIYicR65iaqukzvf/nwasF0nqhPay5w/9lJmVM2hMDcnK1OnMGCdVK+iQrJ7lzPJQd1w==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<title>Chúc mừng sinh nhật Dũng nha</title>
</head>
<body>
<div class="container">
<div class="boxcontainer">
<div class="image">
<img src="flag.png" alt="">
</div>
<div class="text-happybirthday">
<img src="texthappy.png" alt="">
</div>
<div class="cake">
<img src="cake.png" alt="">
</div>
<div class="box-balloon">
<div class="balloon-item1">
<img src="balloon.png" alt="">
</div>
<div class="balloon-item1">
<img src="balloon.png" alt="">
</div>
</div>
<div class="box-cloud">
<div class="cloud">
<img src="cloud.png" alt="">
</div>
<div class="cloud">
<img src="cloud.png" alt="">
</div>
</div>
<div class="box-firework">
<div class="firework">
<img src="firework.png" alt="">
<img src="firework1.png" alt="" id="firework1">
</div>
<div class="firework">
<img src="firework.png" alt="">
<img src="firework1.png" alt="" id="firework1">
</div>
</div>
<div class="paperCannons">
<img src="paperCannons1.png" alt="">
</div>
<div class="box-giftbox">
<img src="giftbox.png" alt="">
<img src="giftbox.png" alt="">
<img src="giftbox.png" alt="">
<img src="giftbox.png" alt="">
<img src="giftbox.png" alt="">
<img src="giftbox.png" alt="">
</div>
<div class="mail">
<i class="fa-regular fa-envelope"></i>
</div>
<div class="boxcute">
<div class="cute1">
<img src="cute.png" alt=""> <!-- thay ảnh -->
</div>
<div class="cute2">
<img src="cute.png" alt="">
</div>
</div>
</div>
<div class="boxMail">
<i class="fa-solid fa-xmark"></i>
<div class="boxMail-container">
<div class="card1">
<div class="userImg">
<img src="400230076_645743174301434_3809045113991056458_n.jpg" alt="">
</div>
<h3>Happy birthday</h3>
<div class="imageCute">
<img src="cute1.png" alt="">
</div>
</div>
<div class="card2">
<div class="card2-content">
<h3>Gủi tới Dũng</h3>
<h2>Chúc sinh nhật Dũng thật vui vẽ nha,ăn mong chóng lớn nghe chưa...</h2>
<h2>Tuy chúc hơi muộn.</h2>
<h2>Kí tên</h2>
<h2>Nguyễn Nam Tiến</h2>
<div class="imageCute2">
<img src="cute2.png" alt="">
</div>
</div>
</div>
</div>
</div>
</div>
</body>
<script>
document.addEventListener('mousemove', function(e){
let body = document.querySelector('body');
let heart = document.createElement('span');
let x = e.offsetX;
let y = e.offsetY;
heart.style.left = x+'px';
heart.style.top = y+'px';
let size = Math.random() * 10;
heart.style.width = 4 * size+'px';
heart.style.height = 4 * size+'px';
let transformValue = Math.random() * 360;
heart.style.transform = 'rotate('+ transformValue +'deg)';
body.appendChild(heart);
setTimeout(function(){
heart.remove();
},1000)
})
let mailBox = document.querySelector('.mail')
let boxmail = document.querySelector('.boxMail')
var close = document.querySelector('.fa-xmark')
mailBox.onclick = function(){
mailBox.classList.toggle('active')
boxmail.classList.add('active')
}
close.addEventListener('click', function(){
boxmail.classList.remove('active')
})
</script>
</html>