File size: 13,085 Bytes
3a0896e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5e1344a
3a0896e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>LSPD - Raporlama Paneli</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>
        .bg-police {
            background: linear-gradient(135deg, #1a237e 0%, #283593 50%, #3949ab 100%);
        }
        .report-box {
            min-height: 300px;
            border: 1px dashed #ccc;
            padding: 20px;
            margin-top: 10px;
        }
    </style>
</head>
<body class="bg-gray-100 min-h-screen flex flex-col">
    <!-- Header -->
    <header class="bg-police text-white py-4 shadow-lg">
        <div class="container mx-auto px-4 flex justify-between items-center">
            <div>
                <span class="font-bold" id="welcomeMessage">Hoşgeldiniz, admin</span>
            </div>
            <div>
                <span id="currentDate"></span>
            </div>
        </div>
    </header>

    <!-- Main Content -->
    <main class="flex-grow container mx-auto px-4 py-8">
        <div class="max-w-4xl mx-auto bg-white rounded-lg shadow-lg p-6">
            <div class="flex justify-between items-center mb-6">
                <h2 class="text-xl font-bold text-gray-800">Rapor Oluştur</h2>
                <select id="department" class="border border-gray-300 rounded px-3 py-2">
                    <option value="CSI">CSI</option>
                    <option value="Vice">Vice</option>
                </select>
            </div>
            
            <div class="mb-4">
                <input type="text" id="reportTitle" placeholder="Rapor Başlığı Girin" 
                    class="w-full px-4 py-2 border border-gray-300 rounded focus:outline-none focus:ring-2 focus:ring-blue-500">
            </div>
            
            <div class="report-box" id="reportContent">
                <!-- AI generated content will appear here -->
            </div>
            
            <div class="mt-4 flex justify-end">
                <button id="generateBtn" class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded">
                    <i class="fas fa-robot mr-2"></i>Rapor Oluştur
                </button>
            </div>
        </div>
    </main>

    <!-- Footer -->
    <footer class="bg-gray-800 text-white py-4 text-center text-sm">
        <div class="container mx-auto px-4">
            <p>© 2025 Los Santos Police Department.</p>
            <p class="mt-1">Developed by Neil</p>
        </div>
    </footer>

    <script>
        // Set current date
        const now = new Date();
        document.getElementById('currentDate').textContent = now.toLocaleDateString('tr-TR', {
            weekday: 'long',
            year: 'numeric',
            month: 'long',
            day: 'numeric'
        });

        // Generate report function
        document.getElementById('generateBtn').addEventListener('click', async function() {
            const title = document.getElementById('reportTitle').value;
            const department = document.getElementById('department').value;
            const reportBox = document.getElementById('reportContent');
            
            if (!title) {
                alert('Lütfen bir rapor başlığı girin');
                return;
            }
            
            reportBox.innerHTML = '<p class="text-center py-10"><i class="fas fa-spinner fa-spin mr-2"></i>Rapor oluşturuluyor...</p>';
            
            try {
                // In a real app, this would call your API
                // const response = await fetch('/api/generate-report', {
                //     method: 'POST',
                //     body: JSON.stringify({ title, department })
                // });
                // const data = await response.json();
                
                // Simulated API response
                setTimeout(() => {
                    reportBox.innerHTML = `
                        <h3 class="font-bold text-lg mb-2">${title}</h3>
                        <p class="mb-2">Departman: ${department}</p>
                        <p class="mb-2">Tarih: ${now.toLocaleDateString()}</p>
                        <hr class="my-3">
                        <p>Bu rapor ${department} departmanı için oluşturulmuştur. Rapor içeriği AI tarafından ${title} konusu için özel olarak hazırlanmıştır.</p>
                        <p class="mt-3">Detaylı bilgiler ve analizler bu bölümde yer alacaktır.</p>
                    `;
                }, 1500);
            } catch (error) {
                reportBox.innerHTML = `
                    <div class="bg-red-100 border border-red-400 text-red-700 px-4 py-3 rounded">
                        Rapor oluşturulurken hata oluştu. Lütfen tekrar deneyin.
                    </div>
                `;
            }
        });
    </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=Neilqwe/website" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>LSPD - Raporlama Sistemi</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>
        .bg-police {
            background: linear-gradient(135deg, #1a237e 0%, #283593 50%, #3949ab 100%);
        }
        .glow-text {
            text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
        }
        .input-effect {
            transition: all 0.3s ease;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }
        .input-effect:focus {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }
        .badge {
            animation: pulse 2s infinite;
        }
        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.05); }
            100% { transform: scale(1); }
        }
    </style>
</head>
<body class="bg-gray-100 min-h-screen flex flex-col">
    <!-- Header -->
    <header class="bg-police text-white py-4 shadow-lg">
        <div class="container mx-auto px-4 flex justify-between items-center">
            <div class="flex items-center space-x-2">
                <i class="fas fa-shield-alt text-2xl"></i>
                <h1 class="text-2xl font-bold glow-text">LSPD - Raporlama</h1>
            </div>
            <div class="hidden md:flex items-center space-x-2">
                <span class="bg-yellow-500 text-black px-2 py-1 rounded-full text-xs font-bold badge">OFFICIAL</span>
                <span class="text-sm">Los Santos Police Department</span>
            </div>
        </div>
    </header>

    <!-- Main Content -->
    <main class="flex-grow flex items-center justify-center py-8">
        <div class="w-full max-w-md px-4">
            <div class="bg-white rounded-lg shadow-xl overflow-hidden">
                <!-- Login Form Header -->
                <div class="bg-police text-white py-4 px-6">
                    <h2 class="text-xl font-bold flex items-center">
                        <i class="fas fa-user-shield mr-2"></i>
                        Yetkili Girişi
                    </h2>
                    <p class="text-xs opacity-80 mt-1">Lütfen kimlik bilgilerinizi giriniz</p>
                </div>
                
                <!-- Login Form -->
                <form id="loginForm" class="p-6">
                    <div class="mb-4">
                        <label for="username" class="block text-gray-700 text-sm font-bold mb-2">
                            <i class="fas fa-user mr-1"></i> Kullanıcı Adı
                        </label>
                        <input type="text" id="username" name="username" 
                            class="input-effect w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500"
                            placeholder="Kullanıcı adınızı girin">
                    </div>
                    <div class="mb-6">
                        <label for="password" class="block text-gray-700 text-sm font-bold mb-2">
                            <i class="fas fa-lock mr-1"></i> Şifre
                        </label>
                        <input type="password" id="password" name="password" 
                            class="input-effect w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500"
                            placeholder="Şifrenizi girin">
                    </div>
                    <div class="flex items-center justify-between mb-4">
                        <div class="flex items-center">
                            <input id="remember" type="checkbox" class="h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 rounded">
                            <label for="remember" class="ml-2 block text-sm text-gray-700">
                                Beni Hatırla
                            </label>
                        </div>
                    </div>
                    <button type="submit" 
                            class="w-full bg-blue-600 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded-md transition duration-300 flex items-center justify-center">
                        <i class="fas fa-sign-in-alt mr-2"></i> Giriş Yap
                    </button>
                </form>
                
                <!-- Status Message -->
                <div id="statusMessage" class="hidden px-6 pb-4"></div>
            </div>
            
            <!-- Additional Info -->
            <div class="mt-6 text-center text-sm text-gray-600">
                <p>Bu sistem sadece yetkili personel içindir.</p>
              
            </div>
        </div>
    </main>

    <!-- Footer -->
    <footer class="bg-gray-800 text-white py-4 text-center text-sm">
        <div class="container mx-auto px-4">
            <p>© 2025 Los Santos Police Department.</p>
            <p class="mt-1">Developed by Neil</p>
        </div>
    </footer>

    <script>
        document.getElementById('loginForm').addEventListener('submit', function(e) {
            e.preventDefault();
            
            const username = document.getElementById('username').value;
            const password = document.getElementById('password').value;
            const statusMessage = document.getElementById('statusMessage');
            
            // Clear previous messages
            statusMessage.className = 'hidden px-6 pb-4';
            statusMessage.innerHTML = '';
            
            // Check credentials (username: admin, password: admin)
            if (username === 'admin' && password === 'admin') {
                // Successful login
                statusMessage.className = 'px-6 pb-4';
                statusMessage.innerHTML = `
                    <div class="bg-green-100 border border-green-400 text-green-700 px-4 py-3 rounded relative">
                        <strong class="font-bold">Başarılı!</strong>
                        <span class="block sm:inline">Giriş yapılıyor...</span>
                        <span class="absolute top-0 bottom-0 right-0 px-4 py-3">
                            <i class="fas fa-check-circle"></i>
                        </span>
                    </div>
                `;
                
                // Redirect to dashboard
                setTimeout(() => {
                    window.location.href = 'dashboard.html';
                }, 1000);
            } else {
                // Failed login
                statusMessage.className = 'px-6 pb-4';
                statusMessage.innerHTML = `
                    <div class="bg-red-100 border border-red-400 text-red-700 px-4 py-3 rounded relative">
                        <strong class="font-bold">Hata!</strong>
                        <span class="block sm:inline">Geçersiz kullanıcı adı veya şifre.</span>
                        <span class="absolute top-0 bottom-0 right-0 px-4 py-3">
                            <i class="fas fa-exclamation-circle"></i>
                        </span>
                    </div>
                `;
            }
        });
    </script>
</body>
</html>