-
Notifications
You must be signed in to change notification settings - Fork 2
/
guard.html
227 lines (182 loc) · 5.42 KB
/
guard.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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>TrackGuard - Alerts and Notifications</title>
<style>
body {
font-family: Arial, sans-serif;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
min-height: 100vh;
margin: 0;
background: linear-gradient(120deg, #a1c4fd, #c2e9fb);
}
h1 {
color: #333;
margin-bottom: 20px;
}
.container {
display: flex;
gap: 20px;
margin-bottom: 20px;
}
.popup-card {
width: 300px;
padding: 20px;
background: #fff;
border-radius: 12px;
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
text-align: center;
font-size: 16px;
color: #333;
}
.popup-card h2 {
margin-bottom: 10px;
font-size: 20px;
color: #007bff;
}
.popup-card p {
color: #666;
font-size: 14px;
line-height: 1.4;
}
.button {
padding: 10px 16px;
background-color: #007bff;
color: #fff;
border: none;
border-radius: 6px;
cursor: pointer;
margin-top: 15px;
transition: background 0.3s ease;
}
.button:hover {
background-color: #0056b3;
}
.alerts-panel {
width: 320px;
padding: 20px;
background: #fff;
border-radius: 12px;
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
font-size: 14px;
color: #333;
max-height: 400px;
overflow-y: auto;
}
.alerts-panel h2 {
color: #ff4d4d;
font-size: 20px;
margin-bottom: 15px;
text-align: center;
}
.alert-item {
padding: 10px;
border-bottom: 1px solid #ddd;
}
.alert-item p {
margin: 0;
font-size: 14px;
color: #555;
}
.alert-item strong {
display: block;
margin-bottom: 5px;
color: #333;
}
.mark-viewed {
text-align: right;
margin-top: 10px;
}
.mark-viewed button {
padding: 8px 12px;
background-color: #ff4d4d;
color: #fff;
border: none;
border-radius: 6px;
cursor: pointer;
transition: background 0.3s ease;
}
.mark-viewed button:hover {
background-color: #cc0000;
}
</style>
</head>
<body>
<h1>TrackGuard - Alerts & Notifications</h1>
<div class="container">
<div class="popup-card">
<h2>Alerts</h2>
<p><strong>Security Alert:</strong> We’ve detected an unusual login attempt from an unknown device. Please verify your recent activities to secure your account.</p>
<button class="button" onclick="showAlertsPanel()">View More</button>
</div>
<div class="popup-card">
<h2>Notifications</h2>
<p><strong>New Features:</strong> TrackGuard has been updated! Discover new enhancements and improved functionalities to optimize your security management.</p>
<button class="button" onclick="showNotificationPanel()">View More</button>
</div>
</div>
<div class="alerts-panel" id="alertsPanel" style="display: none;">
<h2>All Alerts</h2>
<div class="alert-item">
<strong>Security Alert:</strong>
<p>We detected a login attempt from a new device in New York, USA. If this wasn't you, please change your password immediately.</p>
</div>
<div class="alert-item">
<strong>Password Change Alert:</strong>
<p>Your password was recently changed. If you did not initiate this change, contact support immediately.</p>
</div>
<div class="alert-item">
<strong>Unusual Activity:</strong>
<p>Multiple failed login attempts were detected on your account. Verify if these attempts were yours.</p>
</div>
<div class="alert-item">
<strong>Data Backup Alert:</strong>
<p>Your scheduled data backup was unsuccessful. Try again or contact support for help.</p>
</div>
<div class="mark-viewed">
<button onclick="markAllAsViewed()">Mark All as Viewed</button>
</div>
</div>
<div class="notification-panel" id="notificationPanel" style="display: none;">
<h2>All Notifications</h2>
<div class="notification-item">
<strong>Security Alert:</strong>
<p>Unusual login attempt detected from a new device. Verify if this was you.</p>
</div>
<div class="notification-item">
<strong>System Update:</strong>
<p>TrackGuard's system maintenance scheduled for midnight. Expect temporary downtime.</p>
</div>
<div class="notification-item">
<strong>Feature Update:</strong>
<p>New dashboard layout introduced. Check out the improved design!</p>
</div>
<div class="notification-item">
<strong>Backup Alert:</strong>
<p>Your recent backup was successful. You can access it in your account settings.</p>
</div>
<div class="mark-read">
<button onclick="markAllAsRead()">Mark All as Read</button>
</div>
</div>
<script>
function showAlertsPanel() {
document.getElementById('alertsPanel').style.display = 'block';
}
function showNotificationPanel() {
document.getElementById('notificationPanel').style.display = 'block';
}
function markAllAsViewed() {
alert('All alerts marked as viewed!');
}
function markAllAsRead() {
alert('All notifications marked as read!');
}
</script>
</body>
</html>