-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
51 lines (51 loc) · 1.44 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>I Love You</title>
<style>
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: #f0e4d7;
font-family: 'Arial', sans-serif;
}
.message {
text-align: center;
font-size: 2em;
color: #ff6f61;
}
.heart {
color: red;
animation: heartbeat 1.5s infinite;
}
@keyframes heartbeat {
0%, 100% {
transform: scale(1);
}
50% {
transform: scale(1.2);
}
}
</style>
</head>
<body>
<p>
I have greatly grown fond of you, have I not, you probably shouldshould
have felt it by now. that I choose to speak or rather write of this, is to
make clear my love for you, I have been attracted to you.
</p>
<div class="message">
<p>I <span class="heart">❤️</span> You!</p>
</div>
<script>
// JavaScript to make it interactive
document.querySelector('.heart').addEventListener('click', function() {
alert('I love you more than words can say!');
});
</script>
</body>
</html>