File size: 18,782 Bytes
dbc46b1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
<!DOCTYPE html>
<html lang="tr">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Deprem Güvenlik Uygulaması</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        .earthquake-animation {
            animation: shake 0.5s infinite;
        }
        
        @keyframes shake {
            0% { transform: translate(1px, 1px) rotate(0deg); }
            10% { transform: translate(-1px, -2px) rotate(-1deg); }
            20% { transform: translate(-3px, 0px) rotate(1deg); }
            30% { transform: translate(3px, 2px) rotate(0deg); }
            40% { transform: translate(1px, -1px) rotate(1deg); }
            50% { transform: translate(-1px, 2px) rotate(-1deg); }
            60% { transform: translate(-3px, 1px) rotate(0deg); }
            70% { transform: translate(3px, 1px) rotate(-1deg); }
            80% { transform: translate(-1px, -1px) rotate(1deg); }
            90% { transform: translate(1px, 2px) rotate(0deg); }
            100% { transform: translate(1px, -2px) rotate(-1deg); }
        }
        
        .pulse {
            animation: pulse 2s infinite;
        }
        
        @keyframes pulse {
            0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
            70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
            100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
        }
        
        .emergency-card {
            transition: all 0.3s ease;
        }
        
        .emergency-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        }
        
        .map-container {
            height: 300px;
            border-radius: 1rem;
            overflow: hidden;
        }
    </style>
</head>
<body class="bg-gray-100 min-h-screen">
    <!-- Header -->
    <header class="bg-red-600 text-white shadow-lg">
        <div class="container mx-auto px-4 py-6">
            <div class="flex justify-between items-center">
                <div class="flex items-center space-x-4">
                    <i class="fas fa-earthquake text-3xl"></i>
                    <h1 class="text-2xl font-bold">Deprem Güvenlik</h1>
                </div>
                <div class="flex items-center space-x-4">
                    <button class="bg-white text-red-600 px-4 py-2 rounded-full font-semibold hover:bg-gray-100 transition">
                        <i class="fas fa-bell mr-2"></i> Uyarılar
                    </button>
                    <div class="w-10 h-10 rounded-full bg-white flex items-center justify-center text-red-600">
                        <i class="fas fa-user"></i>
                    </div>
                </div>
            </div>
        </div>
    </header>

    <!-- Main Content -->
    <main class="container mx-auto px-4 py-8">
        <!-- Emergency Alert Section -->
        <div class="bg-red-100 border-l-4 border-red-600 p-4 mb-8 rounded-r-lg flex items-start">
            <div class="mr-4 text-red-600">
                <i class="fas fa-exclamation-triangle text-2xl"></i>
            </div>
            <div>
                <h2 class="font-bold text-lg text-red-800">Acil Durum Uyarısı</h2>
                <p class="text-red-700">Son 24 saat içinde bölgenizde 4.5 şiddetinde deprem kaydedildi. Güvenlik önlemlerinizi kontrol edin.</p>
                <button class="mt-2 bg-red-600 text-white px-4 py-2 rounded-lg hover:bg-red-700 transition">
                    Detayları Görüntüle
                </button>
            </div>
        </div>

        <!-- Quick Actions -->
        <div class="grid grid-cols-1 md:grid-cols-4 gap-6 mb-8">
            <div class="bg-white p-6 rounded-xl shadow-md emergency-card flex flex-col items-center text-center">
                <div class="w-16 h-16 bg-red-100 rounded-full flex items-center justify-center text-red-600 mb-4">
                    <i class="fas fa-siren-on text-2xl"></i>
                </div>
                <h3 class="font-bold mb-2">Acil Durum</h3>
                <p class="text-gray-600 text-sm mb-4">Deprem anında yapılması gerekenler</p>
                <button class="mt-auto bg-red-600 text-white px-4 py-2 rounded-lg text-sm hover:bg-red-700 transition">
                    Detaylar
                </button>
            </div>
            
            <div class="bg-white p-6 rounded-xl shadow-md emergency-card flex flex-col items-center text-center">
                <div class="w-16 h-16 bg-blue-100 rounded-full flex items-center justify-center text-blue-600 mb-4">
                    <i class="fas fa-map-marked-alt text-2xl"></i>
                </div>
                <h3 class="font-bold mb-2">Toplanma Alanları</h3>
                <p class="text-gray-600 text-sm mb-4">En yakın toplanma alanlarını görüntüle</p>
                <button class="mt-auto bg-blue-600 text-white px-4 py-2 rounded-lg text-sm hover:bg-blue-700 transition">
                    Haritada Göster
                </button>
            </div>
            
            <div class="bg-white p-6 rounded-xl shadow-md emergency-card flex flex-col items-center text-center">
                <div class="w-16 h-16 bg-green-100 rounded-full flex items-center justify-center text-green-600 mb-4">
                    <i class="fas fa-first-aid text-2xl"></i>
                </div>
                <h3 class="font-bold mb-2">İlk Yardım</h3>
                <p class="text-gray-600 text-sm mb-4">Temel ilk yardım bilgileri</p>
                <button class="mt-auto bg-green-600 text-white px-4 py-2 rounded-lg text-sm hover:bg-green-700 transition">
                    Öğren
                </button>
            </div>
            
            <div class="bg-white p-6 rounded-xl shadow-md emergency-card flex flex-col items-center text-center">
                <div class="w-16 h-16 bg-yellow-100 rounded-full flex items-center justify-center text-yellow-600 mb-4">
                    <i class="fas fa-check-circle text-2xl"></i>
                </div>
                <h3 class="font-bold mb-2">Güvenlik Kontrolü</h3>
                <p class="text-gray-600 text-sm mb-4">Ev güvenliğinizi test edin</p>
                <button class="mt-auto bg-yellow-600 text-white px-4 py-2 rounded-lg text-sm hover:bg-yellow-700 transition">
                    Teste Başla
                </button>
            </div>
        </div>

        <!-- Earthquake Map -->
        <div class="bg-white p-6 rounded-xl shadow-md mb-8">
            <div class="flex justify-between items-center mb-4">
                <h2 class="text-xl font-bold">Deprem Haritası</h2>
                <div class="flex space-x-2">
                    <button class="bg-gray-200 px-3 py-1 rounded-lg text-sm hover:bg-gray-300 transition">
                        <i class="fas fa-filter mr-1"></i> Filtrele
                    </button>
                    <button class="bg-blue-600 text-white px-3 py-1 rounded-lg text-sm hover:bg-blue-700 transition">
                        <i class="fas fa-sync-alt mr-1"></i> Yenile
                    </button>
                </div>
            </div>
            <div class="map-container bg-gray-200 flex items-center justify-center relative">
                <div class="absolute inset-0 flex items-center justify-center">
                    <div class="text-center">
                        <i class="fas fa-map-marked-alt text-5xl text-gray-400 mb-2"></i>
                        <p class="text-gray-500">Harita yükleniyor...</p>
                    </div>
                </div>
                <!-- In a real app, this would be a map component -->
            </div>
            <div class="mt-4 grid grid-cols-1 md:grid-cols-3 gap-4">
                <div class="bg-red-50 p-3 rounded-lg flex items-center">
                    <div class="w-10 h-10 bg-red-100 rounded-full flex items-center justify-center text-red-600 mr-3">
                        <i class="fas fa-exclamation"></i>
                    </div>
                    <div>
                        <p class="text-sm font-semibold">Son 24 saat</p>
                        <p class="text-red-600 font-bold">3 deprem</p>
                    </div>
                </div>
                <div class="bg-yellow-50 p-3 rounded-lg flex items-center">
                    <div class="w-10 h-10 bg-yellow-100 rounded-full flex items-center justify-center text-yellow-600 mr-3">
                        <i class="fas fa-info-circle"></i>
                    </div>
                    <div>
                        <p class="text-sm font-semibold">En büyük deprem</p>
                        <p class="text-yellow-600 font-bold">4.5 büyüklük</p>
                    </div>
                </div>
                <div class="bg-green-50 p-3 rounded-lg flex items-center">
                    <div class="w-10 h-10 bg-green-100 rounded-full flex items-center justify-center text-green-600 mr-3">
                        <i class="fas fa-check-circle"></i>
                    </div>
                    <div>
                        <p class="text-sm font-semibold">Güvenli bölge</p>
                        <p class="text-green-600 font-bold">Düşük risk</p>
                    </div>
                </div>
            </div>
        </div>

        <!-- Emergency Kit Section -->
        <div class="bg-white p-6 rounded-xl shadow-md mb-8">
            <h2 class="text-xl font-bold mb-4">Acil Durum Çantası</h2>
            <p class="text-gray-600 mb-4">Deprem çantanız hazır mı? Eksiklerinizi kontrol edin ve tamamlayın.</p>
            
            <div class="grid grid-cols-2 md:grid-cols-4 gap-4">
                <div class="border border-gray-200 rounded-lg p-4 flex items-center">
                    <div class="w-10 h-10 bg-blue-100 rounded-full flex items-center justify-center text-blue-600 mr-3">
                        <i class="fas fa-bottle-water"></i>
                    </div>
                    <div>
                        <p class="font-semibold">Su</p>
                        <p class="text-sm text-gray-500">3 gün yetecek kadar</p>
                    </div>
                </div>
                <div class="border border-gray-200 rounded-lg p-4 flex items-center">
                    <div class="w-10 h-10 bg-green-100 rounded-full flex items-center justify-center text-green-600 mr-3">
                        <i class="fas fa-utensils"></i>
                    </div>
                    <div>
                        <p class="font-semibold">Yiyecek</p>
                        <p class="text-sm text-gray-500">Dayanıklı gıdalar</p>
                    </div>
                </div>
                <div class="border border-gray-200 rounded-lg p-4 flex items-center">
                    <div class="w-10 h-10 bg-red-100 rounded-full flex items-center justify-center text-red-600 mr-3">
                        <i class="fas fa-kit-medical"></i>
                    </div>
                    <div>
                        <p class="font-semibold">İlk Yardım</p>
                        <p class="text-sm text-gray-500">Temel malzemeler</p>
                    </div>
                </div>
                <div class="border border-gray-200 rounded-lg p-4 flex items-center">
                    <div class="w-10 h-10 bg-yellow-100 rounded-full flex items-center justify-center text-yellow-600 mr-3">
                        <i class="fas fa-lightbulb"></i>
                    </div>
                    <div>
                        <p class="font-semibold">Fener</p>
                        <p class="text-sm text-gray-500">Yedek pillerle</p>
                    </div>
                </div>
            </div>
            
            <button class="mt-6 w-full bg-indigo-600 text-white py-3 rounded-lg font-semibold hover:bg-indigo-700 transition">
                <i class="fas fa-list-check mr-2"></i> Eksiklerimi Tamamla
            </button>
        </div>

        <!-- Emergency Simulation -->
        <div class="bg-white p-6 rounded-xl shadow-md">
            <h2 class="text-xl font-bold mb-4">Deprem Simülasyonu</h2>
            <p class="text-gray-600 mb-6">Deprem anında nasıl davranmanız gerektiğini öğrenin ve pratik yapın.</p>
            
            <div class="bg-gray-100 p-6 rounded-lg flex flex-col md:flex-row items-center">
                <div class="md:w-1/2 mb-6 md:mb-0 md:pr-6">
                    <h3 class="font-bold text-lg mb-3">Deprem Anında</h3>
                    <ul class="space-y-3">
                        <li class="flex items-start">
                            <div class="bg-blue-100 text-blue-600 rounded-full w-6 h-6 flex items-center justify-center mr-3 flex-shrink-0">
                                <i class="fas fa-1 text-xs"></i>
                            </div>
                            <p>Çök - Kapan - Tutun hareketini uygulayın</p>
                        </li>
                        <li class="flex items-start">
                            <div class="bg-blue-100 text-blue-600 rounded-full w-6 h-6 flex items-center justify-center mr-3 flex-shrink-0">
                                <i class="fas fa-2 text-xs"></i>
                            </div>
                            <p>Sağlam bir masa veya mobilyanın yanına geçin</p>
                        </li>
                        <li class="flex items-start">
                            <div class="bg-blue-100 text-blue-600 rounded-full w-6 h-6 flex items-center justify-center mr-3 flex-shrink-0">
                                <i class="fas fa-3 text-xs"></i>
                            </div>
                            <p>Pencerelerden ve düşebilecek eşyalardan uzak durun</p>
                        </li>
                        <li class="flex items-start">
                            <div class="bg-blue-100 text-blue-600 rounded-full w-6 h-6 flex items-center justify-center mr-3 flex-shrink-0">
                                <i class="fas fa-4 text-xs"></i>
                            </div>
                            <p>Sarsıntı bitene kadar pozisyonunuzu koruyun</p>
                        </li>
                    </ul>
                </div>
                
                <div class="md:w-1/2 flex flex-col items-center">
                    <div class="relative mb-6">
                        <div class="w-48 h-48 bg-red-100 rounded-full flex items-center justify-center earthquake-animation">
                            <i class="fas fa-earthquake text-6xl text-red-600"></i>
                        </div>
                        <div class="absolute -bottom-2 -right-2 bg-red-600 text-white rounded-full w-12 h-12 flex items-center justify-center pulse">
                            <i class="fas fa-play"></i>
                        </div>
                    </div>
                    <button class="bg-red-600 text-white px-6 py-3 rounded-lg font-semibold hover:bg-red-700 transition">
                        <i class="fas fa-play-circle mr-2"></i> Simülasyonu Başlat
                    </button>
                </div>
            </div>
        </div>
    </main>

    <!-- Bottom Navigation -->
    <nav class="fixed bottom-0 left-0 right-0 bg-white shadow-lg border-t border-gray-200">
        <div class="container mx-auto px-4">
            <div class="flex justify-around">
                <a href="#" class="py-4 px-6 text-center text-red-600 border-b-2 border-red-600">
                    <i class="fas fa-home block text-xl mb-1"></i>
                    <span class="text-xs">Ana Sayfa</span>
                </a>
                <a href="#" class="py-4 px-6 text-center text-gray-500 hover:text-red-600">
                    <i class="fas fa-map-marked-alt block text-xl mb-1"></i>
                    <span class="text-xs">Harita</span>
                </a>
                <a href="#" class="py-4 px-6 text-center text-gray-500 hover:text-red-600">
                    <i class="fas fa-bell block text-xl mb-1"></i>
                    <span class="text-xs">Uyarılar</span>
                </a>
                <a href="#" class="py-4 px-6 text-center text-gray-500 hover:text-red-600">
                    <i class="fas fa-user block text-xl mb-1"></i>
                    <span class="text-xs">Profil</span>
                </a>
            </div>
        </div>
    </nav>

    <!-- Emergency Button -->
    <div class="fixed right-6 bottom-20">
        <button class="w-16 h-16 bg-red-600 text-white rounded-full shadow-xl flex items-center justify-center hover:bg-red-700 transition">
            <i class="fas fa-siren-on text-2xl"></i>
        </button>
    </div>

    <script>
        // Simulate earthquake alert
        function simulateEarthquake() {
            const alertSection = document.querySelector('.bg-red-100');
            alertSection.classList.add('earthquake-animation');
            
            setTimeout(() => {
                alertSection.classList.remove('earthquake-animation');
            }, 3000);
        }
        
        // Add click event to simulate button
        document.querySelector('.pulse').addEventListener('click', simulateEarthquake);
        
        // Emergency button functionality
        document.querySelector('.fixed.right-6 button').addEventListener('click', function() {
            alert('Acil durum servisleri aranıyor: 112');
        });
        
        // Quick action buttons
        document.querySelectorAll('.emergency-card button').forEach(button => {
            button.addEventListener('click', function() {
                const title = this.closest('.emergency-card').querySelector('h3').textContent;
                alert(`${title} özelliği açılıyor...`);
            });
        });
    </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=Serttbbbnhb/https-enzostvs-deepsite-hf-space" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>