File size: 10,393 Bytes
88060c2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
250
251
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>For Namra 💖</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link href="https://fonts.googleapis.com/css2?family=Pacifico&family=Dancing+Script:wght@400;700&display=swap" rel="stylesheet">
    <style>
        body {
            overflow: hidden;
            font-family: 'Dancing Script', cursive;
            background-color: #fce4ec;
        }
        
        .bg-image {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: url('https://i.pinimg.com/originals/70/de/b8/70deb8db85e6cfeeecefb999f7588b20.jpg');
            background-size: cover;
            background-position: center;
            filter: blur(8px) brightness(0.7);
            z-index: -1;
        }
        
        .heart {
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .heart:hover {
            transform: scale(1.05);
        }
        
        .heart-beat {
            animation: heartbeat 1.5s ease infinite;
        }
        
        @keyframes heartbeat {
            0% { transform: scale(1); }
            25% { transform: scale(1.1); }
            50% { transform: scale(1); }
            75% { transform: scale(1.1); }
            100% { transform: scale(1); }
        }
        
        .heart-open {
            animation: heartOpen 1s ease forwards;
        }
        
        @keyframes heartOpen {
            0% { transform: scale(1); }
            50% { transform: scale(1.2); }
            100% { 
                transform: scale(1.5); 
                opacity: 0;
            }
        }
        
        .message-container {
            opacity: 0;
            transition: all 1s ease;
            transform: scale(0.8);
        }
        
        .message-show {
            opacity: 1;
            transform: scale(1);
        }
        
        .floating-heart {
            position: absolute;
            opacity: 0.6;
            animation: float linear infinite;
        }
        
        @keyframes float {
            0% { transform: translateY(0) rotate(0deg); }
            50% { transform: translateY(-20px) rotate(10deg); }
            100% { transform: translateY(0) rotate(0deg); }
        }
        
        .message-paper {
            background: rgba(255, 255, 255, 0.9);
            box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
            backdrop-filter: blur(5px);
            border: 1px solid rgba(255, 255, 255, 0.3);
        }
        
        .hidden {
            display: none;
        }
    </style>
</head>
<body class="relative h-screen w-full flex items-center justify-center">
    <!-- Background -->
    <div class="bg-image"></div>
    
    <!-- Floating hearts -->
    <div id="floatingHearts"></div>
    
    <!-- Main content -->
    <div class="relative z-10 flex flex-col items-center justify-center text-center px-4">
        <!-- Heart Container -->
        <div id="heartContainer" class="mb-8">
            <svg id="mainHeart" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" class="heart w-32 h-32 text-pink-500 heart-beat">
                <path d="M11.645 20.91l-.007-.003-.022-.012a15.247 15.247 0 01-.383-.218 25.18 25.18 0 01-4.244-3.17C4.688 15.36 2.25 12.174 2.25 8.25 2.25 5.322 4.714 3 7.688 3A5.5 5.5 0 0112 5.052 5.5 5.5 0 0116.313 3c2.973 0 5.437 2.322 5.437 5.25 0 3.925-2.438 7.111-4.739 9.256a25.175 25.175 0 01-4.244 3.17 15.247 15.247 0 01-.383.219l-.022.012-.007.004-.003.001a.752.752 0 01-.704 0l-.003-.001z" />
            </svg>
        </div>
        
        <!-- Message Container (initially hidden) -->
        <div id="messageContainer" class="message-container max-w-md px-8 py-6 rounded-lg">
            <div class="message-paper p-8 rounded-lg">
                <h2 class="text-3xl font-bold mb-6 text-pink-600" style="font-family: 'Pacifico', cursive;">For Namra</h2>
                <p class="text-xl mb-4 text-gray-800">Hey Namra, how are you?</p>
                <p class="text-xl mb-6 text-gray-800">Did you miss me?</p>
                <p class="text-xl text-pink-500">From Ayan <span class="inline-block">💖🥺💌</span></p>
            </div>
            <button id="closeBtn" class="mt-6 text-pink-500 hover:text-pink-600 transition-colors">
                Close
            </button>
        </div>
        
        <!-- Instruction text -->
        <p id="instructionText" class="text-white text-xl mt-4">Click the heart to reveal a message</p>
    </div>

    <script>
        // Create floating hearts
        function createFloatingHearts() {
            const container = document.getElementById('floatingHearts');
            const heartCount = 30;
            const colors = ['#f8a5c2', '#f78fb3', '#f8c4d8', '#fd79a8'];
            
            for (let i = 0; i < heartCount; i++) {
                const heart = document.createElement('div');
                heart.innerHTML = '❤️';
                heart.className = 'floating-heart';
                
                // Random properties
                const size = Math.random() * 20 + 10;
                const duration = Math.random() * 5 + 10;
                const delay = Math.random() * 5;
                const left = Math.random() * 100;
                const color = colors[Math.floor(Math.random() * colors.length)];
                const animationDuration = Math.random() * 20 + 10;
                
                heart.style.left = `${left}%`;
                heart.style.top = `${Math.random() * 100}%`;
                heart.style.fontSize = `${size}px`;
                heart.style.color = color;
                heart.style.animationDuration = `${duration}s`;
                heart.style.animationDelay = `${delay}s`;
                
                container.appendChild(heart);
            }
        }
        
        // Main heart click handler
        document.getElementById('mainHeart').addEventListener('click', function() {
            const heart = this;
            const messageContainer = document.getElementById('messageContainer');
            const instructionText = document.getElementById('instructionText');
            
            // Remove heartbeat animation and add open animation
            heart.classList.remove('heart-beat');
            heart.classList.add('heart-open');
            
            // After opening animation completes
            setTimeout(() => {
                heart.classList.add('hidden');
                instructionText.classList.add('hidden');
                
                // Show message with fade in effect
                messageContainer.classList.add('message-show');
                
                // Create burst hearts
                createHeartBurst();
            }, 1000);
        });
        
        // Close button handler
        document.getElementById('closeBtn').addEventListener('click', function() {
            const messageContainer = document.getElementById('messageContainer');
            const heart = document.getElementById('mainHeart');
            const instructionText = document.getElementById('instructionText');
            
            messageContainer.classList.remove('message-show');
            
            setTimeout(() => {
                heart.classList.remove('hidden', 'heart-open');
                heart.classList.add('heart-beat');
                instructionText.classList.remove('hidden');
            }, 300);
        });
        
        // Create burst hearts effect
        function createHeartBurst() {
            const container = document.getElementById('heartContainer');
            const burstCount = 15;
            
            for (let i = 0; i < burstCount; i++) {
                const heart = document.createElement('div');
                heart.innerHTML = '❤️';
                heart.className = 'absolute';
                
                // Random direction and animation
                const angle = Math.random() * Math.PI * 2;
                const distance = Math.random() * 100 + 50;
                const duration = Math.random() * 1 + 0.5;
                const size = Math.random() * 20 + 10;
                const delay = Math.random() * 0.5;
                
                const x = Math.cos(angle) * distance;
                const y = Math.sin(angle) * distance;
                
                heart.style.transform = `translate(${x}px, ${y}px)`;
                heart.style.fontSize = `${size}px`;
                heart.style.animation = `fadeOut ${duration}s ease-out ${delay}s forwards`;
                heart.style.color = '#fd79a8';
                
                document.styleSheets[0].insertRule(`
                    @keyframes fadeOut {
                        to {
                            opacity: 0;
                            transform: translate(${x*2}px, ${y*2}px);
                        }
                    }
                `, document.styleSheets[0].cssRules.length);
                
                container.appendChild(heart);
                
                // Remove after animation
                setTimeout(() => {
                    if (heart.parentNode) {
                        heart.parentNode.removeChild(heart);
                    }
                }, (duration + delay) * 1000);
            }
        }
        
        // Initialize
        document.addEventListener('DOMContentLoaded', function() {
            createFloatingHearts();
        });
    </script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=ayahid/nmra" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>