-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathscan-dashboard.html
More file actions
279 lines (244 loc) Β· 6.42 KB
/
Copy pathscan-dashboard.html
File metadata and controls
279 lines (244 loc) Β· 6.42 KB
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>BogaGuard - Scan Dashboard</title>
<style>
body {
margin: 0;
padding: 20px;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
color: white;
min-height: 100vh;
}
.dashboard {
max-width: 1200px;
margin: 0 auto;
}
.header {
text-align: center;
margin-bottom: 30px;
}
.header h1 {
font-size: 36px;
margin: 0;
text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 20px;
margin-bottom: 30px;
}
.stat-card {
background: rgba(255, 255, 255, 0.1);
padding: 20px;
border-radius: 15px;
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.2);
}
.stat-value {
font-size: 32px;
font-weight: bold;
color: #C8E6C9;
margin-bottom: 5px;
}
.stat-label {
font-size: 14px;
opacity: 0.8;
}
.section {
background: rgba(255, 255, 255, 0.1);
padding: 25px;
border-radius: 15px;
margin-bottom: 20px;
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.2);
}
.section h2 {
margin-top: 0;
color: #C8E6C9;
border-bottom: 2px solid rgba(200, 230, 201, 0.3);
padding-bottom: 10px;
}
.threat-item {
background: rgba(255, 255, 255, 0.05);
padding: 15px;
border-radius: 10px;
margin-bottom: 10px;
border-left: 4px solid #E57373;
}
.threat-high { border-left-color: #E57373; }
.threat-medium { border-left-color: #FFA726; }
.threat-low { border-left-color: #81C784; }
.threat-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 10px;
}
.threat-url {
font-family: monospace;
background: rgba(0, 0, 0, 0.2);
padding: 5px 10px;
border-radius: 5px;
word-break: break-all;
font-size: 12px;
}
.threat-reasons {
margin-top: 10px;
}
.threat-reasons ul {
margin: 5px 0;
padding-left: 20px;
}
.controls {
text-align: center;
margin: 30px 0;
}
.btn {
background: rgba(255, 255, 255, 0.2);
border: 1px solid rgba(255, 255, 255, 0.3);
color: white;
padding: 12px 24px;
border-radius: 25px;
cursor: pointer;
font-size: 14px;
margin: 0 10px;
transition: all 0.3s;
}
.btn:hover {
background: rgba(255, 255, 255, 0.3);
transform: translateY(-2px);
}
.empty-state {
text-align: center;
padding: 40px;
opacity: 0.7;
}
.timeline {
position: relative;
padding-left: 30px;
}
.timeline::before {
content: '';
position: absolute;
left: 15px;
top: 0;
bottom: 0;
width: 2px;
background: rgba(200, 230, 201, 0.3);
}
.timeline-item {
position: relative;
margin-bottom: 20px;
}
.timeline-item::before {
content: '';
position: absolute;
left: -22px;
top: 5px;
width: 12px;
height: 12px;
border-radius: 50%;
background: #C8E6C9;
}
.ml-patterns {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 15px;
}
.pattern-item {
background: rgba(255, 255, 255, 0.05);
padding: 10px;
border-radius: 8px;
font-family: monospace;
font-size: 12px;
}
.refresh-indicator {
display: inline-block;
animation: spin 1s linear infinite;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
</style>
</head>
<body>
<div class="dashboard">
<div class="header">
<h1>π‘οΈ BogaGuard Scan Dashboard</h1>
<p>Real-time threat detection and analysis results</p>
</div>
<div class="stats-grid">
<div class="stat-card">
<div class="stat-value" id="total-threats">0</div>
<div class="stat-label">Total Threats Blocked</div>
</div>
<div class="stat-card">
<div class="stat-value" id="links-scanned">0</div>
<div class="stat-label">Links Scanned</div>
</div>
<div class="stat-card">
<div class="stat-value" id="content-score">0%</div>
<div class="stat-label">Current Page Risk</div>
</div>
<div class="stat-card">
<div class="stat-value" id="ml-patterns">0</div>
<div class="stat-label">AI Patterns Learned</div>
</div>
</div>
<div class="controls">
<button class="btn" onclick="refreshData()">
<span id="refresh-icon">π</span> Refresh Data
</button>
<button class="btn" onclick="exportData()">π Export Report</button>
<button class="btn" onclick="clearData()">ποΈ Clear History</button>
</div>
<div class="section">
<h2>π¨ Recent Threats Detected</h2>
<div id="threats-list">
<div class="empty-state">
<p>No threats detected yet. BogaGuard is actively monitoring...</p>
</div>
</div>
</div>
<div class="section">
<h2>π Redirect Activity</h2>
<div id="redirects-list">
<div class="empty-state">
<p>No redirects monitored yet.</p>
</div>
</div>
</div>
<div class="section">
<h2>π Content Analysis Results</h2>
<div id="content-analysis">
<div class="empty-state">
<p>No content analysis performed yet.</p>
</div>
</div>
</div>
<div class="section">
<h2>π€ Machine Learning Insights</h2>
<div id="ml-insights">
<div class="empty-state">
<p>AI is learning from your browsing patterns...</p>
</div>
</div>
</div>
<div class="section">
<h2>π Activity Timeline</h2>
<div class="timeline" id="activity-timeline">
<div class="empty-state">
<p>Activity timeline will appear here...</p>
</div>
</div>
</div>
</div>
<script src="button-functions.js"></script>
<script src="scan-dashboard.js"></script>
</body>
</html>